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

Method add_meta_special_vocab

utils/convert.py:1150–1151  ·  view source on GitHub ↗
(self, svocab: gguf.SpecialVocab)

Source from the content-addressed store, hash-verified

1148 self.gguf.add_token_types(toktypes)
1149
1150 def add_meta_special_vocab(self, svocab: gguf.SpecialVocab) -> None:
1151 svocab.add_to_gguf(self.gguf)
1152
1153 def add_tensor_info(self, name: str, tensor: LazyTensor) -> None:
1154 n_elements = int(np.prod(tensor.shape))

Callers 2

write_vocab_onlyMethod · 0.95
write_allMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected