diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2024-01-12 18:54:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-12 19:54:53 +0200 |
commit | 930f907d3ece1eb5b0a1ec5e209983a66dcbfa68 (patch) | |
tree | e6c2b9768ff70787e08df416867c11b13cfa0094 | |
parent | e790eef21ce659f5c16d59f8a5c8dcf6cde0692a (diff) |
export-lora : use LLAMA_FILE_MAGIC_GGLA (#4894)
This commit replaces the magic number used in export-lora.cpp with
the one defined in llama.h, which is indirectly included via common.h.
Signed-off-by: Daniel Bevenius <daniel.bevenius@gmail.com>
-rw-r--r-- | examples/export-lora/export-lora.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/export-lora/export-lora.cpp b/examples/export-lora/export-lora.cpp index 58fbe204..4cd5d99b 100644 --- a/examples/export-lora/export-lora.cpp +++ b/examples/export-lora/export-lora.cpp @@ -245,9 +245,8 @@ static struct lora_data * load_lora(struct lora_info * info) { params_ggml.no_alloc = true; result->ctx = ggml_init(params_ggml); - uint32_t LLAMA_FILE_MAGIC_LORA = 0x67676C61; // 'ggla' uint32_t magic = file.read_u32(); - if (magic != LLAMA_FILE_MAGIC_LORA) { + if (magic != LLAMA_FILE_MAGIC_GGLA) { die_fmt("unexpected lora header file magic in '%s'", info->filename.c_str()); } uint32_t version = file.read_u32(); |