diff options
author | Howard Su <howard0su@gmail.com> | 2023-07-03 19:58:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-03 19:58:58 +0800 |
commit | 55dbb915cc2a95048f56e667b09dfad38d840421 (patch) | |
tree | 29d7b762ec67edb526504109b6de2b84d7176288 /llama.cpp | |
parent | d7d2e6a0f0c74f7a570dae384dfff371ac744d2a (diff) |
[llama] No need to check file version when loading vocab score (#2079)
Diffstat (limited to 'llama.cpp')
-rw-r--r-- | llama.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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; |