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
2 folders2 files

files

data/
scripts/
README.md14.0 KiB
TRIMMED.md453 B

Community benchmark: RX 7900 GRE (gfx1100, 16 GB), Ryzen 7 5700X3D

Measured on 2026-10-04 by jase100k on Linux. Three Flash-Next quantizations were measured on one card with settings that are identical apart from the quantization: the Coder IQ1_M pack, the original Flash-Next IQ2_XS and Flash-Next IQ3_XXS. Each arm ran the full speed benchmark three times and one 32k needle recall pass.

Median decode on fresh prompts was 65.3 tok/s for IQ2_XS, 59.1 tok/s for IQ3_XXS and 54.7 tok/s for Coder IQ1_M at 8,830 prompt tokens; prompt throughput was 1,140-1,216 tok/s for all three. The Coder arm is a different fine-tune with fewer expert-cache slots, so its row is not a quantization-only comparison against the other two. This is one machine, one card and one small synthetic workload; nothing here establishes answer quality or performance on other hardware.

Hardware and software

Model and configuration

The three configs are in data/cfg-*.json. They differ only in the pack, the two GGUF files, the expert profile and the model name. Everything else is identical:

--expert-cache auto --prefill auto --spec 5 --spec-min-p 0.5
--mtp /home/jason/Projects/Strata-data/mtp/rt
--max-context 65536 --kv int8 --kv-resident 32768 --vram-reserve-mib 3072

Server settings: backend: hip, draft_vocab: en, fit_max_tokens: true, loopback port 8080, environment STRATA_HIPBLASLT_TUNING (table above) and STRATA_ADAPT_NOWAIT=1. Requests used temperature 0, top-k 1, top-p 1, min-p 0, seed 42, reasoning_effort: none and a 128-token output cap. No vision encoder was loaded and low-RAM mode was off.

The KV cache is INT8 with 32,768 cells per layer resident on the GPU; cells above that stream from host memory. The engine's closing line for each run reported 98.9-99.4% of KV block reads hitting VRAM, so streaming was rarely used at these prompt lengths.

GGUF filenames, as used by each config:

Coder IQ1_M      Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00001-of-00002.gguf
                 Qwen3.8-Flash-Next-GSQ-RCO-IQ1_M-00002-of-00002.gguf
Flash-Next IQ2_XS  Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001-of-00002.gguf
                 Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00002-of-00002.gguf
Flash-Next IQ3_XXS  Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf
                 Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf

The download revision of these files was not recorded, so no claim is made about which upstream revision they came from. data/artifact-hashes.json records the byte size and SHA-256 of all six GGUFs, of the two expert profiles and the English draft vocabulary, of the four MTP draft files, and of the small metadata and tokenizer files inside each pack. Pack tensors of 64 MiB or more are listed by name and size in that file but are not hashed.

Notes on the choices:

What the engine reported at startup:

QuantGGUF total sizeNative weightsExpert cache slotsVRAM for expertsHost arena (2 MiB pages asked)
Coder IQ1_M54.40 GiB2,018.88 MiB3,7837.21 GiB11,992 (23.4 GiB)
Flash-Next IQ2_XS63.35 GiB1,474.85 MiB5,9597.99 GiB16,907 (33.0 GiB)
Flash-Next IQ3_XXS70.63 GiB1,781.11 MiB4,608-4,6217.48-7.50 GiB20,464 (40.0 GiB)

Method

tools/hip/bench_prefill.py from the repository, unchanged. It sends one warm-up request ("Reply READY."), then four fresh prompts of 4,210 / 8,830 / 4,210 / 8,830 tokens, each built from synthetic JavaScript functions (export function ruleN(x) ...) followed by "Review this source and describe its behavior precisely in a paragraph." Each fresh prompt is followed by one follow-up that asks for the most relevant boundary case and the smallest useful regression test, which reuses the previous prompt prefix. The output cap is 128 tokens.

The script requires exactly one completed engine timing line per request and refuses a fresh prompt that reused any cached token. The engine was restarted before each of the three runs per arm, so every one of the 36 fresh prompts in this report processed its whole prompt: zero reused tokens. Model loading is not included in any timing; wall_s is the client-side duration of the request. Every measured request generated the full 128 tokens and stopped at the cap. Time to first token was not measured: bench_prefill.py reads the non-streaming completion endpoint and records one wall-clock duration per request, so no TTFT column is reported here.

The needle pass ran on the run-3 server, so its prefix cache was already warm; its latencies are therefore not comparable with the fresh-prompt table.

