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 eaf9f19

Browse filesBrowse files
committed
Fix lora
1 parent 2c0d9b1 commit eaf9f19
Copy full SHA for eaf9f19

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-2
lines changed

‎examples/low_level_api/low_level_api_chat_cpp.py

Copy file name to clipboardExpand all lines: examples/low_level_api/low_level_api_chat_cpp.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ def __init__(self, params: GptParams) -> None:
7676
if (len(self.params.lora_adapter) > 0):
7777
if (llama_cpp.llama_apply_lora_from_file(
7878
self.ctx,
79-
self.params.lora_adapter,
80-
self.params.lora_base if len(self.params.lora_base) > 0 else None,
79+
self.params.lora_adapter.encode("utf8"),
80+
self.params.lora_base.encode("utf8") if len(self.params.lora_base) > 0 else None,
8181
self.params.n_threads
8282
) != 0):
8383
print("error: failed to apply lora adapter")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.