uncategorized.

FIELD NOTE / 27 Oct 2026 · 19 min read

Same File, Different Engine: Strata and Maya Against Plain llama.cpp on One RTX 5090

I ran the identical Qwen3.8-Flash-Next file on plain llama.cpp and on Strata, and a GLM-5.3-Flash file on llama.cpp and on Project Maya, on one RTX 5090. Without speculative decoding, prefill is several times faster, and decode is 3.5–5.0× faster on Qwen and 1.9× on GLM at 8K; MTP adds about half again on Qwen; and a 95-CVE code-audit test cannot tell any of the runs apart. Mostly one run per setting, speed only.

EXPLORE THE EVIDENCE BELOW
One model. Different paths.u.

Strata is an open-source inference engine for mixture-of-experts models much bigger than the GPU. Project Maya is a fork of it built for one model, GLM-5.3-Flash; Basalt is another fork, for Qwen3.8-Flash-Next only. They are one family, not three independent engines. This is the second of three posts. The first explained how they run models bigger than the card; this one asks whether it pays off, by running the same model file on plain llama.cpp and on the family’s engine. One machine, one operator, mostly one run per setting, and speed only: I did not compare quality against the original models.

6.5–7.4×
faster prefill, and 3.5–5.0× faster decode, on the same Qwen file and prompts: Strata vs hand-tuned llama.cpp, MTP off, 8K–260K-token prompts
~8×
faster prefill and ~2× faster decode on the same GLM file, Maya vs llama.cpp, no MTP on either side. Prefill 7.8–8.9× at lengths that differ between the two; decode 1.9× at 8K only
≈ +50%
decode from MTP (speculative decoding) on Qwen, Strata on vs off; 47–71% depending on prompt length, on synthetic repetitive code prompts
49–53 of 95
strict hits on a 95-CVE code-audit test across every Strata-family run; no pair I tested differs significantly

One file, two engines

Both engines load the identical Qwen3.8-Flash-Next IQ3_S file: 78 GB on disk, 2.4× the card’s 32 GB. They get the same synthetic code-review prompts, built to an exact token count, nothing cached, 256 tokens forced out. The llama.cpp side is not a strawman: I tried about eight placement settings on the 8K prompt and kept the best one that fit the card.

Against that, Strata reads the prompt at 5,171–5,549 tok/s, where llama.cpp manages 695–799 tok/s: 6.5–7.4× faster. With MTP off, Strata decodes at 113–117 tok/s from 8K all the way to 260K tokens, while llama.cpp slows from 32.7 to 23.4 tok/s over the same range: 3.5–5.0×. That is placement alone, the engine’s way of keeping hot experts in VRAM and the rest in pinned RAM. Turn MTP on and the gap grows to 5.1–8.5×, but that ratio compares an engine with speculation against one without; I did not test llama.cpp’s own.

Strata family · results · 1 / 7

Same file, same prompts: Strata reads long prompts 6.5–7.4× faster than tuned llama.cpp.

Prefill speed (tok/s) against prompt length. Qwen3.8-Flash-Next IQ3_S on the left; GLM-5.3-Flash Maya-S24 on the right, where Maya's lengths differ from llama.cpp's.

Prefill tok/s against prompt length on a log axis. Qwen: llama.cpp 695 to 799, Strata 5,171 to 5,549. GLM: llama.cpp 305 to 327 at 8K to 260K, Maya 2,372 to 2,795 at 8K to 220K.

Measured. llama.cpp build 77c4540ce, hand-tuned, Q8_0 KV, no MTP; Strata 0.1.51 (INT8 KV), Maya 1.1.13 on its engine split. Medians; 3 runs at 8K and 32K, fewer at the long lengths, one run at 260K. RTX 5090 32 GB at PCIe 4.0 x16 · Ryzen 9 3950X · 121 GiB DDR4.

