mirror of
https://git.adityakumar.xyz/llama.cpp.git
synced 2024-11-14 00:59:43 +00:00
llama : fix regression from #2000 - could not load no-mmap models
This commit is contained in:
parent
417a85a001
commit
fff0e0eafe
1 changed files with 3 additions and 1 deletions
|
@ -555,7 +555,9 @@ struct llama_file_loader {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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);
|
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.file_off = file.tell();
|
||||||
tensor.name = name;
|
tensor.name = name;
|
||||||
|
|
Loading…
Reference in a new issue