Explain the user that GGML isn't supported anymore
This commit is contained in:
parent
8207214b6a
commit
943a248e40
2 changed files with 8 additions and 1 deletions
6
ggml.c
6
ggml.c
|
@ -19546,7 +19546,11 @@ struct gguf_context * gguf_init_from_file(const char * fname, struct gguf_init_p
|
|||
gguf_fread_el(file, &magic, sizeof(magic), &offset);
|
||||
|
||||
if (magic != GGUF_MAGIC) {
|
||||
fprintf(stderr, "%s: invalid magic number %08x\n", __func__, magic);
|
||||
if(magic == OLD_LLAMA_FILE_MAGIC_GGJT || magic == OLD_LLAMA_FILE_MAGIC_GGML) {
|
||||
fprintf(stderr, "error: opening GGML files isn't supported anymore, you must use a GGUF file\n");
|
||||
} else {
|
||||
fprintf(stderr, "%s: invalid magic number %08x\n", __func__, magic);
|
||||
}
|
||||
fclose(file);
|
||||
return NULL;
|
||||
}
|
||||
|
|
3
ggml.h
3
ggml.h
|
@ -199,6 +199,9 @@
|
|||
#define GGML_FILE_MAGIC 0x67676d6c // "ggml"
|
||||
#define GGML_FILE_VERSION 1
|
||||
|
||||
#define OLD_LLAMA_FILE_MAGIC_GGJT 0x67676a74u // 'ggjt'
|
||||
#define OLD_LLAMA_FILE_MAGIC_GGML 0x67676d6cu // 'ggml'
|
||||
|
||||
#define GGML_QNT_VERSION 2 // bump this on quantization format changes
|
||||
#define GGML_QNT_VERSION_FACTOR 1000 // do not change this
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue