We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c0d9b1 commit eaf9f19Copy full SHA for eaf9f19
1 file changed
examples/low_level_api/low_level_api_chat_cpp.py
@@ -76,8 +76,8 @@ def __init__(self, params: GptParams) -> None:
76
if (len(self.params.lora_adapter) > 0):
77
if (llama_cpp.llama_apply_lora_from_file(
78
self.ctx,
79
- self.params.lora_adapter,
80
- self.params.lora_base if len(self.params.lora_base) > 0 else None,
+ self.params.lora_adapter.encode("utf8"),
+ self.params.lora_base.encode("utf8") if len(self.params.lora_base) > 0 else None,
81
self.params.n_threads
82
) != 0):
83
print("error: failed to apply lora adapter")
0 commit comments