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

files

BUILD-controlled.json454 B
BUILD-interactive.json275 B
README.md10.7 KiB
engine-A.log6.2 KiB
engine-B.log6.0 KiB
engine-C.log6.1 KiB
engine-D.log6.1 KiB
engine-E.log6.1 KiB
gfx1151-B-tuningTables.json9.4 KiB
gfx1151-C-tuningTables-denseMMQ.json9.5 KiB
gfx1151-D-tuningTables-denseMMQ-PR826.json9.6 KiB
gfx1151-E-tuningTables-denseMMQ-noPR826.json9.7 KiB
gfx1151-plain.json9.3 KiB
interactive-results.json968 B
prefill-ab.md4.8 KiB
strata-q2_0.json1.3 KiB
strata-unsloth-ud-iq4_xs.json1.3 KiB

Community report: Radeon 8060S (gfx1151), Ryzen AI Max+ 395

Measured on 2026-10-04 and 2026-10-05 on the same Radeon 8060S / Ryzen AI Max+ 395 system with 128 GB of unified memory. The first session compared Strata HIP with llama.cpp Vulkan in interactive Q2_0 and UD-IQ4_XS chats. The second used matched synthetic prompts to isolate the gfx1151 hipBLASLt tuning table, dense MMQ and shared-expert decode stream. The controlled run's main result is 250.91 to 528.91 prompt tok/s (2.11x) from the tuning table; the shared-expert stream raised matched decode from 45.63 to 46.77 tok/s (2.5%).

The interactive answers sometimes differed in reasoning and length, so their long answers and session aggregates are observations rather than kernel-only comparisons. The controlled A-E runs use fixed prompts and sampling; raw request records and the detailed calculation are in prefill-ab.md.

Hardware and software

Configurations

The exact generated server configurations are strata-q2_0.json and strata-unsloth-ud-iq4_xs.json. They preserve the measured directory layout as an audit record, but replace the account name with $USER. JSON does not expand that placeholder, so these files are not portable templates. The Q2_0 file was saved after its vision limit was raised from the measured 300 tokens to 512. That setting does not affect the text-only observations.

Stratallama.cpp
GPU backendHIP, gfx1151Vulkan
target layersallall (-ngl 99, -ngld 99)
parallel requests11 (-np 1)
MTP--spec 4 --spec-min-p 0.5; prompt lookup can extend the verification window to 6Q8_0 MTP, 1-3 drafts, probability floor 0.0
KV/context, Q2_0int8, 32K resident of 131K65K context; llama.cpp KV setting not recorded
KV/context, UD-IQ4_XSint8, 32K resident of 65K65K context; llama.cpp KV setting not recorded
Strata versionengine 0.1.39-

Both interactive Strata runs cached all 24,576 routed experts in the shared GPU pool: 31.64 GiB for Q2_0 and 55.43 GiB for UD-IQ4_XS. The latter therefore did not read experts from SSD while answering, despite using the model shards in place. These interactive runs predate the gfx1151 tuning table and used plain hipBLAS for dense prompt projections. The controlled Q2_0 run below measures that table separately.

Q2_0

Model: Qwen3.8-Flash-Next-GSQ-RCO-Q2_0

Long matching prompts

PromptStrata HIPllama.cpp VulkanStrata difference
Long reasoning answer1,921 tokens at 47.8 tok/s1,545 tokens at 35.23 tok/s+35.7%
Following long answer3,401 tokens at 46.3 tok/s3,359 tokens at 37.74 tok/s+22.7%

The second row is the cleaner comparison because the generated lengths are nearly equal. The first few answers had different reasoning behavior and were short enough for draft acceptance and startup effects to dominate.

Whole observed sessions

BackendRequestsOutput tokensDecode timeWeighted decode rateMTP drafts accepted
Strata HIP55,552118.236 s46.96 tok/s3,169 / 4,684 (67.7%)
llama.cpp Vulkan65,540147.197 s37.64 tok/s3,320 / 6,678 (49.7%)

The session totals happen to contain almost the same number of output tokens, but llama.cpp has one extra short request and the generated text is not identical. Treat the resulting 24.8% Strata lead as an observed workload result, not a kernel-only benchmark.

Unsloth UD-IQ4_XS

Model: Qwen3.8-Flash-Next-UD-IQ4_XS, three shards. Both servers used a 65,536-token context.

Prompt orderStrata HIPllama.cpp VulkanStrata difference
152 tokens at 44.3 tok/s93 tokens at 38.87 tok/s+14.0%
2266 tokens at 42.2 tok/s209 tokens at 34.24 tok/s+23.2%
3188 tokens at 41.6 tok/s378 tokens at 40.87 tok/s+1.8%
4959 tokens at 34.6 tok/s891 tokens at 35.44 tok/s-2.4%
52,205 tokens at 36.1 tok/s1,438 tokens at 36.02 tok/s+0.2%

The two sustained runs are effectively tied at about 35-36 tok/s. Across the complete observed sessions:

