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 folder1 file

files

data/
README.md5.0 KiB

Layer split across GPUs (2026-09-29)

Rig (a community member's PC, "RIBPC"):

Model: the Coder (GSQ-RCO IQ1_M, 48 layers x 256 experts = 12,288 expert pairs, ~23 GB of experts), 32K context, int8 KV, --prefill auto, --spec 4. It is the only model that fits the rig's RAM and disk.

Tools: rib_pp.py (needle prompts at 2.7K/8K/16K/28K tokens with a code word at 50% depth, a 2-turn chat that must reuse its checkpoint, greedy decode of a story and a code prompt) and rib_norepeat.py (the Phase A no-repeat and sanity cases). Raw results are in data/.

Correctness

CheckResult
This branch vs the 0.1.20 release, one GPU (5080), fixed cache, all 10 cases10/10 byte-identical
This branch, one GPU vs the split on the same GPU (K=24, --split-device 0)10/10 byte-identical: the hand-off is exact
5080 + 3090 (auto) and 5080 + 2080 Ti + 3090 (auto): no-repeat under presence 100 (greedy and sampled), 144 sanityall pass, 0 repeats
Needles at 2.7K-28K tokens, every configurationall found
2-turn chat (the checkpoint restored on every GPU)reused 6,631-6,632 of 6,660 tokens, answer right

Across GPUs the text is not byte-identical to one GPU: experts the CPU computed on one card run on a GPU in the split, and they round differently (the same effect as --expert-cache, bench/results/2026-09-27-cache-parity).

Speed

Prompt tok/s at 16K / 28K tokens, and decode tok/s for story / code (greedy; three repeats averaged in the K sweep):

ConfigurationSplitPrompt 16KPrompt 28KDecode storyDecode codeDecode hits
0.1.20, 5080 alone-2,0452,00583.288.270-84%
this branch, 5080 alone-2,0171,97483.188.070-84%
this branch, 5080 alone, 3 repeats (adaptive swaps learn the prompt)-1,7261,97086.7105.291-92%
3090 alone-1,2531,21171.792.986-93%
5080 + 3090K=181,5471,69477.2103.899.9%
5080 + 3090K=221,8402,07480.2106.499.8%
5080 + 3090K=241,9782,25883.5109.599.5%
5080 + 3090K=262,0392,35783.8109.799.3%
5080 + 3090K=282,0112,28783.5112.599.0%
5080 + 3090K=301,9352,21881.1109.698%
5080 + 3090K=321,8182,06383.0108.798%
5080 + 3090auto (K=22)2,0372,07379.5108.999.7%
3090 + 5080auto (K=30)1,6721,87690.3105.199.4%
5080 + 2080 Ti + 3090auto (22, 23)1,6871,84767.689.699.7%
5080 + 3090 + 2080 Tifirst auto (12, 33)1,1481,14451.969.7100%
5080 + 2080 Tifirst auto91490645.558.097%

What decides it:

Auto placement

--layer-split auto predicts one decode window's time for every placement (every placement up to three GPUs) and keeps the fastest:

It picked K=22 on the 5080 + 3090: within 0-12% of the best fixed split on prompts and on par on decode. It gives a slow third card a single layer.

Reproduce

On a rig: the strata-remote tools, then rib_matrix.bat, rib_ksweep.bat, rib_validate.bat (in the dev notes, not in this repository).