You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GGML_LOG_ERROR("%s: bad GGUF version: %" PRIu32 "\n", __func__, ctx->version);
352
+
ok = false;
353
+
}
354
+
350
355
/*
351
356
* bit layout is different when reading non-native endian models.
352
357
* assuming that the GGUF version is 3, the non-native endian model
353
358
* would read it as 0x30000000. we can use the AND operation against
354
359
* the last 4 hexadecimal digits to check if the model is the same
355
360
* endianness as the host system.
356
361
*/
357
-
if ((ctx->version & 0x0000FFFF) == 0x00000000) {
362
+
if (ok && (ctx->version & 0x0000FFFF) == 0x00000000) {
358
363
GGML_LOG_ERROR("%s: failed to load model: this GGUF file version %" PRIu32 " is extremely large, is there a mismatch between the host and model endianness?\n", __func__, ctx->version);
0 commit comments