|
Looking at the code, it would seem, that the llama-cpp-python/llama_cpp/llama.py Lines 424 to 427 in 1b1a320 |
Replies: 1 comment
|
You are reading it right. In current llama.cpp, the adapter is applied to the model that is already loaded. There is no separate "here is the fp16 base GGUF for this LoRA" argument at apply time, so Older llama.cpp had a flow where a LoRA was merged against a different base path. That is gone. Put the matching base in If you need the old merge-against-this-file behavior, do it offline with |
You are reading it right. In current llama.cpp, the adapter is applied to the model that is already loaded. There is no separate "here is the fp16 base GGUF for this LoRA" argument at apply time, so
lora_basein the Python constructor is leftover and not passed intollama_adapter_lora_init.Older llama.cpp had a flow where a LoRA was merged against a different base path. That is gone. Put the matching base in
model_pathand the adapter inlora_path(orLlama().load_lora). If the LoRA was trained on another base, it will load and produce garbage rather than error onlora_base.If you need the old merge-against-this-file behavior, do it offline with
llama-export-lora/ the merge tools, then…