Skip to content

Commit ee68a6b

Browse files
committed
Drop the GGML count limitation limit
1 parent e6a358d commit ee68a6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ggml/src/gguf.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,8 @@ struct gguf_context * gguf_init_from_file_impl(FILE * file, struct gguf_init_par
611611
ok = ok && gr.read(info.t.type);
612612

613613
// check that tensor type is within defined range
614-
if (info.t.type < 0 || info.t.type >= GGML_TYPE_COUNT) {
614+
// if (info.t.type < 0 || info.t.type >= GGML_TYPE_COUNT) {
615+
if (info.t.type < 0) {
615616
GGML_LOG_ERROR("%s: tensor '%s' has invalid ggml type %d (%s)\n",
616617
__func__, info.t.name, info.t.type, ggml_type_name(info.t.type));
617618
ok = false;

0 commit comments

Comments
 (0)