Skip to content

Commit

Permalink
llama : correctly report GGUFv3 format (#3818)
Browse files Browse the repository at this point in the history
  • Loading branch information
cebtenzzre authored Oct 27, 2023
1 parent c8d6a1f commit 6d459cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 6d459cb

Please sign in to comment.