mirror of
https://github.com/abetlen/llama-cpp-python.git
synced 2023-09-07 17:34:22 +03:00
Fix lora
This commit is contained in:
@@ -76,8 +76,8 @@ specified) expect poor results""", file=sys.stderr)
|
|||||||
if (len(self.params.lora_adapter) > 0):
|
if (len(self.params.lora_adapter) > 0):
|
||||||
if (llama_cpp.llama_apply_lora_from_file(
|
if (llama_cpp.llama_apply_lora_from_file(
|
||||||
self.ctx,
|
self.ctx,
|
||||||
self.params.lora_adapter,
|
self.params.lora_adapter.encode("utf8"),
|
||||||
self.params.lora_base if len(self.params.lora_base) > 0 else None,
|
self.params.lora_base.encode("utf8") if len(self.params.lora_base) > 0 else None,
|
||||||
self.params.n_threads
|
self.params.n_threads
|
||||||
) != 0):
|
) != 0):
|
||||||
print("error: failed to apply lora adapter")
|
print("error: failed to apply lora adapter")
|
||||||
|
|||||||
Reference in New Issue
Block a user