Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7230599

Browse filesBrowse files
committed
Disable mmap when applying lora weights. Closes abetlen#107
1 parent e99caed commit 7230599
Copy full SHA for 7230599

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎llama_cpp/llama.py

Copy file name to clipboardExpand all lines: llama_cpp/llama.py
+1-1Lines changed: 1 addition & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.