mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-16 11:59:42 +00:00
Merge branch 'master' into concedo_experimental
# Conflicts: # README.md
This commit is contained in:
commit
c07c9b857d
3 changed files with 105 additions and 60 deletions
4
ggml.c
4
ggml.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue