Skip to content

Commit 55dbb91

Browse files
authored
[llama] No need to check file version when loading vocab score (ggml-org#2079)
1 parent d7d2e6a commit 55dbb91

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llama.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -481,9 +481,7 @@ struct llama_file_loader {
481481
std::string word = file.read_string(len);
482482

483483
float score = 0.0f;
484-
if (file_version >= LLAMA_FILE_VERSION_GGMF_V1) {
485-
file.read_raw(&score, sizeof(score));
486-
}
484+
file.read_raw(&score, sizeof(score));
487485

488486
vocab.token_to_id[word] = i;
489487

0 commit comments

Comments
 (0)