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

files

README.md9.7 KiB
TRIMMED.md500 B
overview.svg18.7 KiB
plan.example.json4.6 KiB
plot-ngram.py3.9 KiB
plot.py4.7 KiB
replay.py6.6 KiB
results.csv1.6 KiB

Community results: Strata 0.1.39 versus 0.1.40 on RTX PRO 6000

Measured on 2026-10-06 with unmodified release engines, Unsloth Flash-Next UD-Q4_K_XL / Q8_0, FP16 KV, 8,192 actual input tokens + 512 output tokens, and one request at a time. This contribution adds documentation and measurement artifacts to the exact v0.1.40 source tree.

Native 0.1.40: ngram follow-up

Four decoding paths on native Strata 0.1.40

The same 8K coding prompt and 512-output cap were run with ngram-only and with MTP plus ngram. No engine changes were made.

Model / pathDecode tok/sPrefill sWhole request sEffective tok/s
Q4_K_XL, no speculation129.93.1157.05772.6
Q4_K_XL, MTP T4257.63.0355.024101.9
Q4_K_XL, ngram only133.82.9906.81775.1
Q4_K_XL, MTP + ngram255.43.0175.023102.0
Q8_0, no speculation82.612.79018.98927.0
Q8_0, MTP T4140.212.81216.46531.1
Q8_0, ngram only81.612.78219.05626.9
Q8_0, MTP + ngram133.812.76116.58930.9

Ngram-only removes --mtp, enables --suffix-draft 3, and allows the verifier up to T8 (--spec 8). Combined mode keeps MTP capped at T4 and enables --suffix-draft 3 --lookup-chain 4 --lookup-chain-min 3: lookup can replace a window or append up to four drafts. This tests one recorded configuration, not a threshold sweep or a claim about every ngram workload.

Model / pathSuffix drafts accepted / offeredChained drafts accepted / offeredExact tokens versus corresponding non-ngram path
Q4, ngram only33 / 109Not enabledAll 512 identical
Q4, MTP + ngram3 / 144 / 8All 512 identical
Q8, ngram only6 / 36Not enabledFirst difference at output token 4
Q8, MTP + ngram22 / 270 / 3First difference at output token 4

All four follow-ups completed and passed the small function check. Input hashes matched the corresponding baseline. Counts above are for the timed request, excluding warm-up. Q4 ngram-only decode was 3.0% faster than plain decode; combined Q4 decode was 0.8% slower than MTP, with essentially unchanged total request time. Q8 was 1.2% slower with ngram-only and 4.6% slower with the combined configuration. Q8 committed output streams differed, so these are different trajectories at fixed token counts, not exact-work speedup comparisons. The cause of that difference has not been isolated. This coding-generation prompt is not a code-edit/copy workload designed to favor prompt lookup.

Initial release comparison

Streaming decode and total request time for the two releases

Q4 MTP decode increased from 244.2 to 257.6 tok/s (+5.5%). Q4 without MTP increased from 118.5 to 129.9 tok/s (+9.6%). Both Q4 comparison pairs produced identical 512-token outputs. These are single observations, not confidence-bounded speedup estimates.

Q8 is a support result: stock v0.1.39 rejected its Q8 PLE table at startup; v0.1.40 loaded it and completed both modes. There is no stock v0.1.39 Q8 speed number and no patched-engine substitute in this comparison.

Results

Model / modeReleaseDecode tok/sPrefill sWhole request sEffective tok/s
Q4_K_XL, MTP T40.1.39244.23.0235.121100.0
Q4_K_XL, MTP T40.1.40257.63.0355.024101.9
Q4_K_XL, no MTP0.1.39118.53.0177.34069.8
Q4_K_XL, no MTP0.1.40129.93.1157.05772.6
Q8_0, MTP T40.1.39Unsupported Q8 PLE———
Q8_0, MTP T40.1.40140.212.81216.46531.1
Q8_0, no MTP0.1.39Unsupported Q8 PLE———
Q8_0, no MTP0.1.4082.612.79018.98927.0

Decode is committed output count / engine decode time. Effective throughput is output count / (engine prefill + decode time). Whole request is client wall time; it excludes model loading. All six supported cases freshly read 8,192 input tokens, reused zero prompt tokens, and reached the 512-output cap.

