mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-09 23:29:44 +00:00
[llama] No need to check file version when loading vocab score (#2079)
This commit is contained in:
parent
d7d2e6a0f0
commit
55dbb915cc
1 changed files with 1 additions and 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));
|
||||
}
|
||||
|
||||
vocab.token_to_id[word] = i;
|
||||
|
||||
|
|
Loading…
Reference in a new issue