The same exercise on GLM-5.3-Flash, using Maya’s own Maya-S24 file, which loads unmodified in llama.cpp: Maya reads prompts 7.8–8.9× faster, and decodes 1.9× faster at 8K (26.9 against 13.95 tok/s), with no MTP on either side. The caveat is real: Maya’s measurements sit at different prompt lengths and on different days than llama.cpp’s, so this is not a matched test.

Strata family · results · 2 / 7

Without MTP, Strata decodes 3.5–5.0× faster on Qwen; Maya is 1.9× at 8K on GLM.

Decode speed (tok/s) against prompt length. Qwen draws Strata with MTP off and on as separate lines.

Decode tok/s against prompt length. Qwen: llama.cpp falls from 32.7 to 23.4; Strata with MTP off is flat at 113 to 117; with MTP on it is 168 to 199. GLM: llama.cpp 13.95 falling to 12.52, one Maya marker at 26.9.

Measured; 256 forced output tokens, temperature 0. The GLM marker is Maya's --bench mean, taken after short prompts, so it is paired with llama.cpp at 8K only; Maya's needle runs at 30K–220K give 25.6–27.2 as context. The MTP-on line compares speculation against none.

Does the speed cost accuracy? I ran a 95-CVE code-audit test (name the vulnerable file and the vulnerability family) on every Strata-family run: 49–53 of 95 strict hits, against 49 for the dense Qwen3.8-27B on llama.cpp. No pair of runs differs significantly. That says the test cannot separate them, not that they are equal.

Strata family · results · 6 / 7

Nothing separates the runs: 49–53 of 95 strict hits, and no pair is significantly different.

95 CVE code-audit tasks, local grader, strict = right file and right vulnerability family.

Dot plot with 95 percent intervals for eight runs between 49 and 53 of 95, and a table of exact McNemar p-values, all between 0.42 and 1.00.

Measured. Local grader, not the official judge; temperature 0, one run per setting; file match was 95 of 95 in every run. Intervals are Wilson 95%. p-values are exact two-sided McNemar on each setting's headline run.

What I did not measure

Quality against the original FP8 or BF16 models. Whether llama.cpp and the engine give the same answers on the same file. llama.cpp’s own speculative decoding, other llama.cpp builds, or other engines such as ik_llama.cpp and KTransformers. Anything on other hardware: this is a Zen 2 CPU on DDR4 and a PCIe 4.0 link, which is exactly where a placement policy matters most.

What to take away

On the same files, the Strata family reads long prompts 6.5–7.4× faster than a hand-tuned plain llama.cpp on Qwen (matched prompts) and 7.8–8.9× on GLM (lengths differ), and decodes 1.9× (GLM, 8K) to 3.5–5.0× (Qwen) faster without speculative decoding. MTP is worth about half again on Qwen. The one accuracy test I ran cannot tell the runs apart. The deep dive has the fairness table, every chart, the cost of a long first prompt, real use against the benchmark, what is soft, and the files to reproduce it.

What was compared, and what wasn’t

