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
1 folder20 files

files

build-recipes/
README.md10.7 KiB
TRIMMED.md551 B
artifact-hashes.json3.9 KiB
baseline.json2.4 KiB
baseline.shared-settings.json35 B
bench.py6.3 KiB
fixture-hashes.json301 B
full-context.json1.4 KiB
full-window-prompt.json502 B
gfx1100-hipblaslt-100500.txt1.0 KiB
packages.json1.7 KiB
prepare_sources.py1.6 KiB
prompts.json984 B
provenance.json2.8 KiB
quality.json65.3 KiB
quality.py5.3 KiB
source-layout.json1.4 KiB
tuned.json2.8 KiB
tuned.shared-settings.json35 B
variants.json11.6 KiB

RX 7900 XTX + RX 6800 XT helper cache, Xeon E5-2696 v4, 1M context

Measurements from 2026-10-06/07 on a custom Linux HIP build. This is a results-only report of combined tuning, with exact prompts and per-request data. It does not establish a universal speedup, an isolated helper-allowance gain or an isolated Q8-kernel gain. It does not claim 100+ sustained tokens/s.

Hardware and software

Model and runtime

Unsloth UD-Q4_K_XL of Qwen3.8-Flash-Next, all four GGUF shards at revision c8b5954a88c2775c546b92593eda40ea041d3176. Exact immutable URLs and SHA256s are in provenance.json. Native routed weights are retained; the auxiliary dense pack uses the existing --compat-bf16 conversion. The MTP proposal layer is Q2_0,derived from Qwen's revision de4b8e4d43b917e7706784d8bb445c9af86a3540; target verification remains Q4_K_XL. No target requantization or experimental speed projection was used.

Both baseline and final use one client slot, 1,048,576 context, int8 KV with 32768 resident cells, static YaRN 4 / original 262144, and the helper layout. All target layers remain on the XTX. Both already use primary/helper allowances 448/128 MiB, --remote-expert-opt and lag 2. Both keep 4096 MiB / 4 slots RAM conversation parking; those parked conversations do not add client concurrency. CPU vision uses the original F16 projector and encoder, 12 threads and at most 1024 image tokens.

Baseline native commit477b5f7bf946d4d8a4f0d55877f84163d8ba9a82 is 0.1.40.1 plus the helper-allowance patch; API2c1407dfde3fd9831853ec4984c3cef59bc659bd adds local metadata/thinking compatibility. The final native is 96c35a0e54cb505579f83c1adde4b71d27c33436,based on 0.1.40.2 e8ca9afd03d839d4f8dbbe82dffce7f8a3bafd7a; API is 5597378da8b5c2fe180e30f6b1903342e12e60ee. These are historical measured sources,not measurements of a new isolated PR or stock 0.1.40.3.

The final configuration combines spec 8, 15 workers, adapt-every 4, lookup-chain 3, streamed MTP normalization,exact kernel switches, coupled/Gumbel sampling and the local opt-in HIP interleaved/Q8 path. variants.json records each measured arm's full args/env. The Q8 extension alone was not a consistent whole-model win. Kernel bitwise parity and sampled model quality are different checks; neither proves identical generated text for a changed sampler/cache.

The source incorporates or applies work from #1181, #1125, #1123, #1305, #1240, #1087, #1281 and #786. The interleaved layout builds on the upstream implementation credited to Eddoursul. These contributions belong to their original authors; the source history preserves that attribution.

Results

All rates below are single-stream engine timings in tokens/s; reasoning tokens are included. Coding/prose use medium thinking, temperature 1, top_p .95, top_k 20, min_p 0, presence_penalty 0, seed 314159. Each long request has an 8192 output cap.

Long coding armIndividual ratesActual output tokensRepetitions
0.1.40.2 helper control,interleaving off82.5 /83.98192 each2
Generic HIP interleaved port,row184.8 /84.18192 each2
Q8 extension,row1,otherwise same helper settings82.2 /81.38192 each2
Final combined15worker/spec8 arm97.2 /96.7 /97.08192 each3

Final coding median 97.0, range 96.7–97.2. Final long prose 65.0/63.9, with 4820/3911 actual output tokens: the second ended before the campaign's 4096 token minimum. The campaign's original 100 TG gate failed. Short 1536 token fixtures should be kept separate: baseline coding median 76.2, n3; final 78.3, n1. Baseline prose median 62.3, n3; final 65.5, n1. No paired confidence interval is claimed.

Cold prompt fixtureBaseline PPFinal PPFresh inputOutputs
Nominal50K1348.81350.147641768
Nominal130K1286.61294.2123747768
Full usable1M587.4591.71048064504

Cold/depth tests are greedy,thinking off; cached-prefix tokens are0. Full-depth decode 39.3 baseline / 39.2 final. The full request exercises 1048064 input + 504 output

First 200 HellaSwag and 200 WinoGrande items in the local files' order, greedy with thinking off: baseline 181/200 and 173/200; final 181/200 and 175/200; zero unparseable answers/errors in both. quality.json includes item IDs/gold/answers, scores and source-file hashes. This is a small matched sample, not overall model intelligence or validated correctness of the generated coding task.

The final arm was selected after CPU worker, spec window and draft-confidence screens. Its first two coding runs alternated with prose. The third followed other trials,restoration of the winning configuration and functional checks; it was an additional validation run,not three consecutive uninterrupted coding requests. Expert-cache adaptation stayed enabled and was warmed by preceding requests. Requests carried different leading tags; no prefix reset is hidden. Full chronology and actual per-request cached-token counts are in provenance.json and measurements.json.

Earlier layer-split experiments produced hangs and an illegal-memory failure with a 6800 XT kernel page fault; host reboots followed. Those failed configurations are excluded from successful speed summaries. Their cause was not fixed or established by this work. The final helper layout completed the checks without another recorded AMD kernel fault. Text, tools, thinking variants, metadata and image checks passed locally; concurrent-client coverage does not apply.

Reproduction

The public archive contains the exact historical sources. It is research source, not a proposed default change or a CUDA-qualified release:

git clone https://github.com/saikiran-rs/Strata.git strata-research
cd strata-research
git checkout community/amd-helper-1m-report-20261007
cd bench/results/2026-10-07-community-xtx-6800xt-1m-helper

Use the commit/path mapping in source-layout.json for the separate baseline/API/packing trees. python prepare_sources.py --root <reproduction-directory> creates those source worktrees and the pinned GGML tree without building or serving. Install the pinned package versions from packages.json; the recipes expect the ROCm wheels under the virtualenv path named in source-layout.json. GGML is pinned to 3cf03257f219afbe7334045ff7c6a06ac68c627d. build-recipes contains the measured HIP flags; setSTRATA_RESEARCH_ROOT to the reproduction directory. Expected measured binary hash identifies the historical build; compiler/loader/path differences can change a rebuilt binary's hash.

Download the pinned GGUFs,then use the packing source'stools/iq_pack.py --compat-bf16 --gguf <first-shard> --out <pack>. Recreate the draft with tools/mtp_fetch.py fetch/verify,mtp_pack.py --experts q2_0,andmtp_rt.py; the original checkpoint revision is in provenance. Binary/tensor hashes identify the measured artifacts in artifact-hashes.json; relocating path-bearing JSON metadata can change its hash without changing tensor bytes. The measured expert profile and hipBLASLt table are included in this folder; they are not automatic defaults.

baseline.json and tuned.json preserve the measured parameters with portable placeholders. Replace${RESEARCH_ROOT},${MODELS}, ${PACK},${MTP} and${OUTPUT} with your paths; copy the provided profile/table to the paths the configs name. Place the matching.shared-settings.json sidecar beside each rendered config. Serve with the pinned API using python -m serve.server --engine strata --config <rendered-config> --port 8080. Check that the HIP ordinals select only the intended AMD cards. No included script starts/stops a service or changes tuning.

Run the client against that already-running server:

python bench.py --check-recorded
python bench.py --url http://127.0.0.1:8080 --case coding --reps 3 --out my-code
python bench.py --url http://127.0.0.1:8080 --case prose --reps 2 --out my-prose
python bench.py --url http://127.0.0.1:8080 --case depth50000 --out my-depth50k
python bench.py --url http://127.0.0.1:8080 --case depth130000 --out my-depth130k
python bench.py --url http://127.0.0.1:8080 --case full --out my-full1m

A full1M request took about 30 min on this setup. The short commands reproduce the request fixtures/protocol; matching the historical order matters because the adaptive cache stays enabled. The client records server timings,usage,client first/last generated-delta times, elapsed time,output text and failures. Client TG uses(completion_tokens−1)/ (last−first delta time),as in the original harness; SSE/network batching can affect it. Engine TG is reported separately; total request time is not decode time.

For the quality sample,obtain the exact datasets matching the hashes,then:

python quality.py final quality-out http://127.0.0.1:8080 --hs 200 --wg 200 \
  --hellaswag hellaswag_val_full.txt --winogrande winogrande-debiased-eval.csv

Dataset content is not redistributed; sample ordering and the answer-letter parser are preserved inquality.py.

Historical results are retained; no new inference measurements were run for publication.