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.

Against llama.cpp --fit, the faster setup that loaded
One stream against llama.cpp --fit, the faster configuration that loaded, valid under the pre-registered rule: decode 3.87x to 4.73x faster, energy per output token 2.17x to 7.38x lower; the --fit set has no 16K case.

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.

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 report
First token against prompt length, three setups
First token against prompt tokens read, one stream: on a 90-token cold prompt llama.cpp --fit answers first, 1.71-2.11 s over five runs against 3.8 s; at 31,356 tokens we answer in 11.857 s, llama.cpp in 152.088 s with --fit and 153.242 s stock.

Our 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 steps
Two streams, step by step
Two-stream total on the test collector, short prompts, temperature 0: from 55.6 tok/s on the first 40-core configuration to 102.5 and 103.6 tok/s on the current q6-dual, +15.0 % over the best 40-core result. Each step is its own session.

Precision

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 report
What went up: precision of the weights
What went up: bits per weight in the three weight groups that differ, Unsloth's UD-Q4_K_XL against the UD-Q6_K_XL we serve; all weights 103.68 to 157.54 GiB, +52 %.

The 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.