The hardware is one box for everything: an RTX 5090 with 32 GB of VRAM on PCIe 4.0 x16 (28.0 GB/s measured), a Ryzen 9 3950X (Zen 2, AVX2, no AVX-512), 121 GiB of DDR4 and an NVMe drive. Prefill is reading the prompt; decode is writing the answer; MTP is speculative decoding with the model’s own draft head. Here is each comparison with what I can say about it and what has to sit beside the number.

  • Qwen IQ3_S, llama.cpp vs Strata, 8K–260K. I can say: Prefill 6.5–7.4×. Decode 3.5–5.0× with MTP off on Strata; 5.1–8.5× with MTP on. Beside it: Same GGUF, identical prompt text and token counts. llama.cpp: Q8_0 KV, no MTP, tuned on the 8K prompt only (about eight settings, four ran out of GPU memory), two runs at 131K, one at 260K. Strata: INT8 KV, engine 0.1.51. The MTP-on ratio puts speculation against none.
  • GLM Maya-S24, llama.cpp vs Maya. I can say: Prefill 7.8–8.9×. Decode 1.9× at 8K. No MTP on either side. Beside it: Different lengths (llama.cpp 8K–260K, Maya 8K–220K) and dates; the decode ratio pairs Maya’s 8K bench mean with llama.cpp at 8K only. llama.cpp’s tuned setting is the best of two that loaded; six others ran out of GPU memory.
  • Strata with MTP on vs off. I can say: Decode about +50% (+47% to +71%); prefill unchanged. Beside it: Synthetic repetitive code prompts, engine 0.1.51, three runs per cell, one start per mode.
  • Real use through llama-swap. I can say: Median decode 149–166 tok/s on Qwen; 29.1–29.2 tok/s on GLM (Maya). Beside it: Mixed traffic that includes my own benchmark runs; compare it only with same-era controlled runs.
  • Qwen against GLM. I can say: Only “two different models on two engines”. Beside it: Different active parameters and different MTP use; I do not rank them.
  • 95-CVE accuracy. I can say: 49–53 of 95 strict hits; no pair significantly different. Beside it: Local grader, temperature 0, one run per setting.
  • Quality against the original models. I can say: Nothing. Maya’s own 97.7% recovery figure is theirs. Beside it: Not measured by me.

The Qwen result: same file, same prompts

The prompts are the exact chat messages Strata’s own harness sent, replayed to llama.cpp, with token counts matching at 8,192, 32,768, 131,072 and 260,000. Thinking is off, 256 output tokens are forced, the temperature is 0 and zero tokens are cached (checked). llama.cpp ran as -ncmoe 30 -ub 2048 with Q8_0 KV; at the 8K prompt that setting gave 793 tok/s of prefill against 276 at -ub 512, so the microbatch mattered more than the expert placement. Four settings with more GPU layers or a bigger microbatch ran out of GPU memory at load.

Strata reads 5,171–5,549 tok/s at every length, because its prefill streams each layer’s experts in while the previous one runs. llama.cpp reads 695–799 tok/s and slows a little with length. Decode is where the curves part: Strata with MTP off is flat at 113–117 tok/s, llama.cpp falls from 32.7 to 23.4 tok/s as the prompt grows, and the ratio widens from 3.5× to 5.0×.

Strata family · results · 1 / 7

Same file, same prompts: Strata reads long prompts 6.5–7.4× faster than tuned llama.cpp.

Prefill speed (tok/s) against prompt length. Qwen3.8-Flash-Next IQ3_S on the left; GLM-5.3-Flash Maya-S24 on the right, where Maya's lengths differ from llama.cpp's.

Prefill tok/s against prompt length on a log axis. Qwen: llama.cpp 695 to 799, Strata 5,171 to 5,549. GLM: llama.cpp 305 to 327 at 8K to 260K, Maya 2,372 to 2,795 at 8K to 220K.

Measured. llama.cpp build 77c4540ce, hand-tuned, Q8_0 KV, no MTP; Strata 0.1.51 (INT8 KV), Maya 1.1.13 on its engine split. Medians; 3 runs at 8K and 32K, fewer at the long lengths, one run at 260K. Prefill is the server's own timing for llama.cpp and the engine's for Strata. RTX 5090 32 GB at PCIe 4.0 x16 · Ryzen 9 3950X · 121 GiB DDR4.

Strata family · results · 2 / 7

Without MTP, Strata decodes 3.5–5.0× faster on Qwen; Maya is 1.9× at 8K on GLM.

Decode speed (tok/s) against prompt length. Qwen draws Strata with MTP off and on as separate lines.

Decode tok/s against prompt length. Qwen: llama.cpp falls from 32.7 to 23.4; Strata with MTP off is flat at 113 to 117; with MTP on it is 168 to 199. GLM: llama.cpp 13.95 falling to 12.52, one Maya marker at 26.9.

Measured; 256 forced output tokens, temperature 0. The GLM marker is Maya's --bench mean, taken after short prompts, so it is paired with llama.cpp at 8K only; Maya's needle runs at 30K–220K give 25.6–27.2 as context. The MTP-on line compares speculation against none.

