MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / write_meta

Method write_meta

convert-dense.py:877–879  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

875 self.gguf.add_tensor_info(name, tensor.shape, data_type, data_nbytes, raw_dtype = raw_dtype)
876
877 def write_meta(self) -> None:
878 self.gguf.write_header_to_file()
879 self.gguf.write_kv_data_to_file()
880
881 def write_tensor_info(self) -> None:
882 self.gguf.write_ti_data_to_file()

Callers 2

write_vocab_onlyMethod · 0.95
write_allMethod · 0.95

Calls 2

write_header_to_fileMethod · 0.45
write_kv_data_to_fileMethod · 0.45

Tested by

no test coverage detected