add gguf arch and ftype

This commit is contained in:
xaedes 2023-08-27 23:20:18 +02:00
parent a6f3a47c39
commit cb42324d6a
No known key found for this signature in database
GPG key ID: 30030EDD817EA2B1

View file

@ -412,6 +412,8 @@ class Checkpoint:
return offset
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_ITERATION_COUNT, self.train_its)
gguf_writer.add_uint32(LLM_KV_TRAINING_SAMPLE_COUNT, self.train_samples)