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

files

data/
scripts/
README.md13.3 KiB
TRIMMED.md919 B
results.json5.9 KiB
strata-iq2_xs-dual.json815 B
strata-iq2_xs.json774 B
summary.json2.1 KiB

Community benchmark: 2x Tesla P40 22 GB (Pascal, sm_61), 2x Xeon E5-2698 v4

Measured on 2026-10-05 by sarge18 on a Linux server. This tests the original Flash-Next IQ2_XS with a 32,768-token context on the experimental CUDA 12 engine for Pascal (-DSTRATA_EXPERIMENTAL_SM60=ON, sm_61), once on a single P40 and once on both P40s with the layer split (config "gpu": [0, 1], which docs/MULTI_GPU.md lists as unsupported for cards below compute capability 7.5). The report was prepared with an AI assistant (Claude Sonnet 5.5, medium effort) under the maintainer's direction; the full study, which also compares llama.cpp and Ollama on the same weights, is in sarge18/p40-llm-engine-bakeoff.

Median decode throughput for a short prompt was 19.6 tok/s on one P40 and 34.8 tok/s on both. Prompts were read at 348 / 388 tok/s (4K / 16K prompt tokens) on one card and 353 / 501 tok/s on both. Only three runs per cell on a 32K context; the first run of each configuration includes expert-cache warm-up (see Method). The requests are synthetic and greedy; 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 at revision ed59f92082b1e93c0e96d60a8b11aab089b52f09, IQ2_XS (the revision setup pins). Hashes are the Hugging Face LFS SHA-256 values at that revision; the files were downloaded by setup, which checks only their structure. They were not re-hashed locally, and the files were deleted afterwards:

The native pack and the MTP draft layer were prepared by setup (MTP tensors from Qwen/Qwen3.8-Flash-Next at the pinned revision de4b8e4d43b917e7706784d8bb445c9af86a3540). The expert profile is the bundled data/expert-profile.bin.

Configuration (strata-iq2_xs.json for one card, strata-iq2_xs-dual.json for two; /m is the model directory, /work the checkout):

# server, inside the benchmark's network namespace (cwd /work); one card:
python serve/server.py --engine strata --config strata-iq2_xs.json --port 8080
# both cards: --config strata-iq2_xs-dual.json

Method

scripts/bench.py (stdlib Python; the same file as in the study repository) sends OpenAI-style streaming /v1/chat/completions requests. The speed tasks are speed-short (a 34-token prompt, 400 tokens requested; it generated exactly 400) and speed-prefill-4k / speed-prefill-16k (synthetic survey-log filler of 4,000 / 15,920 tokens, 64 tokens requested). Prompts are regenerated deterministically by the script from a fixed seed, so no prompt files are needed. Each configuration was started cold, then the three tasks ran in order, three times (--reps 3), on one server process, without restarting. The prompts are identical across repetitions, so the engine's conversation cache could have reused tokens; the engine timing values report cache_n = 0 for every run (nothing reused), which is also what the engine log shows ("0 reused + N read").

Results

Medians over 3 runs; range in brackets. TTFT and total latency are client-side.

ConfigurationActual prompt tokensReused tokensGenerated tokensRunsPrompt tok/s median (range)Decode tok/s median (range)TTFT seconds median (range)
single P40 (GPU1), 34-token prompt, 400 generated340400353 (16–53)19.6 (11.9–20.1)0.69 (0.68–2.30)
single P40 (GPU1), 4,000-token prompt, 64 generated40000643348 (124–349)16.1 (10.7–20.0)11.54 (11.54–32.24)
single P40 (GPU1), 15,920-token prompt, 64 generated159200643388 (314–389)23.7 (15.5–35.6)41.11 (41.10–50.75)
both P40s, 34-token prompt, 400 generated340400355 (15–55)34.8 (10.4–34.9)0.66 (0.66–2.39)
both P40s, 4,000-token prompt, 64 generated40000643353 (120–353)37.8 (11.9–37.9)11.40 (11.40–33.34)
both P40s, 15,920-token prompt, 64 generated159200643501 (376–501)37.2 (13.4–37.2)31.93 (31.90–42.47)

Per-run values (run 1 / run 2 / run 3):

ConfigurationTaskPrompt tok/sDecode tok/sDrafts accepted / drafted
single P40 (GPU1)speed-short16 / 53 / 5311.9 / 19.6 / 20.1226 of 369 / 221 of 379 / 210 of 379
single P40 (GPU1)speed-prefill-4k124 / 348 / 34910.7 / 20.0 / 16.130 of 47 / 31 of 47 / 34 of 55
single P40 (GPU1)speed-prefill-16k314 / 388 / 38915.5 / 35.6 / 23.735 of 46 / 35 of 46 / 37 of 48
both P40sspeed-short15 / 55 / 5510.4 / 34.8 / 34.9208 of 390 / 208 of 390 / 208 of 390
both P40sspeed-prefill-4k120 / 353 / 35311.9 / 37.8 / 37.935 of 48 / 35 of 48 / 35 of 48
both P40sspeed-prefill-16k376 / 501 / 50113.4 / 37.2 / 37.237 of 49 / 37 of 49 / 37 of 49

All 9 requests per configuration finished with finish_reason length (the requested cap was reached, as expected for fixed-length speed requests); none failed or was cancelled. Not measured: 32K and 128K prompts (the context here was 32,768), vision, other quantisations, concurrent requests, and cold model load (a first-ever cold load from disk took 254 s in a separate smoke test; warm loads were 33-76 s). Full per-run records are in results.json and, with the raw outputs, in data/ (*.jsonl); summary statistics in summary.json.

Correctness and limitations

A 69-task correctness suite ran twice on the single-card configuration (same prompts, greedy, thinking off): reasoning with computed answers 36 of 40 / 37 of 40 (40 tasks), code tasks graded by executing hidden tests 11 of 12 / 11 of 12 (12), tool calls 8 of 8 / 8 of 8 (8; two are restraint cases that must not call a tool), completeness checks 4 of 6 / 5 of 6 (6), and a long-context needle recall of three synthetic "access codes" per prompt (longctx-4k: 4124/4124 tokens, recall 100%/100%; longctx-12k: 12056/12056 tokens, recall 100%/100%; longctx-24k: 23952/23952 tokens, recall 100%/100%). The failures read against the raw outputs were model errors (date arithmetic, word reversal, an inverted Roman-numeral loop, a prime list that stopped at 96 entries, # headings where ## was asked). The task definitions and graders are in scripts/bench.py (python scripts/bench.py --selftest checks that the graders pass reference answers and fail garbage); the suite has a ceiling effect and cannot rank models. This is not tools/needle_bench.py.

Run-to-run repeatability: with temperature 0 and identical prompts, 49 of 69 outputs were byte-identical between the two runs (and 2 items changed pass/fail), i.e. generation was not exactly repeatable on this configuration. For comparison, two runs of one Ollama configuration on the same machine (a different model) produced identical outputs; see the study repository.

Limitations: one machine, one day, a synthetic workload; the first run of each cell includes warm-up; the two-card runs were not NUMA-pinned while the one-card runs were; GPU 0 and GPU 1 are not equally close to the CPU that holds the pinned workers.

Related reports

Build notes for Ubuntu 26.04 (glibc 2.43) and Pascal