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
14 files

files

README.md10.9 KiB
arms2.py5.0 KiB
bench.py3.1 KiB
engine-optins-off.txt6.9 KiB
engine-optins-on.txt7.2 KiB
gen.py2.0 KiB
matrix-optins-off.jsonl6.6 KiB
matrix-optins-on.jsonl6.6 KiB
needles-optins-off.json1008 B
needles-optins-off.log340 B
needles-optins-on.json1005 B
needles-optins-on.log337 B
prompts-index.jsonl1.9 KiB
vram.jsonl103.8 KiB

Community benchmark on 4x AMD Radeon RX 7900 XT

Measured on 2026-10-09 by Cass (ubt26, a 4-card ROCm test rig). Strata 0.1.41, ISTA-DASLab Flash-Next GSQ-RCO IQ3_S, 262,144-token context, layer split across all four cards. Two arms on the same machine, image, model and prompts, differing only in five documented opt-in environment switches: opt-ins off (Strata defaults for those switches) and opt-ins on (this machine's run profile). Each arm: fresh engine process, one cold first request, two warm-ups, then three runs each at 4,096 / 32,768 / 128,000 prompt tokens with a 256-token cap and reasoning off, plus six needle-in-a-haystack recall checks. Main limitations: one model on one box; no coding-quality check beyond recall; four cards on an asymmetric Gen3 PCIe layout (below).

Hardware and software

Model and configuration

engine args (both arms, credentials: none)
--pack /mnt/spare/build/strata-data/packs/iq3_s --native <shard-1 GGUF> --ple-gguf <shard-2 GGUF>
--expert-profile data/expert-profile.bin --expert-cache auto --prefill auto
--spec 4 --spec-min-p 0.5 --mtp /mnt/spare/build/strata-data/mtp/rt --kv int8
--resident-budget-gib 36 --remote-expert-opt --max-context 262144 --vision --vram-reserve-mib 700
layer_split 12,24,36   gpu 0,1,2,3   env STRATA_HIPBLASLT_TUNING=tools/hip/gfx1100-hipblaslt-100401.txt

opt-ins off: no further STRATA_* variables
opt-ins on:  STRATA_SPLIT_OWN=1 STRATA_STAGE_TRIM=1 STRATA_PF_FUSED=1 STRATA_PF_GEMM=1 STRATA_PF_SWITCH_MIN_T=4096

The five switches are documented opt-ins. STRATA_SPLIT_OWN=1 gives every card its own prompt buffers on a layer split; STRATA_STAGE_TRIM=1 makes each card load only its own layers' dense weights (PR #639). STRATA_PF_FUSED=1, STRATA_PF_GEMM=1 and STRATA_PF_SWITCH_MIN_T=4096 put the prompt experts and FP16 projections on the matrix cores, as listed in docs/STRIX_HALO.md. The container environment of each arm was read back with docker inspect to confirm which switches were set.

Method

Results

Per-run data: matrix-optins-off.jsonl, matrix-optins-on.jsonl.

ArmPrompt tokensReusedGeneratedRunsPrompt tok/s median and rangeDecode tok/s median and rangeTTFT seconds median and rangeMTP drafts accepted
opt-ins on4,096025632,052 (2,051–2,100)60.0 (59.8–62.1)2.03 (1.99–2.03)72–76%
opt-ins on32,768–32,773025633,804 (3,787–3,811)52.7 (50.8–53.2)8.68 (8.65–8.71)65–73%
opt-ins on128,005025634,307 (4,282–4,319)50.4 (49.7–50.5)29.87 (29.81–30.03)67–69%
opt-ins off4,09602563756 (743–757)59.3 (55.8–60.3)5.45 (5.45–5.55)67–75%
opt-ins off32,768–32,773025631,722 (1,720–1,724)52.0 (51.4–53.7)19.17 (19.11–19.21)64–69%
opt-ins off128,005025632,433 (2,416–2,454)49.6 (48.9–51.0)52.98 (52.31–53.12)64–68%

Cold first request (32,768 tokens, first request of a fresh process, single run): opt-ins on 3,430 tok/s prompt, 60.9 decode, TTFT 9.6 s; opt-ins off 963 tok/s prompt, 55.1 decode, TTFT 34.1 s.

Memory (GiB):

ArmCard 0Card 1Card 2Card 3TotalRAM used
opt-ins on, loaded (before first request)15.6614.7714.3217.7062.48.2 after load
opt-ins on, peak during requests15.6914.8114.3417.7462.68.7–9.5
opt-ins off, loaded (before first request)17.2616.4015.8719.3268.910.6 after load
opt-ins off, peak during requests17.3016.4415.9019.3769.09.7–10.6

Card 3 (layers 36–47) has the least headroom: 19.37 of 19.98 GiB with the opt-ins off. In both arms the expert cache holds 6,144 slots per card, all 6,144 of each card's profiled pairs (10.82 / 11.33 / 12.21 / 12.49 GiB on cards 0–3); with the opt-ins off, card 0's automatic size came to 5,859 slots but it pre-filled all 6,144. No paging or out-of-memory failures.

Needle recall (off, on; logs alongside):

ArmLengthPrompt tokensDepth 10%Depth 50%Depth 90%
opt-ins on32K33,286–33,287found, 9.2 sfound, 9.1 sfound, 5.6 s
opt-ins on128K126,638–126,640found, 29.8 sfound, 30.2 sfound, 27.0 s
opt-ins off32K33,286–33,287found, 20.4 sfound, 20.0 sfound, 14.1 s
opt-ins off128K126,638–126,640found, 52.6 sfound, 52.7 sfound, 47.7 s

12 of 12 found. In each arm the two depth-90% checks reused 16,384 prompt tokens from the previous check at the same length (engine log); the other checks read the whole prompt. No failed, cancelled, or skipped requests.

Correctness and limitations