A LoRA adapter is a small file that changes how a base model behaves, for example to follow a particular style or task, without retraining the whole model. llama-server loads one with the –lora flag, on top of the base model it was trained for. This guide loads an adapter and checks the difference it makes.
Before you start
- llama.cpp installed, with llama-server on your PATH.
- A GGUF base model and a LoRA adapter trained for that exact base model.
- A terminal and a prompt that shows the adapter’s effect.
Check the adapter matches the base
Read the adapter’s description or model card and confirm the base model name matches the GGUF file you have. An adapter trained for a different base model gives poor or broken replies.
Start the server with the adapter
Load the base model and the adapter together:
llama-server -m qwen3-8b-q4_k_m.gguf --lora my-adapter.gguf --port 8080
The server loads the base model first, then applies the adapter on top.
Compare with and without the adapter
Send the same prompt to the server with the adapter, then restart without –lora and send it again. The adapter run should show the adapted style or behaviour; the plain run should not.
Worked example
Worked example: with an adapter trained to answer as a concise summariser, send the prompt “Summarise this paragraph in one sentence.” followed by a 200-word paragraph. The adapter run should return a single short sentence; the plain run is likely to return a longer, more conversational reply.
Expected result
UNTESTED in this guide: no server was run while writing it. The expected result is that the server starts with the adapter and the reply shows the adapter’s style, while the plain run does not.
Limitations
An adapter only works with the base model it was trained for, and it adds a little memory and load time. If the replies look worse with the adapter, the mismatch is the first thing to check.