The earlier first-pass comparison I ran on a Q4_K_XL file claimed a prefill gap of 8.5–12.8×. That baseline had only been tuned up to a 512-token microbatch, and the IQ3_S tuning showed a 2048 microbatch is about three times faster at prefill, so that older ratio overstated the gap and I no longer use it.

The GLM result: same file, two engines

Maya’s Maya-S24 file is about 91 GB (2.8× the card) and runs unmodified in llama.cpp: build 77c4540ce, architecture glm5-next, loaded in about 50 s from a warm page cache. llama.cpp logs that it ignores the MTP block and has no speculation set up, so neither side ran MTP. I tried eight placements on the 8K prompt: --fit on and -ncmoe 36 loaded, and the other six ran out of GPU memory. Tuning moved decode from 11.84 to 13.95 tok/s; I did not sweep batch sizes, thread counts or KV types.

llama.cpp’s prefill is flat at 305–327 tok/s whatever the length, and its decode loses about a tenth between 8K and 260K (13.95 to 12.52 tok/s). Maya reads 2,372–2,795 tok/s, and decodes 26.9 tok/s in its --bench. The ratios are 7.8–8.9× for prefill, taken at the nearest length pairs, and 1.9× for decode at 8K. Three caveats go with them: the lengths differ (Maya 8K to 220K, llama.cpp 8K to 260K), the dates differ (Maya Oct 16–17, llama.cpp Oct 26), and Maya’s 25.5–28.0 tok/s from post 1 are the 95-CVE runs (engine default against a hand-pinned PCIe share that llama.cpp has no counterpart for), a different measurement from the 26.9 tok/s --bench mean used here.

The cost of a long first prompt

The pack’s time-to-first-token figures are the cost of reading a fresh long prompt with nothing cached, with the engine already loaded and warm. They are not cold start: loading the model is a separate cost (Maya 215–240 s, Strata’s NVFP4 file 160–256 s, llama.cpp about 50 s on a warm page cache for the GLM file), and a follow-up turn that reuses the cache is far cheaper.

At a 260,000-token prompt llama.cpp takes 374.1 s on Qwen and 816.0 s (13.6 minutes) on GLM; Strata takes 50.5 s and Maya, from its 220K measurement, about 100 s. That last number is derived, not measured, and it is probably optimistic because Maya’s prefill slows a little as prompts grow. The two sides are also timed differently: llama.cpp’s first-token time is the server’s, Strata’s is measured by the client, which slightly favours llama.cpp.

Strata family · results · 3 / 7

Reading a fresh 260K-token prompt takes 374.1 s on llama.cpp and 50.5 s on Strata.

Time to first token, engine loaded and warm, nothing cached. GLM: 816.0 s on llama.cpp against a derived Maya value.

Bars: Qwen llama.cpp 374.1 seconds, Strata 50.5; GLM llama.cpp 816.0 seconds, Maya about 100 seconds at least (derived, hatched).

Measured except the Maya bar: derived as 260,000 ÷ 2,611 tok/s from the 220K run, so "at least about 100 s". llama.cpp's figure is server-side and Strata's client-side, which slightly favours llama.cpp. Strata's 50.5 s is the MTP-on run; the MTP-off run is 49.4 s. One run at 260K on llama.cpp.

What MTP buys

Strata’s MTP drafts several tokens with the model’s own draft head and checks them in one pass. Turning it off on the same engine isolates it. With MTP off Strata decodes 113–117 tok/s from 8K to 260K; with it on, 168–199 tok/s. The gain is +48%, +52%, +47% and +71% at 8K, 32K, 131K and 260K: about half again, and the 260K figure is the outlier.

Strata family · results · 4 / 7

MTP adds about 50% decode on Qwen, from 47% to 71% depending on prompt length.

Strata 0.1.51 on Qwen3.8-Flash-Next IQ3_S, decode tok/s with MTP off and on.

