Merge remote-tracking branch 'origin/master' into concedo_experimental

This commit is contained in:
Concedo 2023-07-20 21:02:40 +08:00
commit 06c08576f7
3 changed files with 113 additions and 165 deletions

View file

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