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

files

README.md7.1 KiB
config-0139-path.json938 B
config-improved.json967 B
prompts.py1.9 KiB
results.json50.3 KiB
strata_bench.py3.9 KiB

Community benchmark: RTX 4060 Ti 16 GB, Xeon E5-2673 v3 (AVX2), DDR3, PCIe 3.0 x8

Measured on 2026-10-05 by 1872183316 on an older Linux PC: a Haswell Xeon without AVX-512, DDR3, and a 16 GB card on PCIe 3.0 x8. Two models (the original Q2_0 and IQ3_S), each in two arms: the 0.1.39 code path, and the same engine with PR #706, PR #764 and a busier adaptive expert tier (#907). Details and the measurements behind each part: #906.

Median decode over 4 prompts (3 rounds x 2 passes):

Model0.1.39 pathImproved
Q2_048.1 tok/s (rounds 48.08 / 48.33 / 48.14)55.7 tok/s (55.40 / 55.80 / 55.66)+15.6%
IQ3_S30.5 tok/s (30.52 / 30.51 / 30.51)35.0 tok/s (34.79 / 35.05 / 35.04)+14.8%

A 3,454-token prompt was read at 715 tok/s (Q2_0) and 439 tok/s (IQ3_S) in both arms. The prompts are four short chat requests; they do not establish speed at long context or on other workloads.

Hardware and software

Models

From ModelScope (ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, master on 2026-10-05), SHA-256 matching the values ModelScope publishes; Q2_0's shard 1 also matched a copy from hf-mirror.com at the pinned revision (ed59f92):

Native packs by tools/iq_pack.py (as setup does on a CPU without AVX-512); the MTP draft layer by tools/mtp_fetch.py (the 31 MTP tensors of Qwen/Qwen3.8-Flash-Next from ModelScope, all matching the pinned SHA-256), mtp_pack.py --experts q2_0 and mtp_rt.py, with data/draft_vocab.bin (cjk). Expert profile: the bundled data/expert-profile.bin.

Configuration

What setup writes for this PC (config-0139-path.json, config-improved.json for IQ3_S; Q2_0 the same with its files): context 65,536, --kv int8 --kv-resident 32768, --expert-cache auto (Q2_0: 7,475 slots, 9.62 GiB; IQ3_S: 3,531 slots, 9.65 GiB; 700 MiB reserved), --prefill auto, --spec 4 --spec-min-p 0.5, the MTP draft layer, PCIe share from the engine's probe (0.17 for both models). No vision, no calibration, no speed projection. STRATA_DECODE_TIMING=1 in both arms (one log line per request).

Method

strata_bench.py with prompts.py, against the server (serve/server.py, port 8095): one warm-up request ("你好", 16 tokens), then 4 prompts - a Chinese essay, a code edit (add type hints and docstrings to ~60 lines of Python), an English-to-Chinese translation, an explanation of TCP's handshakes - each twice, greedy (temperature 0), 512 tokens cap, thinking off (enable_thinking: false); then, in round c only, a 3,454-token prompt (an English paragraph repeated, numbered) with 16 tokens, twice. Decode and prompt rates are the server's timings (the engine's own clock); hit rates from /metrics. The engine was started fresh for each run; the arms alternated, in this order: Q2_0 rounds a and b (0.1.39, improved, 0.1.39, improved), IQ3_S rounds a and b (the same), then Q2_0 round c and IQ3_S round c (0.1.39, improved each).

Results

Per prompt, median of 6 (3 rounds x 2 passes) with the range, tok/s; hit rate = the VRAM share of the expert lookups:

Q2_00.1.39 pathhitImprovedhit
essay46.1 (43.7-49.6)0.8653.5 (52.3-54.2)0.91
code edit46.5 (46.3-47.0)0.6359.6 (59.3-60.2)0.74
translation44.5 (42.9-45.8)0.7346.0 (45.6-46.9)0.72
explanation55.5 (54.1-56.5)0.8463.2 (62.2-65.0)0.86
3,454-token prompt read (round c)714.6 (714.0-715.2), 2 runs716.5 (714.9-718.1)
IQ3_S0.1.39 pathhitImprovedhit
essay31.3 (30.6-32.9)0.7938.5 (36.9-38.8)0.84
code edit29.2 (29.1-29.7)0.5334.4 (34.2-34.7)0.61
translation25.9 (25.2-26.3)0.5827.6 (27.3-28.1)0.58
explanation35.4 (34.5-36.6)0.7339.5 (39.1-39.9)0.75
3,454-token prompt read (round c)438.9 (438.4-439.4), 2 runs440.2 (439.5-440.9)

Generated tokens: explanation always 512; code edit 401-413; essay 362-435 (greedy answers differ between passes and arms - other window sizes and other experts in VRAM round differently, #152); translation 103-112. All requests are in results.json.

Where the time goes (Q2_0, code edit, STRATA_DECODE_TIMING): 71.4 ms per verify window on the 0.1.39 path (40.1 ms the CPU's experts, 10.4 per layer-window) and 56.2 ms improved (28.8 ms, 7.5).

Limits