(self, vocab_size: int, device)
| 1486 | ) |
| 1487 | |
| 1488 | def construct_processor(self, vocab_size: int, device) -> "WatermarkLogitsProcessor": |
| 1489 | return WatermarkLogitsProcessor( |
| 1490 | vocab_size=vocab_size, |
| 1491 | device=device, |
| 1492 | greenlist_ratio=self.greenlist_ratio, |
| 1493 | bias=self.bias, |
| 1494 | hashing_key=self.hashing_key, |
| 1495 | seeding_scheme=self.seeding_scheme, |
| 1496 | context_width=self.context_width, |
| 1497 | ) |
| 1498 | |
| 1499 | |
| 1500 | @dataclass |
nothing calls this directly
no outgoing calls
no test coverage detected