mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-10-23 09:00:37 +00:00
backend: support GGUFv3 (#1582)
This commit is contained in:
@@ -884,7 +884,7 @@ DLL_EXPORT bool magic_match(const char * fname) {
|
||||
if (!ctx_gguf)
|
||||
return false;
|
||||
|
||||
bool isValid = gguf_get_version(ctx_gguf) <= 2;
|
||||
bool isValid = gguf_get_version(ctx_gguf) <= 3;
|
||||
isValid = isValid && get_arch_name(ctx_gguf) == "bert";
|
||||
|
||||
gguf_free(ctx_gguf);
|
||||
|
Reference in New Issue
Block a user