Skip to content

Commit

Permalink
remove unnecessary unmap
Browse files Browse the repository at this point in the history
  • Loading branch information
slaren committed Dec 21, 2023
1 parent 16582cd commit 323881e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2462,7 +2462,6 @@ struct llama_model_loader {
// unmap offloaded tensors and metadata
if (use_mmap && mapping) {
mapping->unmap_fragment(0, mmap_first);
mapping->unmap_fragment(mmap_last, mmap_last);
mapping->unmap_fragment(mmap_last, mapping->size);
}

Expand Down

0 comments on commit 323881e

Please sign in to comment.