Skip to content

Commit

Permalink
[llama] No need to check file version when loading vocab score (ggerg…
Browse files Browse the repository at this point in the history
  • Loading branch information
howard0su committed Jul 3, 2023
1 parent d7d2e6a commit 55dbb91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llama.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit 55dbb91

Please sign in to comment.