Don't need check version here

This commit is contained in:
Howard Su 2023-07-03 09:51:39 +08:00
parent d7d2e6a0f0
commit 73352bee66

View file

@ -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;