Re-benchmarking local GGUF models for a coding agent after a llama.cpp upgrade
- Models & engines
- llama.cpp 0.9.0-dev (b1c902f) plus the Strata engine 0.1.57
Models including minicpm-v-4.7-35b-a3b q4_k_m, qwen36-35b-distill-mxfp4_moe, qwen3.8-27b (ud-q3_k_xl and heretic q4_k_m), ornith-1.5-35b-a3b, gemma-4-26b-a4b-it ud-q5_k_xl and strata-iq3_xxs
Pinned sampling: temperature 0.2, top-p 0.95, top-k 40, min-p 0.05, seed 42, KV cache q8_0, --jinja, one slot - Key gotcha
- Agent scores first collapsed to 58% and 64% with empty replies in turn one, because the thinking chain burned the whole 512-token turn budget before any tool call.
What they built
Jordi Marçal runs a benchmark harness that scores local GGUF models under llama.cpp for coding-agent work on four dimensions: tool calling, code, agent episodes and speed, with receipts of every call.
After his machine moved from llama.cpp 0.6.0-dev to 0.9.0-dev and the Strata engine from 0.1.44 to 0.1.57, he re-measured the same fleet with the same harness and sampling, expecting the ranking to survive. It did not.
This round also records how many context tokens each model reads, since the agent loop re-sends the whole conversation every turn.
Setup
- llama.cpp 0.9.0-dev (b1c902f) plus the Strata engine 0.1.57
- Models including minicpm-v-4.7-35b-a3b q4_k_m, qwen36-35b-distill-mxfp4_moe, qwen3.8-27b (ud-q3_k_xl and heretic q4_k_m), ornith-1.5-35b-a3b, gemma-4-26b-a4b-it ud-q5_k_xl and strata-iq3_xxs
- Pinned sampling: temperature 0.2, top-p 0.95, top-k 40, min-p 0.05, seed 42, KV cache q8_0, --jinja, one slot
How it works
- Each model runs with thinking on and off; ON rows use generation caps of 1024/8192 and OFF rows the defaults of 128/512.
- Every call's receipts record output tokens and now input tokens, summed per agent session across 72 sessions.
- Scores are a single run with seed 42 this round, where October's were the mean of three.
Results & numbers
- The top is a tie at 0.87: MiniCPM with thinking on and qwen36 with thinking off.
- qwen3.8-27b heretic with thinking on posted the best code and agent scores, 97% on both.
- Strata gained the most, from 0.70 to 0.78 with thinking on.
- Thinking added 26% to 151% more session tokens depending on the model; gemma with thinking on burned the most context (11.1K average) for 0.75.
Gotchas
- Agent scores first collapsed to 58% and 64% with empty replies in turn one, because the thinking chain burned the whole 512-token turn budget before any tool call.
- A thinking model measured with direct-answer caps measures the harness, not the model; the failure looks like a regression unless your receipts record it.
- Per-call token use is flat; the cost differences live in the agent loop as the conversation grows.
“An engine upgrade does not change what a model knows; it changes how the plumbing counts.”— Jordi Marçal
Do it yourself
- Fix your harness, tasks and sampling settings so only the model or engine changes between runs.
- Run each GGUF under llama-server with thinking on and off, giving thinking runs generous generation caps.
- Record receipts for every call, including input and output tokens per agent session.
- When a score moves after an engine upgrade, check caps and harness conditions before blaming the model, and treat close rows as ties.
Similar setups
Letting a coding agent tune llama.cpp on an 8 GB AMD GPU: 3x faster prompt reading for OpenCode
Cliff K had his coding agent benchmark llama.cpp backends and flags for a Qwen3.6 35B MoE on a Radeon RX 6600 XT, at the context depths OpenCode really uses, and turned the process into an open-source skill.
A self-hosted llama.cpp endpoint on three 16 GB GPUs with presets.ini and Docker
Theo Dufort shares the Compose file and 60-line presets.ini behind his private OpenAI-compatible endpoint: a 27B coding model at 132K context and a 26B MoE chat model.
Selective MoE offloading in llama.cpp on a 16 GB laptop GPU: faster for some models, much slower for others
Jessica Doering benchmarked five Mixture-of-Experts models too big for her 16 GB RTX 4090 laptop GPU, comparing llama.cpp's --n-cpu-moe expert offloading against plain layer offloading.
Home RAG assistant for embedded-systems docs on Proxmox
Ollama, llama.cpp, Open WebUI, BGE-M3 and SearXNG in a GPU-passthrough VM. Moving from 6 GB to 16 GB of VRAM changed which models could run.