Paired bars for four prompt lengths: MTP off 113.2, 116.5, 116.0, 116.0; MTP on 167.7, 177.2, 170.8, 198.7; gains +48, +52, +47 and +71 percent.

Measured. Medians of 3 runs per cell, one engine start per mode, MTP-off first. Synthetic repetitive code prompts, which a draft head finds easy; acceptance is per draft token, not per pass. The first MTP-off run at 8K logged 10 drafts offered although the config had MTP off; the median is run 2 and unaffected. Maya ran no MTP.

Acceptance is the share of the draft head’s guesses the full model agrees with: 65.5% in these runs and 69.3% across 1,944 real requests. The MTP-on spread is wide, because acceptance depends on how predictable the text is; the MTP-off figure barely moves.

Real use against same-era benchmark runs

The llama-swap logs record what the engines did on everyday requests from Oct 13 to 21: 1,944 successful requests on Qwen IQ3_S through Strata, 141 on GLM through Maya. Strata’s median decode is 149–166 tok/s in every prompt-size bucket, and Maya’s is 29.1–29.2 tok/s on short prompts. Those logs span engine versions 0.1.42 to 0.1.47, so they are compared only with controlled runs of that era: 160.4–181.7 tok/s at 4K and 32K and 145.7 tok/s at 260K. Real use sits inside that spread. It sits below the newer 0.1.51 runs (168–199 tok/s with MTP), which I did not draw alongside it.

Strata family · results · 5 / 7

Real use decodes at 149–166 tok/s, in line with same-era benchmark runs.

Median decode and p10–p90 by prompt size over mixed everyday requests, beside controlled runs from the same engine era.

Real-use decode medians 149 to 166 tok/s by prompt-size bucket with p10 to p90 whiskers, beside controlled runs at 4K, 32K and 260K.

Measured. llama-swap logs, one box, Oct 13–21; mixed traffic that includes some of my own benchmark runs; the largest bucket is 4 requests. Real use is MTP on (acceptance 69.3%, against 65.5% in the synthetic runs).

Does it still think straight?

Speed would be cheap if it cost accuracy, so I checked with a 95-CVE test: for each task the model reads a source file and must name the vulnerable file and the vulnerability family. Every Strata-family run found the right file 95 times out of 95, and scored 49–53 strict hits; the dense Qwen3.8-27B on llama.cpp scored 49. The exact McNemar tests between pairs of runs give p between 0.42 and 1.00, and the other three Qwen3.8-27B runs (48 of 95 each) give 0.27–0.82. None is significant.

This test compares models and quants, not the engines on one file: I never checked that llama.cpp and an engine give the same answers on the same file. Read it carefully, too. With only 5–12 tasks on which a pair of runs disagrees, the test cannot detect a difference smaller than about 10 tasks, and it would need roughly a 9–1 split to call one. A 95% interval at this size spans about ±10 points, and run-to-run noise is ±2–3 tasks. So “can’t tell them apart” is the finding; “equal” is not. Per repo, Maya’s one steady edge is openemr (9 of 12) and httpd is 0 of 5 for every model of every kind, which is a blind spot in the test.

Strata family · results · 6 / 7

Nothing separates the runs: 49–53 of 95 strict hits, and no pair is significantly different.

95 CVE code-audit tasks, local grader, strict = right file and right vulnerability family.

Dot plot with 95 percent intervals for eight runs between 49 and 53 of 95, and a table of exact McNemar p-values, all between 0.42 and 1.00.

Measured. Local grader, not the official judge; temperature 0, one run per setting; file match 95 of 95 everywhere. Intervals are Wilson 95%. p-values are exact two-sided McNemar on each setting's headline run, computed from the per-task grades; one rerun (30 tasks) and two non-headline runs are drawn or left out as labelled.

Maya is also only conditionally deterministic. Across four runs, 48 tasks were right every time, 38 were wrong every time and 9 flipped. The same config and request order from a fresh start replays byte for byte (30 of 30 tasks), but a different history, or a different CPU/PCIe split, changes the wording of the answers while the verdict mostly holds. My guess, unconfirmed, is that which side computes an expert changes the low bits.

