Skip to content

Commit

Permalink
Disable mmap when applying lora weights. Closes #107
Browse files Browse the repository at this point in the history
  • Loading branch information
abetlen committed Apr 23, 2023
1 parent e99caed commit 7230599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llama_cpp/llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(
self.params.f16_kv = f16_kv
self.params.logits_all = logits_all
self.params.vocab_only = vocab_only
self.params.use_mmap = use_mmap
self.params.use_mmap = use_mmap if lora_path is None else False
self.params.use_mlock = use_mlock
self.params.embedding = embedding

Expand Down

0 comments on commit 7230599

Please sign in to comment.