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

files

README.md12.0 KiB
bench_sweep.py6.0 KiB
build.bat1.7 KiB
guard.py2.5 KiB
needles.json2.0 KiB
real-thread-352k-fresh-engine.json907 B
real-thread-352k-warm-expert-cache.json1.3 KiB
run-chat.bat948 B
strata-ud-iq4_xs-786k.json1.8 KiB
sweep-4k-32k-128k.json4.9 KiB
synthetic-352k.json947 B
thread_bench.py6.3 KiB

Community benchmark: RTX 5080 16 GB, Xeon w7-2475X, 128 GB DDR5, Unsloth UD-IQ4_XS at a 786,432-token context (YaRN x3)

Measured on 2026-10-09 by enkynakamura. One consumer Blackwell card with 16 GB, all experts resident in RAM (--resident-budget-gib 55), and the context window set to three times the model's native 262,144 tokens with --rope-scaling yarn --rope-scale 3 (the opt-in from #84). Reported per docs/COMMUNITY_BENCHMARKS.md: three runs per configuration on the standard 4K / 32K / 128K sweep, medians and ranges, prompt and decode kept apart, the needle check with the repository's tools/needle_bench.py up to 512K tokens, plus two 352K-token measurements (one synthetic and reproducible, one from a real agent conversation that is not shareable). Engine 0.1.41, greedy everywhere.

Main limitation: a single machine and a single quantization; the real-conversation row is one private prompt and cannot be repeated by anyone else, it is reported only because it is the workload this configuration is used for daily, and because it reads 15-28% slower than synthetic prompts of the same length (see "What the synthetic sweep does not show").

Hardware and software

