Skip to content

Commit eaf9f19

Browse files
committed
Fix lora
1 parent 2c0d9b1 commit eaf9f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/low_level_api/low_level_api_chat_cpp.py

Lines 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)