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

Method write_meta

utils/convert-ms-to-gguf-bitnet.py:1240–1242  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1238 self.gguf.add_tensor_info(name, tensor.shape, data_type, data_nbytes, raw_dtype=raw_dtype)
1239
1240 def write_meta(self) -> None:
1241 self.gguf.write_header_to_file()
1242 self.gguf.write_kv_data_to_file()
1243
1244 def write_tensor_info(self) -> None:
1245 self.gguf.write_ti_data_to_file()

Callers 2

write_vocab_onlyMethod · 0.95
write_allMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected