Skip to content

Commit 7230599

Browse files
committed
Disable mmap when applying lora weights. Closes #107
1 parent e99caed commit 7230599

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(
7979
self.params.f16_kv = f16_kv
8080
self.params.logits_all = logits_all
8181
self.params.vocab_only = vocab_only
82-
self.params.use_mmap = use_mmap
82+
self.params.use_mmap = use_mmap if lora_path is None else False
8383
self.params.use_mlock = use_mlock
8484
self.params.embedding = embedding
8585

0 commit comments

Comments
 (0)