Skip to content

Commit ffd76e1

Browse files
committed
llama : fix model magic/version write
1 parent 4201fa5 commit ffd76e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llama.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,8 @@ struct llama_file_saver {
529529
write_vocab();
530530
}
531531
void write_magic() {
532-
file.write_u32('ggjt'); // magic
533-
file.write_u32(1); // version
532+
file.write_u32(LLAMA_FILE_MAGIC); // magic
533+
file.write_u32(LLAMA_FILE_VERSION); // version
534534
}
535535
void write_hparams(enum llama_ftype new_ftype) {
536536
const llama_hparams & hparams = any_file_loader->hparams;

0 commit comments

Comments
 (0)