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

Method __init__

configuration_utils.py:1545–1561  ·  view source on GitHub ↗
(
        self,
        ngram_len: int,
        keys: List[int],
        context_history_size: int = 1024,
        sampling_table_seed: int = 0,
        sampling_table_size: int = 2**16,
        skip_first_ngram_calls: bool = False,
        debug_mode: bool = False,
    )

Source from the content-addressed store, hash-verified

1543 """
1544
1545 def __init__(
1546 self,
1547 ngram_len: int,
1548 keys: List[int],
1549 context_history_size: int = 1024,
1550 sampling_table_seed: int = 0,
1551 sampling_table_size: int = 2**16,
1552 skip_first_ngram_calls: bool = False,
1553 debug_mode: bool = False,
1554 ):
1555 self.ngram_len = ngram_len
1556 self.keys = keys
1557 self.sampling_table_size = sampling_table_size
1558 self.sampling_table_seed = sampling_table_seed
1559 self.context_history_size = context_history_size
1560 self.skip_first_ngram_calls = skip_first_ngram_calls
1561 self.debug_mode = debug_mode
1562
1563 def validate(self):
1564 watermark_missing_arg_msg = (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected