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

files

README.md8.3 KiB
TRIMMED.md335 B
bench_agent_workload.py5.4 KiB
needles.json848 B
strata-iq3_s.json1.3 KiB

Community benchmark: RTX 5090, Ryzen 9 7950X, 1M-context agent workload

Measured on 2026-10-02 by gravitomagnetic, on a Linux desktop. This tests Strata 0.1.31 with Qwen3.8-Flash-Next IQ3_S at a 1,048,576-token context limit (YaRN scaling, factor 4), under a workload chosen to resemble agentic use: long repeated system-style prompts, streaming completions with reasoning enabled, and immediate prefix-reuse repeats.

Headline numbers (see agent_bench.jsonl for every run):

These are synthetic English-prose prompts with a fixed task suffix. They do not establish general answer quality or performance on other workloads.

Hardware and software

Model and configuration

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

The upstream HF revision for these files was not pinned at download time and is not recorded here; the byte sizes and SHA-256 hashes above are the authoritative identity for reproduction.

Run configuration (full JSON: strata-iq3_s.json):

Method and reproduction

Start the server with the attached configuration (paths will differ; the --pack, --native, --ple-gguf, --mtp, and --expert-profile arguments identify the artifacts above), then from this folder:

python3 bench_agent_workload.py agent_bench.jsonl

The script streams chat completions against http://127.0.0.1:8080/v1 and writes one JSON record per run. Fields:

Sizes: 4,096 / 32,768 / 131,072 / 524,288 target prompt tokens; actual prompt_n is reported per run (the synthetic text is ~22 tokens per paragraph, so actual counts differ slightly). Three fresh runs per size, then one immediate repeat of the same prompt to exercise prefix reuse, then one greedy instruct run.

Results

Medians across the three fresh runs per size (all runs in agent_bench.jsonl):

TargetActual prompt_nCold prefill tok/sDecode tok/s (thinking)Warm repeat
4,0964,013~2,485~105see note A
32,76831,376~3,284~1023,319 tok/s equivalent; TTFT 11.7 s
131,072125,204~3,398~100125,199 tokens reused in 0.36 s; TTFT 0.33 s
524,288500,558~3,019~94500,553 tokens reused in 36 ms; TTFT 1.2 s

Instruct-mode greedy decode ran 71–87 tok/s (fewer draft acceptances at temperature 0 on this repetitive prompt; small samples, treat as indicative).

Expert-cache hit rate during the 512k runs: 96–98% (from the engine log).

Correctness check: needle-in-a-haystack recall

Run with the repository's own tools/needle_bench.py, depth 50%, five haystack sizes (full results: needles.json):

HaystackActual prompt tokensResultWall time
32k31,453FOUND10 s
128k121,793FOUND117 s
256k249,709FOUND158 s
512k528,950FOUND262 s
1024k1,048,265FOUND526 s

5 of 5 found, including the full 1,048,265-token prompt. Recall at depth 50% only; other depths and needle types were not tested. These runs shared the server with a live agent session (see Note A), so wall times include co-tenant queueing and are upper bounds, not clean latencies.

Note A — cross-session contention, not a server-side stall

An earlier draft of this report attributed a fixed ~65 s gap (TTFT minus engine-reported prefill) to a synchronous checkpoint save. A controlled probe disproved that: five back-to-back tiny requests showed wall-time matching engine timings within 10 ms. The real cause is visible in the engine log: this server also carries a live agent session whose prompts are ~208k tokens, each cold-prefilling in ~64.5 s. The server processes requests serially, so a queued client's TTFT includes whatever large prefill is already in flight. The TTFT column above is therefore contaminated by co-tenant traffic at the 4k and 131k sizes; the throughput columns come from the engine's own timings and are unaffected.

The finding that survives is still relevant to agent workloads: at 1M context, one in-flight 200k+ prefill blocks every other session for ~60 s. Multi-agent or interactive-plus-batch use of a single Strata server needs either request scheduling (prefill chunk yielding) or separate instances.

What this configuration is good at

Prefix reuse is excellent: a 500k-token prompt re-sent warm reuses 500,553 of 500,558 tokens in 36 ms. For agent loops that replay long system contexts, cold prefill at ~3,000 tok/s turns into sub-second warm reads — provided the checkpoint tax of Note A is amortized or removed.

Notes and limitations