Remove useless check

This commit is contained in:
Howard Su 2023-06-27 09:19:02 -07:00
parent a49299bb98
commit 7283f29bba

View file

@ -488,10 +488,8 @@ struct llama_file_loader {
} }
} }
if (file_version >= LLAMA_FILE_VERSION_GGJT_V1) { // skip to the next multiple of 32 bytes
// skip to the next multiple of 32 bytes file.seek(-static_cast<ptrdiff_t>(file.tell()) & 31, SEEK_CUR);
file.seek(-static_cast<ptrdiff_t>(file.tell()) & 31, SEEK_CUR);
}
tensor.file_off = file.tell(); tensor.file_off = file.tell();
tensor.name = name; tensor.name = name;