GPUNVIDIA GeForce RTX 5080 16 GB (Palit GamingPro), driver 595.97, WDDM, power limit 360 W; VRAM clock raised to 2125 MHz (about 1,088 GB/s against 960 GB/s stock, submitter's measurement)
PCIex16; nvidia-smi reported gen 2 at idle, the generation under load was not recorded
CPUIntel Xeon w7-2475X, 20 cores / 40 threads, all-core 4.5 GHz (manual overclock), AVX-512
RAM128 GB: 4x 32 GB Kingston FURY Renegade Pro DDR5 RDIMM ECC at JEDEC 4800 MT/s, one DIMM per channel (quad-channel)
StorageSamsung 9100 PRO 2 TB NVMe SSD (model files, pack and MTP on it)
OSWindows 11, build 26200.9457
CUDAnvcc 13.3 (CUDA toolkit 13.3), source build; runtime 13.2 per nvidia-smi
Stratatag v0.1.41 (commit fb58e0d), built from source with build.bat in this folder: -DCMAKE_BUILD_TYPE=Release -DSTRATA_ENABLE_CUDA=ON -DSTRATA_BUILD_TESTS=OFF -DCMAKE_CUDA_ARCHITECTURES=120, MSVC 19.44, Ninja

Background workloads: a desktop chat app, two browsers and Docker Desktop were open and idle; no other GPU compute. The engine ran as a normal process (not Task Scheduler).

Model and configuration

Qwen3.8-Flash-Next Unsloth UD-IQ4_XS from unsloth/Qwen3.8-Flash-Next-GGUF (revision not recorded; files dated 2026-09-13), three GGUF shards, 93.7 GB in all:

FileBytesSHA-256
Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf10,946,6245ce89370720f8bf90890f439361282104c1aa1482d4013bb9a50923e758e71a4
Qwen3.8-Flash-Next-UD-IQ4_XS-00002-of-00003.gguf49,835,229,856577a38a2392b40ca2193cea502e1d92f60b8cd370675d308e0ec21885d9daaa7
Qwen3.8-Flash-Next-UD-IQ4_XS-00003-of-00003.gguf43,836,407,744d4634e6d84f0ebb0940be15c90d3790bf6464e3dea3a1cddc567dc0e83ad8833

Pack unsloth-ud-iq4_xs built by setup (1.50 GB, experts served natively from the GGUF in place, --mmap-experts), MTP draft layer Strata-data/mtp/rt (824 MB), the repository's data/expert-profile.bin, vision encoder on (mmproj-Qwen3.8-Flash-Next-BF16.gguf, 908 MB, run on the CPU with 20 threads; no image was sent during these runs). No calibration, no experimental speed projection, no custom profile.

strata.exe --pack C:\Strata-data\packs\unsloth-ud-iq4_xs
  --native C:\Strata-data\models\UD-IQ4_XS\Qwen3.8-Flash-Next-UD-IQ4_XS-00001-of-00003.gguf
  --expert-profile data\expert-profile.bin --expert-cache auto --prefill auto
  --spec 5 --spec-min-p 0.8 --mtp C:\Strata-data\mtp\rt
  --max-context 786432 --rope-scaling yarn --rope-scale 3
  --kv int8 --kv-resident 32768 --resident-budget-gib 55
  --vision --vram-reserve-mib 1017 --pcie-frac 0.33 --suffix-draft 0
env: STRATA_IQ_MT_MIN=1 STRATA_IQ_GATHER=1 STRATA_IQ_PREFETCH=4096 STRATA_STAGER_THREADS=8 STRATA_PREFILL_CPU_SHARE=0

The full server config is strata-ud-iq4_xs-786k.json (local paths, no credentials), launched by run-chat.bat through serve/server.py on port 8080. Settings worth noting:

Method

Everything was measured through the running server, with the engine's own timings (prompt tok/s = fresh prompt tokens / prompt_ms; decode tok/s = predicted_per_second; TTFT = wall time minus predicted_ms, non-streaming request, so it is the prompt time plus HTTP overhead). The server's cumulative request counter (/metrics, guard.py) was read before and after each block to prove no other client touched the port; every block was clean. Model loading is never included. Order of the blocks, on one engine start (14:50 local): the real conversation once (first request after start), the synthetic sweep, the synthetic 352K prompt, the real conversation again with three warm runs, then the needle check. Between the first and the second real-conversation reads the conversation had been evicted from the prompt cache (cache_n 0), so both are full reads; the difference between them is the expert cache's state.

Results

Synthetic sweep, sweep-4k-32k-128k.json (3 runs each; "range" is min-max over the runs):

ConfigurationActual prompt tokensReused tokensGenerated tokensRunsPrompt tok/s median and rangeDecode tok/s median and rangeTTFT seconds median and range
4K synthetic4,093025631,814 (1,663-1,816)68.6 (66.1-70.3)2.28 (2.27-2.48)
32K synthetic32,708025633,299 (3,285-3,306)70.2 (68.3-71.2)9.96 (9.93-9.98)
128K synthetic128,835025633,398 (3,366-3,402)64.1 (63.5-69.2)38.0 (37.96-38.36)

352K rows (single prompt reads; the warm decode row is 3 runs):

ConfigurationActual prompt tokensReused tokensGenerated tokensRunsPrompt tok/sDecode tok/sTTFT seconds
352K synthetic, warm expert cache (synthetic-352k.json)354,285025613,11160.7114.1
352K real conversation, first request after engine start (real-thread-352k-fresh-engine.json)352,130051212,253 (156.3 s)51.3166.6 total
352K real conversation, warm expert cache, full read (real-thread-352k-warm-expert-cache.json)352,130051212,635 (133.6 s)51.3143.9 total
352K real conversation, prefix reused, decode only (same file)352,130352,1235123n/a (7 fresh tokens)56.3 (55.3-58.5)n/a

Draft acceptance (MTP, --spec 5, min-p 0.8): 0.60-0.68 on the real conversation, 0.70-0.82 on the synthetic prompts; the per-run draft_n / draft_n_accepted are in the JSON files.

Needle (needles.json): 12 of 12 found at 32K / 128K / 262K / 512K, depths 10 / 50 / 90 %. Actual prompt lengths 33,275 / 126,551 / 257,725 / 504,901 tokens; the 512K prompts took 243-257 s each. 262K is the model's native window; the 512K rows run through the YaRN x3 scaling.

Memory: not measured beyond the startup snapshot above (49.6 GiB of experts and 9.3 GiB of K/V pinned in RAM; the engine's VRAM use is the expert cache's 6.0 GiB plus dense weights, KV window and MTP, nvidia-smi showed 15.2 of 16.3 GB in use with the server up and the desktop apps open). No paging, no out-of-memory, no failed request.

What the synthetic sweep does not show

The repeated-paragraph prompts that most reports use route each chunk to few distinct experts, so they understate the prompt cost of real text. Same engine, same session, same length:

352K promptPrompt tok/sDecode expert cache hitKV blocks served from VRAM
synthetic (warm cache)3,11168.4 %91.6 %
real conversation (warm cache)2,63556.7 %84.3 %
real conversation (first request after start)2,25356.7 %85.3 %

(The hit rates are the engine's per-request log lines, in engine.log.) From 128K to 352K the synthetic prompt loses 8 % (3,398 to 3,111); the real conversation at 352K reads another 15 % slower than the synthetic one at the same length with the same cache state, and 28 % slower when it is the first request after the engine starts. One run per cell, so these are indications of size, not measured distributions. The decode gap goes the same way: 56.3 tok/s median on the real conversation at 352K against 60.7 on the synthetic one, with the expert cache hitting 57-61 % instead of 68 %.

Correctness and limitations