Which experts of a token run on the CPU and which on the GPU depends on timing (the adaptive tier's copies landing, the prefill's CPU share), the CPU and GPU kernels do not give the same last bits, and the draft policy picks each verify window's size from live round times (a different window is a different batch for the verifier), so two runs of one prompt could diverge after a few hundred tokens (ioq-sweep, 2026-12-01: first differing hidden state between layers 8 and 14, argmax flipped at token 240, 20 percent of same-context window rows differed). The switch sets --pcie-frac 1 when none is given (every missed expert is computed on the GPU), STRATA_PREFILL_CPU_SHARE=0 when it is not set (the prompt does not use CPU experts) and STRATA_SPEC_FIXED=1 when it is not set (the engine's fixed window-cost table), and prints one start-up line. A value the person sets wins and is said. RTX A6000, IQ3_S pack, MTP spec 4, default cache: 6 of 6 runs gave the same tokens (the default flags: 2 runs, 2 different answers) and two runs with STRATA_LOGITS_DUMP gave byte-identical logits; decode about 3 percent slower (median 49.3 against 50.9 tok/s), prompt speed the same within noise (4K and 16K). With the switch off the logits of the old and the new build are byte-identical (cache 1500 default flags, and the fixed-flag identity set). strata launch --deterministic writes STRATA_DETERMINISTIC=1 into the run configuration (the copyable line says --deterministic). Settings register entry (opt-in), docs/DETERMINISTIC.md, docs/SETTINGS.md regenerated, launcher test.
3.3 KiB
Repeatable answers (--deterministic)
By default two runs of the same prompt with the same settings can give different words after a while. Two things decide it, and both follow timing:
- Where an expert runs. On a graphics card that holds most of the model, which experts run on the card and which on the CPU depends on when the adaptive tier's copies land and on how the prompt's CPU share splits the work. The CPU and the card do not give exactly the same last digits. The difference is tiny (top scores of about 20.7 against 20.6 in the measured case), but a close choice between two words can flip, and everything after it changes.
- How many words are checked at once. The speculative-decoding policy picks the size of each verify window from the round times it measures, and a different window is a different batch for the verifier.
--deterministic (engine), STRATA_DETERMINISTIC=1 (any launcher) or strata launch --deterministic takes both out:
- every expert that is not already on the graphics card is computed on the graphics card (
--pcie-frac 1, unless you give your own--pcie-frac); - the prompt does not use CPU experts (
STRATA_PREFILL_CPU_SHARE=0, unless you set it yourself); - the window sizes follow a fixed cost table, not the round times (
STRATA_SPEC_FIXED=1, unless you set it yourself).
The engine prints one line at the start when it is on. It is off unless you ask for it, and with it off nothing changes (checked: the logits of the old and the new build are byte-identical).
What was measured
RTX A6000 (48 GB), the Qwen3.8-Flash-Next IQ3_S pack, MTP with 4 drafts, 300 tokens of a code prompt, a fresh process and a cold page cache for every run. "Same" means the same 300 token ids.
| setting | runs | result | decode tok/s |
|---|---|---|---|
| default flags | 2 | different (20c9637c, 3c2dc1ff) | 50.4, 51.3 |
--deterministic |
4 | same (09984247) | 49.3, 50.1, 48.8, 49.2 |
--deterministic and STRATA_LOGITS_DUMP |
2 | same tokens, and the logits dumps are byte-identical | 47.7, 48.4 |
Prompt speed is the same within noise (4,096-token prompt 2,528 tokens per second with the switch against 2,488 without, 16,384-token prompt 2,905 against 2,909; medians of the two warm repeats and of three repeats, one start each).
The cost is about 3 percent of decode speed (median 49.3 against 50.9). A switch that sets only the first two items still gave different
answers in some runs (the window sizes), and --pcie-frac 1 alone gave three different answers in three runs.
The extra traffic over the link is small with the model mostly cached (about 12 MB per token, an estimate from the engine's counters) and
large with a small expert cache (about 550 MB per token at --expert-cache 1500, about 6.3 GB/s on a link measured at 12 GB/s), so a card
with a slower link or less of the model on it can be limited by the link.
What is not measured yet
A small card (an RTX 3060 or a 12 GB RTX 5070 is not yet measured; an expert cache of 4,200 slots on the A6000 stands in for one and its numbers are still to come), AMD and Intel cards, Q2_0 and other packs. The switch changes only where an expert is computed and how the windows are sized; the answers it gives are the card's own, and they are not the same as the default's (the default's answers depend on the timing of that run).