add gguf arch and ftype
This commit is contained in:
parent
a6f3a47c39
commit
cb42324d6a
1 changed files with 2 additions and 0 deletions
|
@ -412,6 +412,8 @@ class Checkpoint:
|
||||||
return offset
|
return offset
|
||||||
|
|
||||||
def save_gguf(self, gguf_writer):
|
def save_gguf(self, gguf_writer):
|
||||||
|
gguf_writer.add_architecture()
|
||||||
|
gguf_writer.add_file_type(gguf.GGMLQuantizationType.F32)
|
||||||
gguf_writer.add_uint32(LLM_KV_TRAINING_FILE_VERSION, 0)
|
gguf_writer.add_uint32(LLM_KV_TRAINING_FILE_VERSION, 0)
|
||||||
gguf_writer.add_uint32(LLM_KV_TRAINING_ITERATION_COUNT, self.train_its)
|
gguf_writer.add_uint32(LLM_KV_TRAINING_ITERATION_COUNT, self.train_its)
|
||||||
gguf_writer.add_uint32(LLM_KV_TRAINING_SAMPLE_COUNT, self.train_samples)
|
gguf_writer.add_uint32(LLM_KV_TRAINING_SAMPLE_COUNT, self.train_samples)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue