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
3 folders7 files

files

IQ3_S-1x5090/
IQ3_S-1x5090-0138/
IQ3_S-1x5090-0138-fused/
BUILD-0.1.34.json228 B
BUILD-0.1.38.json229 B
README.md4.0 KiB
hw.txt815 B
strata-bench.py15.0 KiB
strata-iq3_s.fused.json1.4 KiB
strata-iq3_s.json1.4 KiB

IQ3_S single-GPU results, RTX 5090 / Ryzen 9 9950X3D

Issue: #165 Engine: three passes on identical hardware and config — v0.1.34 (prebuilt), v0.1.38 (source build, sm_120), v0.1.38 with STRATA_PF_FUSED=1. Status: submission-shaped; fills the "IQ3_S single-GPU results remain outstanding" gap from the 3090/EPYC notes.

Hardware

See hw.txt. Summary: RTX 5090 32 GB (450 W configured cap), Ryzen 9 9950X3D, 89 GiB RAM, native Ubuntu, CUDA 13.3.

Method

Native Linux setup via the shipped setup path, IQ3_S pack + native experts, --expert-cache auto, --prefill auto, MTP spec decode (--spec 4, --spec-min-p 0.70), int8 KV with 32768 resident, --pcie-frac 0.00, conversation cache 8192 MiB / 4 slots, max-context 131072. Identical serve args across all three passes; only the engine binary and the fused-kernel env flag differ.

The local API harness is the same one used in the 3090/EPYC run (strata-bench.py, patched copy in data/): public Strata source tree as prompt corpus, generated tasks, temperature: 0, reasoning_effort: none, max_tokens: 256, unique request-id prefixes per cell, three runs per speed cell, medians summarized, actual usage.prompt_tokens recorded.

Cleanliness: every cell in the final matrices was run with no other client on the engine, and every engine log line shows 0 reused cold prefill. Two earlier passes were contaminated by a second client sharing the engine and were fully overwritten. Engine/API TTFT agreement is within ~1% on every retained cell.

Harness fix worth upstreaming

The shipped strata-bench.py sizes prompts with a 3.4 chars/token estimate. On this corpus the real ratio is ~3.0, so the 128k cell overshot: a 129,792-token target tokenized to 148,496 tokens and the server returned HTTP 400 (prompt + max tokens exceeds the context; requests are never truncated). The patched copy parses the exact prompt token count from the 400 body, rescales the char budget, and retries up to three times until the prompt fits (a single rescale still overshoots ~1% of the time). Suggested upstream change: derive the chars/token ratio from a short probe request per corpus instead of a constant, or keep the 400-rescale loop.

Results (decode tok/s engine, median of 3)

ctxv0.1.34v0.1.38v0.1.38 + STRATA_PF_FUSED=1
1k176.5168.0190.9
4k178.3192.7189.2
32k160.9191.7181.3
128k143.6152.3164.9
ctxTTFT s (med): 0.1.34 / 0.1.38 / fusedprefill tok/s (med): 0.1.34 / 0.1.38 / fused
1k0.7 / 0.7 / 0.71699 / 1753 / 1723
4k1.0 / 0.9 / 0.84308 / 4846 / 5361
32k6.0 / 5.3 / 5.05301 / 6036 / 6324
128k23.5 / 22.5 / 21.75607 / 5862 / 6092

Observations:

Files