mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-11-02 09:12:03 +00:00
llama : fix model magic/version write
This commit is contained in:
@@ -529,8 +529,8 @@ struct llama_file_saver {
|
|||||||
write_vocab();
|
write_vocab();
|
||||||
}
|
}
|
||||||
void write_magic() {
|
void write_magic() {
|
||||||
file.write_u32('ggjt'); // magic
|
file.write_u32(LLAMA_FILE_MAGIC); // magic
|
||||||
file.write_u32(1); // version
|
file.write_u32(LLAMA_FILE_VERSION); // version
|
||||||
}
|
}
|
||||||
void write_hparams(enum llama_ftype new_ftype) {
|
void write_hparams(enum llama_ftype new_ftype) {
|
||||||
const llama_hparams & hparams = any_file_loader->hparams;
|
const llama_hparams & hparams = any_file_loader->hparams;
|
||||||
|
|||||||
Reference in New Issue
Block a user