remove unnecessary unmap

This commit is contained in:
slaren 2023-12-21 19:37:23 +01:00
parent 16582cdf4e
commit 323881ef4b

View file

@ -2462,7 +2462,6 @@ struct llama_model_loader {
// unmap offloaded tensors and metadata // unmap offloaded tensors and metadata
if (use_mmap && mapping) { if (use_mmap && mapping) {
mapping->unmap_fragment(0, mmap_first); mapping->unmap_fragment(0, mmap_first);
mapping->unmap_fragment(mmap_last, mmap_last);
mapping->unmap_fragment(mmap_last, mapping->size); mapping->unmap_fragment(mmap_last, mapping->size);
} }