MCPcopy Create free account
hub / github.com/microsoft/BitNet / __init__

Method __init__

utils/convert.py:1428–1429  ·  view source on GitHub ↗
(self, path: Path)

Source from the content-addressed store, hash-verified

1426 _VOCAB_CLASSES: list[type[Vocab]] = [SentencePieceVocab, BpeVocab, LlamaHfVocab]
1427
1428 def __init__(self, path: Path):
1429 self.path = path
1430
1431 def _create_special_vocab(self, vocab: BaseVocab, model_parent_path: Path) -> gguf.SpecialVocab:
1432 load_merges = vocab.name == "bpe"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected