MCPcopy Create free account
hub / github.com/bruno686/VisPlay / construct_processor

Method construct_processor

configuration_utils.py:1577–1587  ·  view source on GitHub ↗
(self, vocab_size: int, device)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected