Skip to content

Commit 6d459cb

Browse files
authored
llama : correctly report GGUFv3 format (#3818)
1 parent c8d6a1f commit 6d459cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llama.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -1578,12 +1578,14 @@ static void llama_kv_cache_seq_shift(
15781578
enum llama_fver {
15791579
GGUF_FILE_VERSION_V1 = 1,
15801580
GGUF_FILE_VERSION_V2 = 2,
1581+
GGUF_FILE_VERSION_V3 = 3,
15811582
};
15821583

15831584
static const char * llama_file_version_name(llama_fver version) {
15841585
switch (version) {
15851586
case GGUF_FILE_VERSION_V1: return "GGUF V1 (support until nov 2023)";
1586-
case GGUF_FILE_VERSION_V2: return "GGUF V2 (latest)";
1587+
case GGUF_FILE_VERSION_V2: return "GGUF V2";
1588+
case GGUF_FILE_VERSION_V3: return "GGUF V3 (latest)";
15871589
}
15881590

15891591
return "unknown";

0 commit comments

Comments
 (0)