GitHubGitHub Stars
← All posts

Running the GCR benchmark on local models: no LLM wins consistently

We reran kUML's 50-task GCR benchmark against three open-weight models on local Ollama hardware — qwen3-coder:30b, llama4:scout, and deepseek-r1:70b — and got three different answers on whether kUML's structural fidelity lead holds up.

  • kUML
  • research
  • benchmark
  • ollama
  • llm
  • open-weight

Our original GCR benchmark post and the handbook’s full writeup cover four frontier models: Claude Sonnet 5 and GPT-4o show kUML leading on Structural Fidelity (SF), while Gemini 2.5 Flash and Pro show kUML trailing both baselines. That split tracks model family, not model tier — Gemini 2.5 Pro reproduces Flash’s weaker kUML performance rather than closing the gap, so it isn’t simply “bigger model, better kUML.”

The natural next question: what happens on hardware anyone can run at home? We pointed the same 50-task corpus, the same Generate-Compile-Repair loop, and the same prompt primers at three open-weight models via Ollama — qwen3-coder:30b, llama4:scout (109B MoE, ~17B active), and deepseek-r1:70b, all at Q4_K_M quantization on local hardware. No API keys, no cloud calls.

Three models, three different answers

Model kUML SF Best baseline SF Verdict
qwen3-coder:30b 26.4% Mermaid 32.4% kUML trails clearly — reproduces the Gemini pattern
llama4:scout 26.5% Mermaid 24.4% kUML leads clearly — reproduces the Claude/GPT-4o pattern
deepseek-r1:70b 21.4% Mermaid 21.6% Essentially tied — a 0.2-point gap at n=1

There is no consistent story here. One local model reproduces each side of the frontier-model split, and the third sits exactly in between. At n=1 per model this doesn’t prove open-weight-vs-frontier is irrelevant to the outcome — but it does rule out the simplest explanation (“local models just do worse at kUML”), because two of the three don’t.

The more consistent finding: everything gets harder

What is consistent across all three local models is that compile rates drop for every DSL, not just kUML. llama4:scout’s PlantUML Final Compile Rate (74.0%) and Mermaid’s (80.0%) are both well below the near-100% norm every frontier model hits. deepseek-r1:70b goes further — its kUML FCR (62.0%) is the lowest of any run in this benchmark, cloud or local, and PlantUML/Mermaid aren’t much better (70.0%/82.0%). That points to a general weakness in strict output-format adherence at this scale/quantization, not something specific to kUML’s syntax being underrepresented in training data.

deepseek-r1:70b’s failures were also the least concentrated of the three: kUML didn’t converge on 19 of 50 tasks, spread across all four diagram families with none fully clean — unlike llama4:scout, where all 12 C4 tasks compiled successfully for kUML (the inverse of the C4 first-shot cliff we saw with Claude Sonnet 5 in the original run).

Running a reasoning model is a different kind of slow

deepseek-r1:70b is a reasoning model — it generates a <think> trace before its final answer on every call. The full 150-cell run took roughly 8 hours on local hardware, versus 15–55 minutes for the other two models. One cell hit a client-side timeout mid-run and needed a targeted retry (run-ollama.py --ids <task-id>, which resumes cleanly from a partial results file). If you’re reproducing this yourself with a reasoning model, budget accordingly.

Reproduce it yourself

research/gcr-benchmark/run-ollama.py in the kUML repository runs this exact benchmark against any Ollama-served model — no API key required: ollama serve, ollama pull <model>, then python3 run-ollama.py --model <model>. See the handbook’s LLM Benchmark page for the full corpus, scoring methodology, and all seven models’ results (four frontier, three local) with per-family breakdowns. The benchmark gallery renders every task’s actual generated diagram — gold standard next to what each model and DSL produced, with a model tab per task so you can compare qwen3-coder:30b, llama4:scout, and deepseek-r1:70b directly against the frontier models.

Honest limitations

All three local runs are single-sample (n=1), single-quantization exploratory results — not part of the primary three-sample dataset behind the four frontier models. They use the same byte-identical prompt primers, so there’s no primer-parity caveat, but a differently quantized or unquantized run of the same model could land differently. Draw conclusions about this specific weight/quantization combination, not about “open-weight models” as a category.

Irakli Betchvaia

Senior Software Architect at Keysight Technologies (Car2x, autonomous driving), co-founder of Pepela Innovation. Building kUML in the evenings and weekends. Questions welcome at irakli@kuml.dev.