Strata family · results · 7 / 7

Across four Maya runs, 48 tasks are always right, 38 always wrong and 9 flip.

One cell per task, sorted by outcome.

A grid of 95 cells: 48 solid, 38 outlined, 9 hatched.

Measured. Maya-S24 (and Maya-S) on the 95-CVE test, local grader, four main runs. The cause of the flips is unconfirmed.

What failed or is soft

  • The tuned llama.cpp baselines are single-operator tuning. About eight settings per model on the 8K prompt only; the 131K and 260K placements were not re-tuned, the 131K point is two runs and 260K one. Someone with more time may find a few percent.
  • Different engines, different KV. llama.cpp used Q8_0 KV; Strata INT8 KV with 32K cells resident. They are not identical treatments.
  • Prefill is measured differently. llama.cpp’s is the server’s prompt_per_second, Strata’s the engine’s own prompt time. Time to first token is the less-bad like-for-like column, though llama.cpp’s is server-side and Strata’s client-side.
  • Synthetic prompts. Repetitive code review text, speed only. It flatters speculation.
  • Strata versions. 0.1.47 gave 145.7 tok/s at 260K with MTP and 0.1.51 gave 198.7; the engine update and run-to-run spread both plausibly contribute, and I did not separate them.
  • The GLM comparison is not a matched test, for the reasons above.
  • llama.cpp loads faster than Maya. About 50 s from a warm page cache against Maya’s 215–240 s cold start, which is mostly warming the expert tiers from NVMe. Cache state differs, but the cost is real and sits next to the speed-up.

What I did not measure (deep)

Quality against the original FP8 or BF16 models. Whether llama.cpp and Maya, or llama.cpp and Strata, give the same answers on the same file: the 95-CVE test compares models and quants, not the engines on one file. llama.cpp’s own speculative decoding, a newer llama.cpp build, ik_llama.cpp, KTransformers or tensor-override placements. A different-quant GLM file on llama.cpp. A replicate of the PCIe-share effect. Other hardware: PCIe 5.0 or DDR5 would shift the whole trade-off.

Reproduce it

The download has the CSVs behind every number, the exact McNemar tables, the llama.cpp flags and the failed settings, and the GLM benchmark script (tarball). The Strata and Maya engines are separate repositories. The Qwen prompts are Strata’s own request files, which are not in the bundle, so that half of the comparison is not reproducible from it; the GLM prompts are generated by the script.

What’s next

The third post is about Basalt, a Strata fork for Qwen only that decodes faster on real work, and what its bigger quant costs.

What I’d trust and what I wouldn’t

What I’d trust: every speed figure is a median of runs from raw per-run logs, the same prompts went to both engines on the Qwen file, zero cached tokens was asserted, and the ratios are re-derived from the shipped CSVs by a test.

What I wouldn’t generalise without care:

  • One machine, one operator, mostly one run per setting. A different CPU, DDR5 or PCIe 5.0 would move the trade-offs.
  • The MTP-on ratios put an engine with speculation against one without.
  • The GLM ratios are not matched (lengths and dates differ, and the decode ratio is a single 8K point).
  • The ~100 s for Maya at 260K is derived from a shorter run.
  • Real use is mixed traffic, and the longest bucket is four requests.
  • The accuracy test is a local grader on one benchmark. It cannot separate these runs; that is all it shows.
  • No quality claim against the original models. Maya’s 97.7% recovery is from its docs.

Credits: Strata (Niko1221, MIT); Project Maya (Peasant Smith / mw00, MIT, ported from Strata); Basalt (Jesús Gulfo / jesdga95, MIT, a Strata fork); llama.cpp/ggml; quants by ISTA-DASLab and Unsloth; models by zai-org (GLM-5.3-Flash) and the Qwen team.

THE END OF THIS THREAD. NOT THE CURIOSITY.

Keep this one on your shelf, or follow another signal.

Back to the journal ↗