Stock v0.1.39's two Q8 startup checks returned:

per_layer_token_embd.weight is Q8_0, not IQ4_NL, Q5_0 or FP8 (I8)

Hardware and software

Placement and request settings

The models are from unsloth/Qwen3.8-Flash-Next-GGUF: four Qwen3.8-Flash-Next-UD-Q4_K_XL-*.gguf shards or six Qwen3.8-Flash-Next-Q8_0-*.gguf shards. Existing compatibility packs were reused: small unsupported projections were converted to BF16. Their hashes and the expert-profile hash are recorded in measurements.json. The native model files and each quant's pack were unchanged across versions. This is not a test of freshly generated installer presets. Model repository revision and whole-GGUF hashes were not captured for this screen.

SettingQ4_K_XLQ8_0
GPU expert slotsAll 24,57615,472
GPU expert cache71.73 GiB75.25 GiB
Expert complementNoneAbout 44.28 GiB in RAM; 56 GiB budget
PLE placementRAMRAM, about 50.66 GiB
AdaptationDisabledEvery 4 steps, 96 swaps, decay 0.7
New release adaptation flagsNot used--adapt-async 1, STRATA_EXCHANGE_ROTATE=1

Both modes allocated 16,384 tokens, used FP16 KV, temperature 0, thinking off, prefill chunk 1,024, a 2,048 MiB VRAM reserve, and the same expert profile. Prompt and conversation caches were disabled. Ngram/suffix drafting was off in the initial release-comparison cases. MTP used the same draft runtime, threshold 0.5, and maximum T4; the non-MTP runs used T1 and offered zero draft tokens. EOS was overridden to force the output cap. This is a whole-release comparison with recorded configuration, not an isolated test of PLE, adaptation, or any particular kernel.

Function and token checks

Each supported case first generated a small triangular(n) Python function. It passed checks for n = 0, 1, 2, 10, 100, 10000. This also warmed the engine before the timed request. The timed prompt requested a priority task queue and tests, padded with ordinary maintenance notes to exactly 8,192 tokens.

Reproduction and data

results.csv contains the chart data. measurements.json includes timings, committed token IDs, binary hashes, launch arguments, relevant environment, and startup errors. plot.py regenerates the PNG and SVG with python plot.py (requires matplotlib). plot-ngram.py regenerates the ngram chart with python plot-ngram.py. Large historical experiments and model files are not included in this documentation contribution.

Build each exact tag separately using:

cmake -S SOURCE -B BUILD -G Ninja -DCMAKE_BUILD_TYPE=Release \
  -DSTRATA_ENABLE_CUDA=ON -DCMAKE_CUDA_COMPILER=/usr/local/cuda/bin/nvcc \
  -DCMAKE_CUDA_ARCHITECTURES=120 -DSTRATA_NATIVE_EXPERTS=ON \
  -DSTRATA_BUILD_TESTS=OFF -DSTRATA_GGML_DIR=/path/to/ggml-3cf03257
cmake --build BUILD --parallel 8 --target strata

The request harness used one frozen tokenizer/template and native-protocol Python client for both binaries, from fork commit 70ed61f. That client revision is not an engine comparator. HTTP serving was not tested.

To repeat the workload, copy plan.example.json to plan.json, edit the binary, model, pack, client, Python, profile and draft paths, and run python replay.py CASE_LABEL. Labels are in the plan. $HOME paths are expanded. Use a free GPU and sufficient locked-memory limits for --ple-io ram. Each case creates a fresh result directory and refuses to overwrite one. Q8 cases for the stock 0.1.39 binary are expected to fail at PLE loading.

Limits of this screen

One observation per case, no repetitions or uncertainty estimate. The release 0.1.40 cases ran first; stock 0.1.39 ran later, in Q8 MTP, Q8 non-MTP, Q4 MTP, Q4 non-MTP order. Startup page-cache state, clocks and thermals were not matched. Loading time is excluded and no startup-speedup claim is made. There were no other compute jobs on the GPU. The GPU was idle after testing. Higher contexts, concurrency, quality benchmarks and sanitizer coverage are outside this screen. The four ngram follow-ups ran afterward, in Q4 ngram, Q4 combined, Q8 ngram, Q8 combined order, each with a fresh process and its own function-check warm-up.