Merge the adapter before you judge the speed

Qwen3.8-27B Q8_0, llama.cpp,64GB M5 Pro Mac miniPrompt processing at 4K context, tok/s (median of 3).Data: @pratikg, Nov 18 2026Base380LoRA applied217LoRA merged388Bars to scale (1.5 px per tok/s).Generation stayed 9.42 to 9.97 tok/s across all three.
Fig. 1. Prompt processing at 4K context, from @pratikg's post: 380 tok/s base, 217 with the LoRA applied, 388 merged. Bars are to scale at 1.5 px per tok/s (380 × 1.5 = 570, 217 × 1.5 = 325.5, 388 × 1.5 = 582).

If you fine-tune a local model and it suddenly feels slow, the fine-tune might not be the problem. The way you load it might be.

@pratikg ran the numbers overnight on a 64GB M5 Pro Mac mini. Qwen3.8-27B at Q8_0 in llama.cpp, thinking mode off, median of three runs, three ways: the base model, the base with the pi-adapted LoRA applied on top, and the same LoRA merged into the weights.

The numbers that matter

Prompt processing at 4K context went 380 tok/s on the base, 217 with the LoRA applied, and 388 once it was merged. In his words, applying the LoRA without merging "seems to come at a cost of ~40% in prompt processing speed."

At 32K context the gap shows up where you feel it most, before the first token. Time to first token was 105 s on the base, 170 s with the LoRA applied and 106 s merged.

Generation hardly moved: 9.82, 9.42 and 9.97 tok/s. So if you only watch the words stream out, you'd never notice. You'd just notice that every long prompt takes forever to start.

Why I care about the prefill side

I serve models with llama.cpp on my own Macs. Agent work is mostly reading: long system prompts, files, tool output. On that kind of load the prefill number is the one that decides whether the thing feels usable, and an adapter left unmerged hits exactly that number.

The merged model is 28.6 GB and peaked at 37.3 GB of memory, so on his 64GB machine it fits completely.

Did the fine-tune do anything?

He also ran both models through 12 small Python tasks in the pi coding agent, twice each. Both solved 22 of 24. The adapted one was a little quicker per task, 313 s against 334 s on average. That's a small sample and he doesn't oversell it, which I appreciate.

What I'd take from it

  • Benchmark a fine-tune merged, not stacked on top at load time, or you're measuring the loading method.
  • Look at prefill and time to first token, not only generation speed.
  • Check that the merged file still fits your memory with room for context before you commit to it.

Full results and setup in the original post by @pratikg.

Tags: Local inference Fine-tuning Benchmarks macOS

All ship logs