Strata vs Strata-HotRod, same model, same prompts, same harness β a 3.5Γ decode gap and a question about tuning.
Repos under test
- Strata (upstream): https://github.com/Niko1221/Strata
- Strata-HotRod (fork): https://github.com/sangharshadhyeta/Strata-HotRod
Disclosure: neither repo is mine. I didn't write either engine and I'm not affiliated with either project β I'm just a user benchmarking two forks of the same lineage on my own hardware. Full credit for the code belongs to the maintainers linked above.
Both are llama.cpp-lineage engines with their own MoE expert-streaming stack. The fork is 119 commits off the shared ancestor 8a93614ed with +9,017/β409 lines in src+include; upstream is ~5,300 commits ahead of that same ancestor.
I benchmarked both on the same box, same model, same harness. Then I asked the obvious follow-up: can upstream be tuned to match the fork with flags alone? Short answer: prefill yes, decode no. Details and the exact flags below β and I'd like this sub's opinion on whether I'm missing a flag set.
TL;DR
Chat decode (tok/s): upstream 7.7 β upstream tuned 15.0 β HotRod 51.6
Chat first token (s): upstream 3.50 β tuned 2.01 β HotRod 0.58
4K prefill (tok/s): upstream 733 β tuned 877 β HotRod 1280
16K prefill (tok/s): upstream 1055 β tuned 1251 β HotRod 1668
32K prefill (tok/s): upstream 1094 β tuned 1632 β HotRod 1681
32K first token (s): upstream 29.4 β tuned 19.7 β HotRod 19.1
Agent decode (tok/s): upstream 10.2 β tuned 22.7 β HotRod 55.3
Agent turn first token (s): upstream 7.54 β tuned 6.16 β HotRod 4.46
Failures: 0 / 0 / 0
Giving upstream the fork's memory-tier flags doubles its decode (7.7 β 15.0 tok/s) and brings 32K prefill to within 3 % of the fork. Decode stays 3.5Γ behind, and I believe that gap is code, not configuration.
The machine
- GPU: NVIDIA RTX 4080, 16,376 MiB VRAM, driver 616.56, PCIe 4.0 x16
- CPU: 12th Gen Intel i5-12600K, 10 cores / 16 threads
- RAM: 31.7 GiB
- Storage: Samsung 970 EVO 500 GB NVMe + WD_BLACK SN850X 2 TB NVMe
- OS: Windows 11 (10.0.26200)
- Toolchain: MSVC 19.51, CUDA 13.3, Ninja,
-j 8
- Pagefile: 32 GB fixed on D:, +12.8 GB on C: β commit limit 75.5 GiB
Windows-specific gotcha worth knowing: with a system-managed pagefile the commit limit was only 42.25 GiB and ~5 GiB of commit was free at load time. The engine clamps its RAM tier to min(free RAM, free commit) β headroom β 0.25 GiB, so asking for a 15 GiB tier silently built 0.92 GiB. Fixing the pagefile (32 GB fixed) plus STRATA_RESIDENT_HEADROOM_GIB=1 (default headroom is 4 GiB) was the single biggest win in the whole exercise β +17 % decode, +21 % prefill on the fork before any code change.
The model
Qwen3.8-Flash-Next, GSQ-RCO IQ3_S, 2 shards, 78 GB on disk vs 31.7 GB of RAM β so the resident expert tier is a cache, never a load. 24,576 experts, 131,072 max context (trained 262,144), --kv int8, speculative decoding --spec 4 --spec-min-p 0.5.
Neither engine fits this model in RAM. Both read the rest from the pack file unbuffered. Upstream keeps its tier page-locked; the fork keeps its tier pageable so Windows can trim it while a long prompt streams 33 GiB off the SSD.
Build flags (identical for both)
-G Ninja -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON
-DSTRATA_BUILD_TESTS=OFF -DSTRATA_NATIVE_EXPERTS=ON -DSTRATA_PORTABLE=ON
-DCMAKE_CUDA_ARCHITECTURES=89-real
Upstream built clean, zero patches. The fork needed a local MSVC patch to src/program/generate.cpp (setenv β _putenv_s, sysconf β strata::platform::total_physical_memory()); saved as a .patch, not upstreamed. Engine versions: upstream 0.1.69 (c23477403), fork 0.1.45 (4ea40f1d).
Flags used
Upstream Strata β as benchmarked in the first comparison
--pack <iq3_s> --native <shard1.gguf> --ple-gguf <shard2.gguf>
--expert-cache auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt>
--max-context 131072 --kv int8 --mmap-experts
--expert-profile <expert-profile.bin>
--prefill auto
--resident-budget-gib 4
Upstream Strata β tuned (same binary, four flags changed)
--prefill auto:16384 # was: auto
--resident-budget-gib 15 # was: 4
--kv-resident 32768 # new
env STRATA_RESIDENT_HEADROOM_GIB=1 # was: default 4
Everything else identical. The tier now builds for real: resident RAM: 15.00 GiB of experts in RAM, 7963 exchanged with the VRAM tier, 179795 blob reads from the file, arena_mib 15358, vram_free_mib 1436, expert_slots 3417, expert_cache_mib 6695.
Strata-HotRod
--pack <iq3_s> --native <shard1.gguf> --ple-gguf <shard2.gguf>
--expert-cache auto --spec 4 --spec-min-p 0.5 --mtp <mtp/rt>
--max-context 131072 --kv int8 --mmap-experts
--expert-profile <hotrod expert-profile.bin>
--prefill auto:16384
--resident-budget-gib 15
--kv-resident 32768
env STRATA_ROUTE_RESIDENT=1e30
env STRATA_ROUTE_RESIDENT_RANKS=3-9
env STRATA_ROUTE_RESIDENT_EDGE=1
env STRATA_SWAP2_MAX=2
env STRATA_SWAP2_GAP=1
env STRATA_KV_GROW_INIT=4096
env STRATA_RESIDENT_HEADROOM_GIB=1
Note the original comparison gave upstream a 4 GiB tier while the fork got 14.56 GiB β that's a 3.6Γ cache difference baked into a "code comparison". The tuned run fixes that confound.
Method
tools/strata_bench.py --long, thinking off, server started by the harness. Suite: chat (3 short questions) β 4K prompt β 16K prompt β 32K prompt β agent session (6 turns, 4 tool calls), medians of successful requests. 3 runs per test for the base and fork runs, 2 for the tuned run (slightly noisier; medians comparable). Both engines ran through the upstream harness, each with its own config, because the fork's own copy was broken (NameError: name 'port' is not defined at line 976).
Results (same day, same binaries, IQ3_S)
All columns are upstream 4 GiB / upstream tuned 15 GiB / HotRod 14.56 GiB, plus tuned-vs-base and tuned-vs-HotRod ratios.
- chat decode tok/s: 7.70 / 14.95 / 51.6 β 1.94Γ base, 29 % of HotRod
- chat first token s: 3.50 / 2.01 / 0.58 β β43 % vs base, 3.5Γ slower than HotRod
- 4K prefill tok/s: 732.6 / 876.7 / 1280.0 β 1.20Γ base, 68 % of HotRod
- 4K first token s: 5.61 / 4.65 / 3.16 β β17 % vs base
- 16K prefill tok/s: 1054.7 / 1251.5 / 1668.2 β 1.19Γ base, 75 % of HotRod
- 16K first token s: 15.32 / 12.89 / 9.70 β β16 % vs base
- 32K prefill tok/s: 1094.0 / 1631.6 / 1681.4 β 1.49Γ base, 97 % of HotRod
- 32K first token s: 29.43 / 19.70 / 19.12 β β33 % vs base, βequal to HotRod
- agent decode tok/s: 10.2 / 22.7 / 55.3 β 2.23Γ base, 41 % of HotRod
- agent turn first token s: 7.54 / 6.16 / 4.46 β β18 % vs base
- agent cache hit %: 70.87 / 70.91 / 70.86 β equal
- agent re-read tokens: 5 / 5 / 5 β equal
- failures: 0 / 0 / 0
Reading it: the cache-hit rate is identical across all three (70.9 %, 5 tokens re-read per session), so none of the fork's lead is prompt caching. It is entirely expert-fetch. Flags recover ~20 % of the prefill gap at 4K/16K, ~97 % of it at 32K, and about half the decode gap β but decode stays 3.5Γ behind, and chat first token stays 3.5Γ behind because 51-token prompts still pay a full expert fetch per layer with nothing to cover the miss.
128K context (earlier runs, upstream 0.1.62 / pre-update fork)
Columns are upstream / fork tier 4 GiB / fork tier 15 GiB.
- needle @96K prefill tok/s: 1495 / 1070 / 1206
- needle @96K first token s: 64.8 / 90.5 / 80.4
- decode @117K tok/s: 28.4 / 27.0 / 40.2
- cached-prefix first token s: 2.03 / 1.97 / 1.50
- decode on cached 117K tok/s: 21.3 / 21.6 / 34.0
Upstream wins long-prompt prefill by 1.24Γ; the fork wins decode at 128K by 42 %. At 128K with a full 15 GiB tier the fork logs only 981 MiB of VRAM free and 129β147 swap rounds per request β 128K + a full tier is past this card's ceiling. Tier 4 GiB is the safe 128K setting.
What didn't work
--resident-budget-gib 20 / 24 while commit was tight β tier 0.80 / 0.71 GiB. Clamped by free commit, not by the flag.
--prefill auto:4096 / auto:8192 to free commit β worse (tier 0.71 / 0.78 GiB). Smaller chunk freed less memory than it disturbed.
--kv-resident 16384 β tier 0.00 GiB. KV residency competes for the same budget.
--expert-cache 2000 β tier 2.73 GiB. Frees ~2 GiB commit but shrinks the VRAM expert cache β a trade.
- 24 GiB
VirtualAlloc probe to force a pagefile grow β grew 3.4 GiB, shrank back. System-managed pagefile can't be grown reliably from user code.
- 128K context with the 15 GiB tier β works, but ~981 MiB VRAM free, 129β147 swap rounds/request. Past the GPU's ceiling.
- one engine fitting the model in RAM β never. 78 GB on disk vs 31.7 GB RAM.
Also: the fork's headline feature β a learned look-ahead router, default since 24 Oct β was off in every run (plain router (not on), never reached prediction inside a run). Its measured prefill win came from the non-learned parts: stand-in experts, the RAM tier, layer-major O_DIRECT reads, and 2 EDF-ordered read-ahead threads.
Why I think decode is code, not config
The fork's own bets, in its 9,017 added lines: stand-in experts (swap an absent expert for a close resident one instead of faulting it in), a substitute-fit learner with shadow samples and re-check gates, three tiers card β RAM β SSD with a learned RAM/VRAM reserve, layer-major long-prompt reads via O_DIRECT, and 2 I/O read-ahead threads EDF-ordered. Upstream's 154-option CLI has a tier (--resident-budget-gib, --resident-experts, --ram-keep-gib), prefill chunking, KV residency, an adaptive tier with --adapt-async / --adapt-min-gain, and --vram-elastic β but I found no stand-in-expert or read-ahead-thread equivalent. That matches the numbers: tuning the tier moves prefill, but per-token expert fetch stays 3.5Γ slower.
What I'd like to know
- Am I leaving upstream flags on the table? Candidates I haven't swept:
--adapt-async 1, --adapt-min-gain (default 1.5), --vram-elastic + --vram-segment-mib, --expert-cache N sizing, --pool-workers / --aux-cpus thread placement, --prefill-pipe R. If you've pushed a 16 GB-VRAM / 32 GB-RAM box past ~15 tok/s decode on a 78 GB MoE model with flags only, I'd like the exact set.
- Are there faster engines for this shape of problem? 78 GB MoE, 16 GB VRAM, 32 GB RAM, Windows. I've seen claims around llama.cpp's
--n-cpu-moe / expert offload, ik_llama.cpp, KTransformers, and vLLM expert offload β but I haven't measured any of them on this model and I'd rather not quote numbers I haven't run. What actually beats ~51 tok/s decode and ~1.7 ktok/s prefill here?
- Has anyone ported the fork's stand-in-expert path upstream? Upstream has taken nothing from the fork (0 merge commits). If the decode gap is one code path, a port might be cheaper than maintaining a fork.
- Why is the learned look-ahead off by default in the fork's own runs? If it's not firing, either the trigger condition is wrong or the feature isn't ready β worth knowing before anyone benchmarks it.
Reproduce
Both results folders and the configs are in the repo-adjacent workspace; every number above comes from tools/strata_bench.py --long with the configs pasted in this post. Happy to share the raw results.json pairs if useful.
Strata: https://github.com/Niko1221/Strata
Strata-HotRod: https://github.com/sangharshadhyeta/Strata-HotRod
Neither repo is mine β both are the work of their respective maintainers. I only built, ran, and measured them.