Procházet zdrojové kódy

[llama] No need to check file version when loading vocab score (#2079)

Howard Su před 2 roky
rodič
revize
55dbb915cc
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1 3
      llama.cpp

+ 1 - 3
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;