Skip to content
Discussion options

You must be logged in to vote

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_base in the Python constructor is leftover and not passed into llama_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_path and the adapter in lora_path (or Llama().load_lora). If the LoRA was trained on another base, it will load and produce garbage rather than error on lora_base.

If you need the old merge-against-this-file behavior, do it offline with llama-export-lora / the merge tools, then…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mlisovyi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants