(self, vocab_size: int, device)
| 1575 | ) |
| 1576 | |
| 1577 | def construct_processor(self, vocab_size: int, device) -> "WatermarkLogitsProcessor": |
| 1578 | return SynthIDTextWatermarkLogitsProcessor( |
| 1579 | ngram_len=self.ngram_len, |
| 1580 | keys=self.keys, |
| 1581 | sampling_table_size=self.sampling_table_size, |
| 1582 | sampling_table_seed=self.sampling_table_seed, |
| 1583 | context_history_size=self.context_history_size, |
| 1584 | device=device, |
| 1585 | skip_first_ngram_calls=self.skip_first_ngram_calls, |
| 1586 | debug_mode=self.debug_mode, |
| 1587 | ) |
| 1588 | |
| 1589 | |
| 1590 | @dataclass |
nothing calls this directly
no outgoing calls
no test coverage detected