We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc0a043 commit f99ef53Copy full SHA for f99ef53
src/llama-model-loader.cpp
@@ -1086,10 +1086,10 @@ bool llama_model_loader::load_all_data(
1086
} else {
1087
// If upload_backend is valid load the tensor in chunks to pinned memory and upload the buffers asynchronously to the GPU.
1088
if (upload_backend) {
1089
- auto offset = (off_t) weight->offs;
+ size_t offset = weight->offs;
1090
alignment = file->read_alignment();
1091
- off_t aligned_offset = offset & ~(alignment - 1);
1092
- off_t offset_from_alignment = offset - aligned_offset;
+ size_t aligned_offset = offset & ~(alignment - 1);
+ size_t offset_from_alignment = offset - aligned_offset;
1093
file->seek(aligned_offset, SEEK_SET);
1094
1095
// Calculate aligned read boundaries
0 commit comments