]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
[llama] No need to check file version when loading vocab score (#2079)
authorHoward Su <redacted>
Mon, 3 Jul 2023 11:58:58 +0000 (19:58 +0800)
committerGitHub <redacted>
Mon, 3 Jul 2023 11:58:58 +0000 (19:58 +0800)
llama.cpp

index a869bbac80304b1e92c7a394005209982ed003b5..f48a6ca79bec87839a93583849c73ba1d8d84c47 100644 (file)
--- a/llama.cpp
+++ b/llama.cpp
@@ -481,9 +481,7 @@ struct llama_file_loader {
             std::string word = file.read_string(len);
 
             float score = 0.0f;
-            if (file_version >= LLAMA_FILE_VERSION_GGMF_V1) {
-                file.read_raw(&score, sizeof(score));
-            }
+            file.read_raw(&score, sizeof(score));
 
             vocab.token_to_id[word] = i;