llama : correctly report GGUFv3 format (#3818)

This commit is contained in:
cebtenzzre 2023-10-27 17:33:53 -04:00 committed by GitHub
parent c8d6a1f34a
commit 6d459cbfbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1578,12 +1578,14 @@ static void llama_kv_cache_seq_shift(
enum llama_fver {
GGUF_FILE_VERSION_V1 = 1,
GGUF_FILE_VERSION_V2 = 2,
GGUF_FILE_VERSION_V3 = 3,
};
static const char * llama_file_version_name(llama_fver version) {
switch (version) {
case GGUF_FILE_VERSION_V1: return "GGUF V1 (support until nov 2023)";
case GGUF_FILE_VERSION_V2: return "GGUF V2 (latest)";
case GGUF_FILE_VERSION_V2: return "GGUF V2";
case GGUF_FILE_VERSION_V3: return "GGUF V3 (latest)";
}
return "unknown";