Merge branch 'master' into concedo_experimental

# Conflicts:
#	README.md
This commit is contained in:
Concedo 2023-11-03 11:17:07 +08:00
commit c07c9b857d
3 changed files with 105 additions and 60 deletions

4
ggml.c
View file

@ -18907,6 +18907,10 @@ struct gguf_context * gguf_init_from_file(const char * fname, struct gguf_init_p
ok = ok && gguf_fread_el(file, &ctx->header.n_kv, sizeof(ctx->header.n_kv), &offset);
}
if (ctx->header.version == 1) {
fprintf(stderr, "%s: GGUFv1 is deprecated. please update if possible.\n", __func__);
}
if (!ok) {
fprintf(stderr, "%s: failed to read header\n", __func__);
fclose(file);