perf.lomo.dev / LLM performance notes
LLM tuning,
measured against llama.cpp.
What we tuned, how we measured it and what it did, for Qwen3.8-Flash-Next on a Lenovo ThinkStation P920 announced in 2017, with two Xeon Gold 6138 CPUs, an RTX 3090 and an RTX 3060. Old-school Linux performance work on a modern LLM stack, with llama.cpp on the same weights as the reference.
The full report as a PDF (2.1 MB). Lomina is built on the Strata inference engine, by Niko1221 and the Strata contributors, and tuned with our patches for workstation and datacenter loads. It starts from Eddoursul's Lamina, a Strata fork built for unequal GPUs, and each patch is one commit in Lomina's patch list.
The result
Same weights, same box, measured both ways.
Qwen3.8-Flash-Next, "A Preview of the Qwen4 Architecture", on a Lenovo ThinkStation P920 announced in 2017: two Xeon Gold 6138 with 40 cores, 754 GiB of RAM, an RTX 3090 and an RTX 3060. We run 6-bit experts on 16 of the 40 cores, where our Strata build ran 4-bit on 36. Against llama.cpp --fit on the same weights, one stream of our q6-dual profile (6-bit, up to two streams) decodes 3.87x faster, with MTP drafts on our side only, energy per output token is 2.17x to 7.38x lower with the prompt read included, and the top next token matches at 97.75 % of positions.
Against llama.cpp, same weights, q6-dual profile
- 97.75 %same top next token as llama.cpp --fit, same weights, teacher-forcedits own two placements: 98.21 %; no skipped expertsMore
- 3.87xone-stream decode against llama.cpp--fit, the faster setup that loaded; we draft with MTP, llama.cpp without: --fit with MTP did not load; same weights and cores; up to 4.73xMore
- 2.17x to 7.38xless energy per output token than llama.cpp --fitprompt read included; MTP drafts on our side only; the gap grows with prompt lengthMore
Our tuning
- Q4 to Q6precision up on 16 cores in q6-dual and q6-quad; our Strata build ran Q4 on 36expert gate and up 4.5 to 6.56 bits, down 6.0 to 8.5, from our files' tensor types; Unsloth's KL for its own files 0.047 to 0.027More
- +85 %two-stream throughput on 60 % fewer coresq6-dual, 6-bit both times, 16 cores against our first 40; +15 % over our best 40-core runMore
- 12.2-17.3 %of decode speed from the hardware prefetchers, which we keep onq6-dual, measured by switching them off on the engine coresMore
Long prompts
The first token, as the prompt grows
One stream, the same box and the same weights, prompts read cold. On a short cold prompt llama.cpp answers first; as the prompt grows, the order turns.
Read this part of the reportOur tuning
Step by step, on fewer cores
Two streams together, from our first 40-core configuration to the 16-core profile we run today. Each step is one change, and a speed change stays only when the output matches the reference.
Read this part of the report The patches behind the stepsPrecision
From 4-bit to 6-bit weights
The weight groups that differ between the two files, in bits per weight. The accuracy suites show no measurable difference between Q4 and Q6, while precision went up.
Read this part of the reportThe full report
System Performance Workbench
The method, Linux tuning, huge pages, prefetching, precision through the pipeline, energy, the limits of what we measured, and how to measure it yourself on your own box.
Work with us
We tune systems for a living: CPU and memory placement, huge pages, prefetching, bandwidth, GPUs and the software on top. See our work, or use the contact form.