Skip to content

Commit e73c774

Browse files
danbevhodlen
authored andcommitted
export-lora : use LLAMA_FILE_MAGIC_GGLA (ggml-org#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 <[email protected]>
1 parent f03e342 commit e73c774

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/export-lora/export-lora.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,8 @@ static struct lora_data * load_lora(struct lora_info * info) {
245245
params_ggml.no_alloc = true;
246246
result->ctx = ggml_init(params_ggml);
247247

248-
uint32_t LLAMA_FILE_MAGIC_LORA = 0x67676C61; // 'ggla'
249248
uint32_t magic = file.read_u32();
250-
if (magic != LLAMA_FILE_MAGIC_LORA) {
249+
if (magic != LLAMA_FILE_MAGIC_GGLA) {
251250
die_fmt("unexpected lora header file magic in '%s'", info->filename.c_str());
252251
}
253252
uint32_t version = file.read_u32();

0 commit comments

Comments
 (0)