okami.mom/strata

git clone https://git.nkp.pet/okami.mom/strata

albedocmake: strata_kernels links strata_kernels_cpu (iq_kernels.cu reads the latent colscale table from expert_layout.cpp; strata-q36ref failed to link)a4af4df61

main
7 files

files

BUILD.json201 B
README.md21.5 KiB
TRIMMED.md382 B
artifact-hashes.json2.9 KiB
metrics-pool4-arm.json8.4 KiB
mtp-manifest.json11.4 KiB
strata-iq3_s.json2.0 KiB

Community benchmark: RTX 4080 SUPER (32 GB), Core i7-13790F

Measured on 2026-10-04 by 1314521gjy, on one Windows 11 machine. This exercises Strata 0.1.39 with the Flash-Next IQ3_S pack, one GPU, INT8 KV, --max-context 524288, and vision enabled.

The report covers three knobs and one cost measurement:

  1. Expert-pool worker count. The engine's own default on this CPU topology is 15 workers (#642's max(1, p-1+e//2) applied to 8P+16E). Here, 4 workers are 28.7% faster than 15 in a direct four-arm ABBA on 0.1.39, the two pool-4 arms agree to 0.21%, and 8 of 8 workload-by-pair cells favour 4. In an earlier 0.1.36 sweep, the pool's own per-round cost rose monotonically from 6.38 to 17.87 ms/round between 4 and 15 workers.
  2. STRATA_PF_FUSED=1 (fused int8 prompt kernels, #136) with IQ3_S experts: cold prefill +8.9%, decode unchanged within noise.
  3. The context tier itself, at a fixed prompt. 524,288 tokens costs +0.9…+6.3% on a 43,969-token fresh read over 262,144. 1,048,576 costs almost nothing if the expert cache fits: with an over-sized explicit --expert-cache, the same tier ran 7x slower, because on Windows an over-committed card pages instead of failing (see the section on that below — the mechanism was suggested by the maintainer in #781).

Hardware and software

Model and configuration

Model: ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, IQ3_S/:

These were downloaded from a mirror of main, not from the Hub directly, and no per-file SHA-256 or revision pin was recorded for the three GGUF files; only their byte sizes are known. MTP was installed by the setup from Qwen/Qwen3.8-Flash-Next; its manifest is mtp-manifest.json. This is a weaker provenance statement than the RTX 5090 report's, and is stated as such.

The pack built by the installer is the native IQ3_S pack; its identity is in artifact-hashes.json (dense.bin, index.txt, native_experts.txt, tokenizer, the two executables).

Cross-check against the RTX 5090 report already in this repository: the pack's dense.bin, vocab.json, token_type.json and chat_template.jinja, plus the MTP dense.bin, draft_vocab.bin and experts.bin, are byte-identical to the corresponding files that report lists (same SHA-256), so the shared artifacts are the same installs. The per-quantization files (index.txt, native_experts.txt) and merges.txt, tokenizer.json, the MTP dense.txt differ.

Launch configuration, strata-iq3_s.json:

Everything above is the configuration attached here. At the end of the session it moved to --max-context 1048576 (yarn factor 4) with --expert-cache auto --vram-reserve-mib 1500 — the configuration in the cache-budget table below — after the 1M tier was found to be limited by the explicit cache budget rather than by the context window. Both are in the attached config's git history.

The engine's startup banner for this configuration is engine-banner.log; it prints rope scaling yarn, factor 2 (freq_scale 0.5, base 1e+07, mscale 1.069315), --max-context 524288 against a trained context of 262144, KV streaming: 32768 of 524288 cells per QSA layer in VRAM, the K/V in 6.19 GiB of pinned RAM, and expert cache 11631 slots, 22.07 GiB.

Two startup observations worth reporting. The engine warns that this configuration leaves only 226 MiB of VRAM free and suggests --vram-reserve-mib 986 rather than the requested 700 — at IQ3_S the expert cache fills the card even with a 32 GB GPU. And the expert arena, 50.3 GB, is allocated on 4 KB pages (large pages refused ... VirtualAlloc error 1314); the arena is read unbuffered and the model loads in 46.84 GiB at 2.90 GiB/s. The pcie_frac 0.55 in the transfer-probe line is the probe's own default; the engine's self-report shows the configured pcie_frac: 0.35.

Method and reproduction

Everything was driven over the OpenAI-compatible endpoint at http://127.0.0.1:8080/v1/chat/completions on loopback, on the same loaded engine, in increasing-length order, with the engine restarted between configurations but not between requests.

Two instruments were used.

Four-workload ruler. Four real corpora (a coding task, Chinese prose, English prose, and engine documentation), rendered to chat prompts of 6,845 / 6,867 / 5,121 / 4,170 tokens with a different five-token nonce near the start of each request, generating 1,000 tokens greedily. Each workload is requested four times; run 1 is dropped as a warm-up and the median of runs 2–4 is reported. Cold prefill throughput is taken from the dropped run 1, which is the only request in the group that reads its prompt from scratch — the later runs reuse all but ~5 tokens. Because the nonce differs, the generated text differs between runs and greedy output hashes are not expected to match across runs; the acceptance rate and cache hit rate move with it, which is the main source of the few-percent run-to-run spread seen below. Configurations are compared in an ABBA order (A1 B1 B2 A2) so that any drift over the batch shows up as a disagreement between the two same-configuration arms.

Single-read probes. A fresh server process per arm, one 43,969-token cold read (--cold, no warm-up), 200 generated tokens. These are n=1 per arm, so they are used only for effects that are too large to be noise; every number from this instrument below says so explicitly.

Throughput is quoted exactly as the engine reports it in its own protocol lines (prompt ... read in N ms (X tok/s), Y generated in M ms (Z tok/s)). Wall-clock totals over HTTP are given separately where useful. Reused prompt tokens are recorded; no speed number in this report is taken from a request that reused tokens.

Results

Expert-pool workers: 4 against the engine's 15, on 0.1.39

Four-workload ruler, ABBA order (A1 pool 4 · B1 pool 15 · B2 pool 15 · A2 pool 4), a fresh engine process per arm, 3 kept runs per workload, median per workload. This is the current configuration (524,288 context, --pcie-frac 0.35), on the current engine, and it is the direct 4-against-15 comparison that #642's recommendation needs.

Arm (run order)Pool workersworkprose-zhprose-encode-engineMean
A1497.195.493.893.594.95
B11581.181.657.058.169.45
B21567.183.486.176.378.23
A2494.595.592.298.495.15

Each cell is a median of three runs of 1,000 generated tokens; the prompts were 6,845 / 6,867 / 5,121 / 4,170 tokens, and the cold prefill in each group came from the discarded warm-up run.

Expert-pool workers: the worker sweep behind it (engine 0.1.36)

Engine 0.1.36, corpus-long44k (43,918-token prompt), 256 generated, single-arm screens, one process per arm. That batch ran the configuration of the time (--pcie-frac 0.55, --spec 4, expert cache 11,631 slots); only the pool-worker count differs between rows. The same batch also ran --pool-workers 4 and 8 twice on a 6,845-token prompt (200 generated): 91.60 vs 90.76 tok/s, i.e. neutral within that instrument's ~8% noise, while the pool counters moved the same way as in the long table.

Pool workersDecode tok/sPool ms/roundWait-for-rings ms/roundCold prefill tok/s
498.336.38214.2283,098.3
690.567.78716.1113,057.6
889.188.84515.7053,078.2
1084.889.96216.4593,099.1
1287.899.43716.8002,938.6
15 (engine default here)56.1117.86827.5133,091.1

The pool's own cost is monotone in worker count: 6.38 → 17.87 ms/round from 4 to 15 workers (2.8x), and the ring wait moves with it (14.23 → 27.51). Cold prefill is flat across all six arms, so this is a decode-path effect only.

Two ABBA confirmations on engine 0.1.36, both comparing 4 against 8 (the configuration that was adopted at the time):

InstrumentPromptA (pool 4)B (pool 8)Pair 1Pair 2
Four-workload ruler, median of 3 kept runs6,845102.40 / 101.8089.70 / 90.65+14.16%+12.30%
Serve ABBA, median of 3 kept runs43,969101.05 / 100.3587.95 / 95.40+14.89%+5.19%

On the ruler, 8 of 8 workload-by-pair cells were positive (work +7.7/+10.8, Chinese prose +16.3/+11.9, English prose +17.8/+16.8, code +14.9/+9.8) and the same-configuration spread was −0.59% / +1.06%, so a +13% effect is resolved well above the floor. On the long prompt the two pairs disagreed in size (+14.89% vs +5.19%) and the pool-8 arms themselves spread by 8.47%; read that one as a consistent weak positive, not as a precise 10%.

Outputs are bit-identical. On a deterministic recipe (0.1.36), changing only --pool-workers 8 → 4 produced byte-identical output hashes on all four workloads across three runs each, so this is a scheduling change with no quality cost. On the ruler above, run-to-run output hashes differ because each run carries a different nonce; that is by construction, not a determinism failure.

STRATA_PF_FUSED=1 with IQ3_S experts

Engine 0.1.38, four-workload ruler, ABBA, cold prefill from the dropped warm-up run of each workload, 5 arms (one discarded warm-up arm first).

ArmPFworkprose-zhprose-encode-engineMean
warm-up (dropped)12,161.82,226.32,333.82,206.42,232.1
A112,157.42,198.32,294.12,257.32,226.8
B101,982.72,005.72,097.21,934.52,005.0
B201,958.42,050.82,053.92,035.62,024.7
A212,159.52,317.92,084.92,092.02,163.6

STRATA_PF_FUSED=1 = +8.9% cold prefill (2,195.2 vs 2,014.9), pairs +11.1% and +6.9%, and 8 of 8 workload-by-pair cells positive. Same-configuration spread was 2.9% (PF=1) and 1.0% (PF=0). Decode was not distinguishable (PF=1 93.0 vs PF=0 95.8, with 6.6% spread on the PF=1 side). An earlier measurement of the same switch on an older engine gave +12.8%; this re-measurement revises the size to +8.9%, which is the same order as the +8% / 0% the source comments record for the native IQ2_XS pack.

The engine's banner names the path per run, which is the product-side check that the switch took effect: strata: prompt experts on the fused int8 kernels (STRATA_PF_FUSED=1, #136) appears in the fused arms and not in the others.

Context tier at a fixed prompt

Single-read probes: one fresh process per arm, one 43,969-token read, 200 generated. n=1 per arm, so the tiers are separated only where the gaps are much larger than the run-to-run spread this instrument shows at a fixed config (which is 0–8% on the same prompt).

Engine 0.1.39 (current configuration as the base):

Arm--max-contextropePrompt read (ms)Prompt tok/sDecode tok/sTotal wall (s)KV in pinned RAM
A262,144none13,0743,363.291.315.443.09 GiB
B524,288yarn 2, ring off13,1863,334.585.315.716.19 GiB
C524,288yarn 2, ring on (default)13,8963,164.190.816.276.19 GiB

So 524,288 costs +0.9…+6.3% on the fresh read and −0.5…−6.6% on decode against 262,144 at the same prompt, and doubles pinned KV (3.09 → 6.19 GiB of 95.78 GiB). STRATA_RING_BYTES=0 (#583) was not faster than the default here.

Engine 0.1.38, same instrument and prompt, for the tier above:

Arm--max-contextropePrompt read (ms)Decode tok/sKV in pinned RAM
live262,144none2,581103.93.09 GiB
512K524,288yarn 22,65594.46.19 GiB
1M1,048,576yarn 44,06546.412.38 GiB
1M1,048,576none5,30339.312.38 GiB

The expert cache reported 11,631 slots / 22.07 GiB at all four settings — the context tier costs host RAM and time, not VRAM capacity. (The cache is identical, but the 1M session needs about 1 GiB more VRAM, and the 524,288 configuration had only 299 MiB of headroom to give it — which is what the next section is about.) YaRN was not the cause of the 1M cost: at 1M, YaRN was faster than no scaling at both sample sizes (46.4 vs 39.3 tok/s; 44.2 vs 41.4 on a shorter 64-token sample). One 0.1.39 run on the 524,288 configuration read its prompt in 22,989 ms instead of ~13,000 ms with every counter in its normal range; it is the first run after a fresh model load and we treat it as a cold-start outlier, not as a result.

Where the 1M cost goes: the expert-cache budget, not the context tier

This is the part that changed our conclusion. The mechanism was suggested by enkynakamura in #781 after reading the first version of this report, and the numbers below are ours.

The engine sizes the expert cache in two different ways. With --expert-cache auto it sizes from the free VRAM it reads, prefills the slots, and then checks again after they are written, shrinking if they do not fit. With an explicit --expert-cache N the budget is N x the largest blob, compared only against the free figure read before the slots are written, and that second check is auto-only. Under WDDM an allocation is not resident until it is touched and the free figure read before can be high, so an over-sized explicit cache is committed and the driver pages to system memory instead of failing — with nothing in the log.

Measured on 0.1.39, IQ3_S, one card, fresh 43,969 / 45,670 / 47,956-token prompts with 200 generated each, one engine start per row, at --max-context 1048576:

cacheslotsfree VRAM at READY (engine's own line)decode tok/s
explicit 890011,6310 MiB (LOW, suggests --vram-reserve-mib 1212)13.7 / 14.7
auto11,178217 MiB (LOW)102.1 / 122.3
auto + --vram-reserve-mib 150010,7661,075 MiB88.9 / 96.5 / 101.4
explicit 70009,1484,130 MiB94.1 / 97.3
the same 11,631-slot cache at 524,288, for reference11,631299 MiB113.2 / 107.9

453 slots — 0.86 GiB — is the difference between 13.7 and 102 tok/s, and the slower arm had the higher cache hit rate (91.4 / 94.7% against 90.4 / 93.9%), so this is not misses: being at 0 MiB free is what costs 7x. With a cache that fits, 1,048,576 costs almost nothing — read ~13.4 s against 12.6 s at 524,288, decode ~95 against ~110. --vram-reserve-mib is the direct lever, because the engine deducts it before sizing: 700 → 1000 → 1500 took the free figure from 217 to 575 to 1,075 MiB and cost only about 400 slots.

The per-window profiler table was taken at a fixed expert cache on 0.1.38, so it describes a 1M run with the over-sized cache: it is the shape of the 7x, not a cost of --max-context itself.

Per window262,144524,2881,048,576
ms/window38.4735.3069.15
GPU-reach wait12.9412.3341.52
GDN VRAM hits3.613.5825.35
QSA VRAM hits1.231.2310.27
GDN PCIe grp0.280.281.81
q8 gemv / attention / out-proj1.26 / 0.74 / 0.931.27 / 0.73 / 0.891.37 / 0.78 / 1.00
Work: experts per layer, VRAM hits per window2.51, 33.242.58, 34.222.54, 33.74

The work counters are the same at all three tiers and the pure-compute stages move about 10%, while the stages that reach VRAM cost 7–8x more and the host's wait for the GPU grows 3.4x. That is what an over-committed card looks like from the inside.

One negative result, reported as such. The Windows counters suggested in #781 — \GPU Process Memory(*)\Shared Usage and Dedicated Usage, sampled once a second for strata.exe through all of the above — do not separate the slow arm from the fast ones on this machine. Shared reads ~55.5 GB at 262/524K and ~62.4 GB at 1M in every arm; the +6.9 GB is our pinned K/V going from 6.19 to 12.38 GiB. The arm that ran at 13.7 tok/s read 62,931 MB, against 62,409 MB for the arm at 102–122 tok/s. On this box the counter tracks the deliberately pinned memory (the 50.3 GB expert arena plus the pinned K/V), so it does not expose paging, and Dedicated does not separate them either (30,425 against 30,136 MB). The Control Panel "Prefer No Sysmem Fallback" check has not been run.

Corrections to the earlier version of this report. It guessed TLB/locality as the mechanism, and described 1M as costing "about 1.6x the read and 2.2x the decode". Both were measured with the over-sized explicit cache; the cost was this budget effect, not the context tier. The GDN state cannot be what grows, either: in session_bytes the max_cells terms are qsa_state_bytes and qsa_buffers_bytes, and gdn_state_floats(g) has none — so the GDN layer's VRAM hits above is the expert-cache read that every layer does.

Recall and limitations

No needle or long-context recall test was run, at any tier, so this report makes no claim about retrieval quality at 524,288 or 1,048,576 tokens; it only shows that the tiers load, read, and generate, and what they cost. The engine's KV streaming: 32768 of 524288 cells per QSA layer in VRAM banner and fresh 43,969-token reads are all that is shown here.

The only quality check attached is a fixed 15-question GSM8K subset, which scored 14/15 with the same wrong answer before and after the 0.1.39 upgrade. A 15-question subset can falsify a large regression and nothing finer; it is not a licence.

Other limits: one machine, one quantization, one GPU; the ruler numbers come from a 1,000-token reasoning-on workload and the probes from a 200-token one, so they are not interchangeable; the context tiers of the first ladder are n=1 per arm, and the cache-budget table below them is n=2–3 per arm on one set of three prompts; the pool-worker sweep is single-arm screens on an older engine version, with the ABBA results separately versioned; --pcie-frac 0.35 was carried over from earlier tuning on this machine and was not re-measured here. Sampled decoding, vision input, tool use, multi-request concurrency, and sustained thermal behaviour were not evaluated. Decoding here is greedy with thinking enabled, so these throughputs are not comparable to reports measured with reasoning off.