Host memory and VRAM were sampled once per second by scripts/sample_mem.py during each run, reading the amdgpu sysfs counters and /proc/meminfo. These are whole-machine numbers, not the engine's accounting. Brief spikes between samples can be missed.

Reproduce one arm with scripts/run-one-quant.sh coder-iq1_m (also iq2_xs, iq3_xxs), which writes into scripts/out/, then aggregate with python scripts/summarize.py --write. ROOT inside that script and the paths inside data/cfg-*.json are this machine's, so change them before reuse.

Results

Fresh prompts, no prefix reuse. Each cell is the median [minimum-maximum] of six requests (three runs, two prompts of that size per run). Prefill is freshly read prompt tokens per second from the engine timing line, decode is generated tokens per second from the same line.

QuantPrompt tokensReusedPrompt tok/sDecode tok/sTotal seconds
Coder IQ1_M4,21001,224.1 [1,210.4-1,273.1]48.5 [46.3-52.4]6.1 [5.8-6.3]
Coder IQ1_M8,83001,213.2 [1,181.5-1,229.1]54.7 [51.9-55.2]9.6 [9.6-9.8]
Flash-Next IQ2_XS4,21001,145.5 [1,119.0-1,171.9]64.5 [55.0-71.2]5.7 [5.4-6.1]
Flash-Next IQ2_XS8,83001,154.7 [1,152.6-1,159.4]65.3 [63.6-68.2]9.6 [9.5-9.7]
Flash-Next IQ3_XXS4,21001,147.5 [1,118.9-1,174.7]54.2 [46.9-60.8]6.1 [5.7-6.5]
Flash-Next IQ3_XXS8,83001,140.1 [1,138.4-1,143.9]59.1 [56.8-61.9]9.9 [9.8-10.0]

Follow-up requests, which reuse the previous prompt prefix. The number of reused tokens is not identical in every run, because the length of the assistant's reply decides it; these rows are a separate condition from the table above.

QuantPrompt tokensReused tokensFreshly readDecode tok/sTotal seconds
Coder IQ1_M4,4514,33711447.8 [45.3-50.5]3.4 [3.3-3.5]
Coder IQ1_M9,0718,95711447.8 [43.4-49.9]3.5 [3.3-3.7]
Flash-Next IQ2_XS4,4514,203-4,338113-24866.3 [56.1-72.8]2.7 [2.5-2.9]
Flash-Next IQ2_XS9,0718,957-8,958113-11473.0 [62.2-75.4]2.4 [2.3-2.7]
Flash-Next IQ3_XXS4,4514,203-4,338113-24851.9 [47.9-53.3]3.5 [3.4-3.6]
Flash-Next IQ3_XXS9,0718,82324853.0 [51.3-59.3]3.5 [3.2-3.5]

Follow-up prompt throughput is not comparable across arms, because the amount of reused text differs per run; it is left out of the conclusions.

Speculative decoding and cache behaviour, summed over each arm's whole session (speed runs and needle pass), from data/<quant>.engine.log:

QuantDrafts acceptedAcceptanceDecode expert-cache hit rate
Coder IQ1_M1,862 / 2,72968.2%84.0%
Flash-Next IQ2_XS2,059 / 2,91870.6%88.9%
Flash-Next IQ3_XXS2,057 / 3,02768.0%83.4%

Memory, sampled once per second during each run and the needle pass. VRAM is the peak of the amdgpu counters; host RAM used is MemTotal - MemAvailable, so it includes the desktop, this agent session and everything else on the machine.

QuantPeak VRAMPeak host RAM usedSamples per run
Coder IQ1_M14.58-14.61 GiB31.9-32.4 GiB42-46 s of 1 s samples
Flash-Next IQ2_XS14.57-14.58 GiB41.1 GiB42 s
Flash-Next IQ3_XXS14.60-14.62 GiB48.0-48.2 GiB47 s

No out-of-memory error and no failed request occurred in any arm.

Recall

tools/needle_bench.py --lengths 32k --depths 10,50,90 found the needle in all three depths for all three arms:

QuantFoundPrompt tokensSeconds per case
Coder IQ1_M3 of 331,969-31,97024.2 [12.5-25.2]
Flash-Next IQ2_XS3 of 331,969-31,97025.9 [13.3-26.3]
Flash-Next IQ3_XXS3 of 331,969-31,97025.3 [13.0-25.8]

This measures recall on those three inputs only, not overall model quality.

What these numbers do and do not show

Limitations

Files