BackendOutput tokensDecode timeWeighted decode rateMTP drafts accepted
Strata HIP3,670100.784 s36.41 tok/s2,126 / 3,283 (64.8%)
llama.cpp Vulkan3,00982.673 s36.40 tok/s1,912 / 3,300 (57.9%)

Strata's first prompt read 63 tokens at 75.5 tok/s. Its cached follow-ups read 18-32 new tokens at 63.8-70.7 tok/s. llama.cpp's first request reported 381 prompt tokens at 215.6 tok/s; its cached follow-ups read 19-30 new tokens at 45.3-67.7 tok/s. The first prompt counts differ too much for a direct prompt-speed comparison.

Vision

Both Strata models used the CPU vision encoder with 16 threads and a limit of 300 image tokens. The projectors from the ISTA Q2_0 folder and the Unsloth download have different metadata but byte-identical tensor payloads; encoding the same image produced byte-identical embeddings. The direct encoder test made 299 tokens on a 23 x 13 grid in 2.43-2.45 seconds.

The same docs/media/pagoda-preview.webp image and the prompt Describe this image concisely. produced:

ModelPromptPrompt processingOutputDecodeMTP drafts accepted
Q2_0320 tokens in 2.011 s159.2 tok/s53 tokens in 1.035 s51.2 tok/s35 / 38 (92.1%)
UD-IQ4_XS320 tokens in 2.217 s144.3 tok/s97 tokens in 3.053 s31.8 tok/s52 / 104 (50.0%)

Both answers correctly identified the voxel pagoda, island, cherry blossoms, pond, torii gate and control panel. UD-IQ4_XS gave more detail; Q2_0 followed "concisely" more literally. This single decode-speed difference is not a quantization-only result: the answers have different lengths and Q2_0 accepted an unusually high 92.1% of its MTP drafts, versus 50.0% for UD-IQ4_XS. The API's prompt and decode clocks do not include the separate CPU image-encoder step.

A second Q2_0 request used a different, larger image and asked please describe the image and print out any text you can read. Reasoning was enabled. It read 355 prompt tokens in 1.903 seconds (186.6 tok/s), generated 577 tokens in 14.062 seconds (41.0 tok/s), and accepted 260 of 424 MTP drafts (61.3%). The server's visible prompt-plus-decode time was about 16 seconds; the separate CPU image-encoding step is not included. Because the encoder was still capped at 300 image tokens, the larger source resolution did not give the language model a proportionally larger visual grid.

Where the MTP effect appears

Strata records MTP in three places:

An accepted draft lets the target model commit another output token from the same verification window. Higher acceptance normally raises throughput. For example, the two long UD-IQ4_XS Strata requests accepted 521/881 (59.1%) and 1,283/1,966 (65.3%) drafts and ran at 34.6 and 36.1 tok/s respectively. Content and context also changed, so this is consistent with an MTP gain but does not isolate it.

The acceptance counters are utilization figures, not a direct speedup measurement. Quantifying the MTP effect requires a controlled A/B with identical input tokens and output tokens: one normal speculative run and one plain decode run without the MTP layer. The interactive Strata server currently requires MTP, so that control should use the engine's non-server generation/benchmark path rather than comparing unrelated server replies.

Controlled Q2_0 A/B

tools/hip/bench_prefill.py performed one excluded warm-up and four fresh/follow-up pairs per server start. Fresh prompts contained 140, 280, 140 and 280 generated JavaScript functions. Sampling was fixed at temperature 0, top-k 1, top-p 1, min-p 0 and seed 42, reasoning was disabled, and every measured request generated 128 tokens. Every fresh request had zero reused KV tokens. The server was restarted between arms.

ArmDense prompt pathDense MMQSH streamWeighted fresh prompt rate
Aplain hipBLASoffdefault on250.91 tok/s
Btuned hipBLASLtoffdefault on528.91 tok/s
Ctuned hipBLASLtondefault on529.96 tok/s
Dtuned hipBLASLtonexplicitly on532.43 tok/s
Etuned hipBLASLtonoff532.58 tok/s

The tuning table improved weighted fresh-prompt throughput by 110.8%. Its four matched request improvements were 109-113%. Dense MMQ changed the weighted B result by +0.2%, below this session's observed timing variation. SH streaming is a decode optimization and did not materially affect prefill.

D and E generated identical responses with the same MTP draft behavior, making them the clean SH-stream pair. D generated 1,024 tokens in 21.894 seconds (46.77 tok/s); E needed 22.441 seconds (45.63 tok/s). Enabling the stream improved weighted decode by 2.5%, with all eight individual requests faster by 1.3-3.5%.

The detailed per-request table, method, result links and limits are in prefill-ab.md. This is one ordered session on one machine, not a confidence interval or a result for other GPUs and models. Cached follow-ups whose generated prefixes differ are retained as evidence but are not used for the hipBLASLt prefill comparison.

Notes