[GH-ISSUE #2482] STRATA_ROUTE_TAIL_SKIP=7 vs 0 on an RTX 5080 16 GB (0.1.44, UD-IQ4_XS, 352K real conversation): +6% warm decode, prefill unchanged; the decode hit rate excludes skipped experts #1012

Closed
opened 2026-11-04 01:47:43 +07:00 by bsakaguchi · 8 comments
Owner

Originally created by @enkynakamura on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2482

Setup

  • RTX 5080 16 GB (sm_120), Xeon w7-2475X, 128 GB DDR5, Windows; engine 0.1.44 (not 0.1.44.1)
  • Unsloth UD-IQ4_XS, --kv int8, --rope-scaling yarn --rope-scale 3 --max-context 786432, --expert-cache auto (2401 slots, 5.40 GiB), --vram-reserve-mib 1420, --spec 5 --spec-min-p 0.8, --suffix-draft 0, --pcie-frac 0.33, --resident-budget-gib 55
  • env: STRATA_IQ_MT_MIN=1 STRATA_IQ_GATHER=1 STRATA_IQ_PREFETCH=4096 STRATA_STAGER_THREADS=8 STRATA_PREFILL_CPU_SHARE=0
  • The two arms differ only in STRATA_ROUTE_TAIL_SKIP: 0 vs unset (the engine logs STRATA_ROUTE_TAIL_SKIP=7 is ON (default)).

1. Fixed-token benchmark: 352,130-token real conversation, temperature 0, 512 tokens

A conversation exported from Jan (the desktop chat app, jan.ai, which I use as the OpenAI-compatible client for Strata): 109 messages, Italian, code, tool calls, plus a fixed question; fresh engine, one cold read, then runs that reuse the 352,123-token prefix (decode only). All numbers below are from the engine's own strata serve: prompt ... lines.

arm prefill tok/s (cold) decode tok/s (cold) decode tok/s (warm runs) drafts accepted (warm)
TAIL_SKIP=0, session 1 2271.6 56.7 57.2 221 / 307
TAIL_SKIP=0, session 2 2282.8 52.8 55.8 221 / 307
TAIL_SKIP=7 2283.5 54.0 58.2, 62.0, 59.9 223/345, 224/348, 210/333
  • Warm decode: mean 60.0 vs 56.5 tok/s, +6.2% (60.03 / 56.5). All three skip runs are above the best no-skip run.
  • Prefill: unchanged (2283.5 vs 2271.6 / 2282.8), consistent with the skip acting only in verify windows.
  • Cold decode: 54.0 sits between the two no-skip values (52.8 / 56.7), so no readable difference.
  • Limits: only two no-skip warm runs (one per session) and three skip runs.

2. Real chat use (Jan desktop app as client, temperature 1, long answers)

Requests with more than 4K output tokens, from the same logs:

arm context at start output tokens drafts accepted decode tok/s
skip 200K 18,189 86.2% 67.7
skip 224K 13,526 83.3% 60.7
skip 239K 20,947 83.6% 58.3
skip 260K 6,023 87.5% 60.4
skip 266K 7,488 79.5% 64.4
no skip 191K 31,754 84.8% 62.3
no skip 224K 7,775 87.4% 58.1
no skip 232K 4,739 71.9% 59.0

Same context (224K): 60.7 vs 58.1 (+4.5%) with lower draft acceptance on the skip side. Content differs between requests, so this is only consistent with section 1, not a measurement of its own.

3. The decode hit rate is not comparable between the two settings

In decode expert cache hit rate: X% (hits / lookups); N more read ... (Y% of all R routed), the routed total is a multiple of 480 in 129 of 129 request lines with TAIL_SKIP=0, and in 0 of 16 lines with TAIL_SKIP=7. My reading (not checked in the code) is that skipped experts are dropped from both lookups and routed. The hit rate then rises because the denominator shrinks, not because the cache serves more experts. On the 352K benchmark it reads 63-66% with the skip and 56-58% without.

This matters whenever hit rates are compared across settings (as in the original #2441 report). Reporting skipped experts in the same line (or computing the hit rate over all routed experts) would make them comparable.

4. Output quality (anecdotal)

Two paired generations at temperature 1 (same prompt, one per arm): a ~477K-context conversation summary checked number by number against the conversation, and a 4-part test (two exact-answer math questions, a look-ahead bug in a pandas z-score, and a hardware question with no available data), judged blind. I saw no degradation in either pair. This only rules out an obvious problem, not a small one.

Summary

On a 16 GB card at 200-350K context, the default TAIL_SKIP=7 gave roughly +4-9% decode in use and +6% on the fixed-token run, with no visible quality loss. I am keeping it on. Happy to run more A/B on this machine if useful, for example several no-skip warm runs within one session, or other ranks.

Originally created by @enkynakamura on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2482 ### Setup - RTX 5080 16 GB (sm_120), Xeon w7-2475X, 128 GB DDR5, Windows; engine **0.1.44** (not 0.1.44.1) - Unsloth UD-IQ4_XS, `--kv int8`, `--rope-scaling yarn --rope-scale 3 --max-context 786432`, `--expert-cache auto` (2401 slots, 5.40 GiB), `--vram-reserve-mib 1420`, `--spec 5 --spec-min-p 0.8`, `--suffix-draft 0`, `--pcie-frac 0.33`, `--resident-budget-gib 55` - env: `STRATA_IQ_MT_MIN=1 STRATA_IQ_GATHER=1 STRATA_IQ_PREFETCH=4096 STRATA_STAGER_THREADS=8 STRATA_PREFILL_CPU_SHARE=0` - The two arms differ only in `STRATA_ROUTE_TAIL_SKIP`: `0` vs unset (the engine logs `STRATA_ROUTE_TAIL_SKIP=7 is ON (default)`). ### 1. Fixed-token benchmark: 352,130-token real conversation, temperature 0, 512 tokens A conversation exported from Jan (the desktop chat app, jan.ai, which I use as the OpenAI-compatible client for Strata): 109 messages, Italian, code, tool calls, plus a fixed question; fresh engine, one cold read, then runs that reuse the 352,123-token prefix (decode only). All numbers below are from the engine's own `strata serve: prompt ...` lines. | arm | prefill tok/s (cold) | decode tok/s (cold) | decode tok/s (warm runs) | drafts accepted (warm) | |---|---|---|---|---| | TAIL_SKIP=0, session 1 | 2271.6 | 56.7 | 57.2 | 221 / 307 | | TAIL_SKIP=0, session 2 | 2282.8 | 52.8 | 55.8 | 221 / 307 | | TAIL_SKIP=7 | 2283.5 | 54.0 | 58.2, 62.0, 59.9 | 223/345, 224/348, 210/333 | - Warm decode: mean 60.0 vs 56.5 tok/s, **+6.2%** (60.03 / 56.5). All three skip runs are above the best no-skip run. - Prefill: unchanged (2283.5 vs 2271.6 / 2282.8), consistent with the skip acting only in verify windows. - Cold decode: 54.0 sits between the two no-skip values (52.8 / 56.7), so no readable difference. - Limits: only two no-skip warm runs (one per session) and three skip runs. ### 2. Real chat use (Jan desktop app as client, temperature 1, long answers) Requests with more than 4K output tokens, from the same logs: | arm | context at start | output tokens | drafts accepted | decode tok/s | |---|---|---|---|---| | skip | 200K | 18,189 | 86.2% | 67.7 | | skip | 224K | 13,526 | 83.3% | 60.7 | | skip | 239K | 20,947 | 83.6% | 58.3 | | skip | 260K | 6,023 | 87.5% | 60.4 | | skip | 266K | 7,488 | 79.5% | 64.4 | | no skip | 191K | 31,754 | 84.8% | 62.3 | | no skip | 224K | 7,775 | 87.4% | 58.1 | | no skip | 232K | 4,739 | 71.9% | 59.0 | Same context (224K): 60.7 vs 58.1 (+4.5%) with lower draft acceptance on the skip side. Content differs between requests, so this is only consistent with section 1, not a measurement of its own. ### 3. The decode hit rate is not comparable between the two settings In `decode expert cache hit rate: X% (hits / lookups); N more read ... (Y% of all R routed)`, the `routed` total is a multiple of 480 in **129 of 129** request lines with `TAIL_SKIP=0`, and in **0 of 16** lines with `TAIL_SKIP=7`. My reading (not checked in the code) is that skipped experts are dropped from both `lookups` and `routed`. The hit rate then rises because the denominator shrinks, not because the cache serves more experts. On the 352K benchmark it reads 63-66% with the skip and 56-58% without. This matters whenever hit rates are compared across settings (as in the original #2441 report). Reporting skipped experts in the same line (or computing the hit rate over all routed experts) would make them comparable. ### 4. Output quality (anecdotal) Two paired generations at temperature 1 (same prompt, one per arm): a ~477K-context conversation summary checked number by number against the conversation, and a 4-part test (two exact-answer math questions, a look-ahead bug in a pandas z-score, and a hardware question with no available data), judged blind. I saw no degradation in either pair. This only rules out an obvious problem, not a small one. ### Summary On a 16 GB card at 200-350K context, the default `TAIL_SKIP=7` gave roughly +4-9% decode in use and +6% on the fixed-token run, with no visible quality loss. I am keeping it on. Happy to run more A/B on this machine if useful, for example several no-skip warm runs within one session, or other ranks.
Author
Owner

@mmhorda commented on GitHub (Oct 15, 2026):

I zlready pointed out in an an another issue.
The quality loss maybe not visible to you, but it is defenitelly mesurable.

<!-- gh-comment-id:6185277923 --> @mmhorda commented on GitHub (Oct 15, 2026): I zlready pointed out in an an another issue. The quality loss maybe not visible to you, but it is defenitelly mesurable.
Author
Owner

@qiuzan2001 commented on GitHub (Oct 15, 2026):

Another data point for the same A/B (STRATA_ROUTE_TAIL_SKIP=0 against the default 7), on a 16 GB Blackwell card under Linux: here the default is +31% short decode and +37% decode after a 6K prompt, prompt speed unchanged.

Machine: RTX 5070 Ti 16 GB (PCIe 4.0 x16), Ryzen 7 5800X3D (AVX2, no AVX-512), 80 GiB DDR4-3200, Ubuntu 26.04, driver 595.99.02, CUDA 13.1. Strata 0.1.44.1 source build (296b59d2), Swift 1.5 IQ3_S, setup's settings at 262,144 tokens (int8 KV, 32,768 cells resident, --spec 4 --spec-min-p 0.5, MTP), 3,838 experts in VRAM. The arms differ only in the environment variable (the default arm logs STRATA_ROUTE_TAIL_SKIP=7 is ON (default)).

Method: a fresh server per arm and round, 4 rounds in the order AB, BA, AB, BA, one discarded warm-up per start; each round eight different short prompts and one 6,345-token prompt, 256 new tokens each, greedy, thinking off. "Pooled" = sum of the engine's predicted_n / sum of predicted_ms over the eight short answers.

Round Pooled short decode, skip 7 (default) skip 0 skip 0 vs 7 6,345-token prompt: decode 7 / 0 prompt tok/s 7 / 0
0 79.05 60.34 -23.7% 65.7 / 54.5 2,702 / 2,679
1 79.87 60.15 -24.7% 66.2 / 49.9 2,716 / 2,669
2 76.52 59.89 -21.7% 62.0 / 46.7 2,718 / 2,688
3 78.41 60.08 -23.4% 71.2 / 44.0 2,701 / 2,687
median 78.73 60.11 -23.5% (0 of 4 faster) 65.95 / 48.30 2,709 / 2,683

Draft acceptance was about the same (4,760 of 6,870 with the skip, 4,873 of 7,118 without), and 2 of the 36 answer pairs are byte-identical, as expected since the skip changes answers. Like your table, I left the decode hit-rate lines out: they are not comparable between the two settings. Not tested: a 352K-token real conversation like yours, warm-prefix runs, other ranks (8, 9), or other model sizes.

<!-- gh-comment-id:6189636810 --> @qiuzan2001 commented on GitHub (Oct 15, 2026): Another data point for the same A/B (`STRATA_ROUTE_TAIL_SKIP=0` against the default 7), on a 16 GB Blackwell card under Linux: here the default is **+31% short decode and +37% decode after a 6K prompt**, prompt speed unchanged. **Machine:** RTX 5070 Ti 16 GB (PCIe 4.0 x16), Ryzen 7 5800X3D (AVX2, no AVX-512), 80 GiB DDR4-3200, Ubuntu 26.04, driver 595.99.02, CUDA 13.1. Strata 0.1.44.1 source build (`296b59d2`), Swift 1.5 IQ3_S, setup's settings at 262,144 tokens (int8 KV, 32,768 cells resident, `--spec 4 --spec-min-p 0.5`, MTP), 3,838 experts in VRAM. The arms differ only in the environment variable (the default arm logs `STRATA_ROUTE_TAIL_SKIP=7 is ON (default)`). **Method:** a fresh server per arm and round, 4 rounds in the order AB, BA, AB, BA, one discarded warm-up per start; each round eight different short prompts and one 6,345-token prompt, 256 new tokens each, greedy, thinking off. "Pooled" = sum of the engine's `predicted_n` / sum of `predicted_ms` over the eight short answers. | Round | Pooled short decode, skip 7 (default) | skip 0 | skip 0 vs 7 | 6,345-token prompt: decode 7 / 0 | prompt tok/s 7 / 0 | | --- | ---: | ---: | ---: | --- | --- | | 0 | 79.05 | 60.34 | -23.7% | 65.7 / 54.5 | 2,702 / 2,679 | | 1 | 79.87 | 60.15 | -24.7% | 66.2 / 49.9 | 2,716 / 2,669 | | 2 | 76.52 | 59.89 | -21.7% | 62.0 / 46.7 | 2,718 / 2,688 | | 3 | 78.41 | 60.08 | -23.4% | 71.2 / 44.0 | 2,701 / 2,687 | | median | 78.73 | 60.11 | -23.5% (0 of 4 faster) | 65.95 / 48.30 | 2,709 / 2,683 | Draft acceptance was about the same (4,760 of 6,870 with the skip, 4,873 of 7,118 without), and 2 of the 36 answer pairs are byte-identical, as expected since the skip changes answers. Like your table, I left the decode hit-rate lines out: they are not comparable between the two settings. Not tested: a 352K-token real conversation like yours, warm-prefix runs, other ranks (8, 9), or other model sizes.
Author
Owner

@enkynakamura commented on GitHub (Oct 15, 2026):

Follow-up with a teacher-forced measurement in my regime (same machine and config as the first post), since the quality question came up.

Method. STRATA_LOGPOS + STRATA_LOGPOS_TOPK=64, through the verify windows: the 352,068-token conversation is read batched, then a fixed message (two model-written summaries, Italian, numbers and file names) is read through the windows: 7,548 forced tokens including the assistant header (--short-read 16384, cut there with "strata_prefix": {"messages": 109}), one request per fresh engine, temperature 0. Arms: A = STRATA_ROUTE_TAIL_SKIP=0, B = default (7). KL is computed on P's top-64 ids (98.7% of P's mass), both sides renormalised there, so it approximates the full-vocabulary KL.

Determinism. Same config and same expert-cache size gives byte-identical logpos files (B3 = B4, 7,548 lines, cmp equal). One A session (A4) started with ~150 MiB less free VRAM, and --expert-cache auto gave 2,306 slots instead of 2,401 (only 1267 MiB free once the slots are written; shrinking the expert cache). That pair therefore shows the size of the cache/CPU rounding change, not run-to-run noise.

pair (7,548 forced tokens) top-1 agreement KL, mean KL, median / p99 mean |Δ logp(target)| perplexity of the forced text
A3 vs B3 (skip; same 2,401 slots) 90.1% 0.167 0.011 / 3.24 0.307 2.717 → 2.710 (×0.997)
A3 vs A4 (no skip; 2,401 vs 2,306 slots) 94.7% 0.069 0.0023 / 1.72 0.160 2.717 → 2.698 (×0.993)
B3 vs B4 (same config) 100% 0 0 / 0 0 identical

Reading.

  • In this regime the skip moves the distributions measurably: about 2.4x the KL of moving 95 experts from the GPU cache to the CPU, and one forced token in ten gets a different top-1. That is far above the 0.003-0.006 in DETAILS.md. That measurement is a different regime (short chat prompts, 3060/A4000, 75-90% hit rate; here 352K context, UD-IQ4_XS, a 56-59% decode hit rate without the skip on the 352K benchmark, and ~78 skipped experts per token: 589,668 in this request), so I can't say which factor drives the difference.
  • The perplexity of the forced text does not get worse (×0.997, inside the ×0.993 of the cache-size change). The skip reshapes the distribution, but the actual next token is not less likely on average.
  • The divergence does not grow along the 7.5K tokens (per-1,000-token means 0.07-0.35, no trend), so it is not an accumulating state error.

Side note for anyone chasing reproducibility: with --expert-cache auto, the slot count, and therefore the bits of the answer, depends on how much VRAM other programs hold when the engine starts.

Scripts and per-token metrics attached (kl-2482.zip). The raw logpos files are not: their token ids would reproduce the private conversation. Not done: other ranks (8, 9), the full-vocabulary KL, other contexts, other cards.

Next: a paired exact-answer reasoning test (HMMT, temperature 0, fixed cache size) in the same 352K regime, to see whether the different distribution changes task accuracy.

kl-2482.zip

<!-- gh-comment-id:6193013443 --> @enkynakamura commented on GitHub (Oct 15, 2026): Follow-up with a teacher-forced measurement in my regime (same machine and config as the first post), since the quality question came up. **Method.** `STRATA_LOGPOS` + `STRATA_LOGPOS_TOPK=64`, through the verify windows: the 352,068-token conversation is read batched, then a fixed message (two model-written summaries, Italian, numbers and file names) is read through the windows: 7,548 forced tokens including the assistant header (`--short-read 16384`, cut there with `"strata_prefix": {"messages": 109}`), one request per fresh engine, temperature 0. Arms: A = `STRATA_ROUTE_TAIL_SKIP=0`, B = default (7). KL is computed on P's top-64 ids (98.7% of P's mass), both sides renormalised there, so it approximates the full-vocabulary KL. **Determinism.** Same config and same expert-cache size gives byte-identical logpos files (B3 = B4, 7,548 lines, `cmp` equal). One A session (A4) started with ~150 MiB less free VRAM, and `--expert-cache auto` gave 2,306 slots instead of 2,401 (`only 1267 MiB free once the slots are written; shrinking the expert cache`). That pair therefore shows the size of the cache/CPU rounding change, not run-to-run noise. | pair (7,548 forced tokens) | top-1 agreement | KL, mean | KL, median / p99 | mean \|Δ logp(target)\| | perplexity of the forced text | |---|---|---|---|---|---| | A3 vs **B3** (skip; same 2,401 slots) | **90.1%** | **0.167** | 0.011 / 3.24 | 0.307 | 2.717 → 2.710 (×0.997) | | A3 vs A4 (no skip; 2,401 vs 2,306 slots) | 94.7% | 0.069 | 0.0023 / 1.72 | 0.160 | 2.717 → 2.698 (×0.993) | | B3 vs B4 (same config) | 100% | 0 | 0 / 0 | 0 | identical | **Reading.** - In this regime the skip moves the distributions measurably: about 2.4x the KL of moving 95 experts from the GPU cache to the CPU, and one forced token in ten gets a different top-1. That is far above the 0.003-0.006 in DETAILS.md. That measurement is a different regime (short chat prompts, 3060/A4000, 75-90% hit rate; here 352K context, UD-IQ4_XS, a 56-59% decode hit rate without the skip on the 352K benchmark, and ~78 skipped experts per token: 589,668 in this request), so I can't say which factor drives the difference. - The perplexity of the forced text does not get worse (×0.997, inside the ×0.993 of the cache-size change). The skip reshapes the distribution, but the actual next token is not less likely on average. - The divergence does not grow along the 7.5K tokens (per-1,000-token means 0.07-0.35, no trend), so it is not an accumulating state error. Side note for anyone chasing reproducibility: with `--expert-cache auto`, the slot count, and therefore the bits of the answer, depends on how much VRAM other programs hold when the engine starts. Scripts and per-token metrics attached (kl-2482.zip). The raw logpos files are not: their token ids would reproduce the private conversation. Not done: other ranks (8, 9), the full-vocabulary KL, other contexts, other cards. Next: a paired exact-answer reasoning test (HMMT, temperature 0, fixed cache size) in the same 352K regime, to see whether the different distribution changes task accuracy. [kl-2482.zip](https://github.com/user-attachments/files/33494433/kl-2482.zip)
Author
Owner

@enkynakamura commented on GitHub (Oct 15, 2026):

Second follow-up: does the different distribution change task accuracy? A paired exact-answer test in the same regime.

Question. The teacher-forced numbers above say that TAIL_SKIP=7 moves the distribution (KL 0.167, one top-1 in ten differs). That alone does not say whether the model reasons worse or only differently, so here is a task check.

Method.

  • HMMT February 2026, the 33 problems of MathArena's hmmt_feb_2026 (answers checked against the dataset).
  • Every request: my usual system prompt (~6K characters of rules, plus a "final answer in \boxed{}" line), then the same conversation as above (353,465 tokens together with the system prompt), then one problem. "strata_prefix" pins the checkpoint after the conversation, so each problem resumes from it (cache_n 353,465) and only its own tokens are new.
  • Temperature 0, thinking on, max_tokens 16,384, problems in the same order in both arms.
  • One engine start per arm: A = STRATA_ROUTE_TAIL_SKIP=0, B = default (=7 is ON in the log). Identical config otherwise, with the expert cache set to a fixed size so that both arms get the same one (--expert-cache 2401, which this pack turns into 2,496 slots / 5.62 GiB; with auto the size depends on free VRAM at start, see the note above).
  • Problems are numbered P1-P33 below (not issue numbers).
  • Grading: exact string, then sympy. Every answer the script could not grade was checked by hand.

Score.

A (skip off) B (skip on)
correct, automatic grading 23 / 33 21 / 33
correct after checking by hand 23 23
wrong 5 5
no answer (4 cut at 16,384 tokens, plus P9: see update) 5 5

The two hand corrections are both in B:

  • P7: B answered \sqrt[3]{1-\frac{\sqrt{6}}{3}}, which is exactly (3+\sqrt{6})^{-1/3} (the cubes are equal; sympy agrees to 30 digits). A grading artefact: the grader cannot compare those forms.
  • P1: B derived -1/21 correctly but left out the \boxed{}. A formatting miss by the model, not a wrong result; it counts against B under strict grading.

Where the arms disagree (on substance): 2 problems each way.

  • Only A right: P8 (B cut at 16K tokens), P18 (B answered 10400, expected 6992).
  • Only B right: P7 (A cut at 16K), P19 (A cut at 16K, B found 499).

On the strict automatic grading it is 3 vs 1 (P1 moves to "only A"). Exact McNemar test: p = 0.63 on 3 vs 1, p = 1 on 2 vs 2. No detectable change in accuracy on this set.

SAME ANSWERS, DIFFERENT REASONING. None of the 33 answer pairs is textually identical. Of the 25 problems where both arms gave a boxed answer, 23 have the same answer (the two exceptions: P17, both wrong with different values, and P18). This matches the teacher-forced measurement: the token-level path changes, the outcome mostly does not.

Speed and length.

  • Decode: B is faster on 29 of 33 problems; the median per-problem speed ratio is 1.11 (arm medians 92.1 vs 82.8 tok/s). Draft acceptance is unchanged (86.0% vs 85.8%).
  • Reasoning length: on the 26 problems both arms finished, B wrote more on 14 and less on 12 (sign test p = 0.85), so B is not longer systematically. In total B generated 11.7% more tokens (239,633 vs 214,497); 20,357 of the 25,136-token difference come from two problems (P6: 3,532 vs 13,858; P31: 3,921 vs 13,952). Faster decode times more tokens left the total wall time equal (47.5 vs 47.4 min).
  • One B answer (P9) ran into a repetition loop ("999…") until the limit. A also failed P9, stopping with finish=length at 7,606 tokens and no content, which I have not looked into. One case each, so it says nothing either way. See the update below.

Limits. 33 problems only show a large effect; a small accuracy change cannot be excluded. One run per arm: earlier runs of this setup were byte-identical for a given config (B3 = B4 above), but that was not re-checked for these generations. The cache was larger than my daily one (2,496 vs 2,401 slots), so the skip may have had fewer misses to act on than in daily use; by how much was not measured.

Summary. In this regime the default skip changes how the model gets there (distribution and wording) but, on HMMT, not whether it gets there: 23 vs 23 on substance, 2 vs 2 on the problems where the arms disagree, with ~11% faster decode. I am keeping it on.

Per-problem table attached (hmmt-2482.csv): answers, grading, tokens, finish reason and speed for both arms.
hmmt-2482.csv

Update on P9. I looked into it: both arms failed it the same way. The model started writing the value as a decimal and repeated one digit until the server's #606 guard (256 identical tokens in a row) ended the reply as finish=length. A was still in the thinking ("50.000…", 7,606 tokens, no answer), B was in the answer ("49.999…", 13,185 tokens). Both end with exactly 255 identical digits, which matches the guard dropping the 256th token before it is detokenized (the guard's console message was not kept, so this is from the output and the code). Same failure in both arms, not a skip effect.

Update 2: determinism and speed noise. I re-ran arm B from a fresh engine start (same config and 2,496 slots, three and a half hours later, with other engine work in between). All 33 replies are byte-identical to the first B run (answer, thinking, token count, drafts accepted), and so are the engine's per-request counters (hit rate, lookups, VRAM exchanges, file reads). So the determinism that Limits calls not re-checked is now checked, and every textual difference between A and B comes from the skip, not from run-to-run noise.

Decode speed did not repeat as exactly: the rerun was slower on 33 of 33 problems, by a median of 1.7%, 10-14% on P1-P6 and 1-2% from P17 on. The engine did the same work both times, so the cause is outside it; I have not identified it. Against A, the rerun gives a median per-problem ratio of 1.08 (faster on 25 of 33) instead of 1.11, and 49.0 min total wall time vs 47.4. So the skip's decode gain on this set is 8-11% depending on which B run is used, and per-problem speed differences up to ~14% can be run-to-run.

<!-- gh-comment-id:6196460634 --> @enkynakamura commented on GitHub (Oct 15, 2026): Second follow-up: does the different distribution change task accuracy? A paired exact-answer test in the same regime. **Question.** The teacher-forced numbers above say that `TAIL_SKIP=7` moves the distribution (KL 0.167, one top-1 in ten differs). That alone does not say whether the model reasons worse or only differently, so here is a task check. **Method.** - HMMT February 2026, the 33 problems of MathArena's `hmmt_feb_2026` (answers checked against the dataset). - Every request: my usual system prompt (~6K characters of rules, plus a "final answer in `\boxed{}`" line), then the same conversation as above (353,465 tokens together with the system prompt), then one problem. `"strata_prefix"` pins the checkpoint after the conversation, so each problem resumes from it (`cache_n` 353,465) and only its own tokens are new. - Temperature 0, thinking on, `max_tokens` 16,384, problems in the same order in both arms. - One engine start per arm: A = `STRATA_ROUTE_TAIL_SKIP=0`, B = default (`=7 is ON` in the log). Identical config otherwise, with the expert cache set to a fixed size so that both arms get the same one (`--expert-cache 2401`, which this pack turns into 2,496 slots / 5.62 GiB; with `auto` the size depends on free VRAM at start, see the note above). - Problems are numbered P1-P33 below (not issue numbers). - Grading: exact string, then sympy. Every answer the script could not grade was checked by hand. **Score.** | | A (skip off) | B (skip on) | |---|---|---| | correct, automatic grading | **23** / 33 | **21** / 33 | | correct after checking by hand | **23** | **23** | | wrong | 5 | 5 | | no answer (4 cut at 16,384 tokens, plus P9: see update) | 5 | 5 | The two hand corrections are both in B: - P7: B answered `\sqrt[3]{1-\frac{\sqrt{6}}{3}}`, which is exactly `(3+\sqrt{6})^{-1/3}` (the cubes are equal; sympy agrees to 30 digits). A grading artefact: the grader cannot compare those forms. - P1: B derived -1/21 correctly but left out the `\boxed{}`. A formatting miss by the model, not a wrong result; it counts against B under strict grading. **Where the arms disagree** (on substance): 2 problems each way. - Only A right: P8 (B cut at 16K tokens), P18 (B answered 10400, expected 6992). - Only B right: P7 (A cut at 16K), P19 (A cut at 16K, B found 499). On the strict automatic grading it is 3 vs 1 (P1 moves to "only A"). Exact McNemar test: p = 0.63 on 3 vs 1, p = 1 on 2 vs 2. No detectable change in accuracy on this set. **SAME ANSWERS, DIFFERENT REASONING.** None of the 33 answer pairs is textually identical. Of the 25 problems where both arms gave a boxed answer, 23 have the same answer (the two exceptions: P17, both wrong with different values, and P18). This matches the teacher-forced measurement: the token-level path changes, the outcome mostly does not. **Speed and length.** - Decode: B is faster on 29 of 33 problems; the median per-problem speed ratio is 1.11 (arm medians 92.1 vs 82.8 tok/s). Draft acceptance is unchanged (86.0% vs 85.8%). - Reasoning length: on the 26 problems both arms finished, B wrote more on 14 and less on 12 (sign test p = 0.85), so B is not longer systematically. In total B generated 11.7% more tokens (239,633 vs 214,497); 20,357 of the 25,136-token difference come from two problems (P6: 3,532 vs 13,858; P31: 3,921 vs 13,952). Faster decode times more tokens left the total wall time equal (47.5 vs 47.4 min). - ~~One B answer (P9) ran into a repetition loop ("999…") until the limit. A also failed P9, stopping with `finish=length` at 7,606 tokens and no content, which I have not looked into. One case each, so it says nothing either way.~~ See the update below. **Limits.** 33 problems only show a large effect; a small accuracy change cannot be excluded. One run per arm: earlier runs of this setup were byte-identical for a given config (B3 = B4 above), but that was not re-checked for these generations. The cache was larger than my daily one (2,496 vs 2,401 slots), so the skip may have had fewer misses to act on than in daily use; by how much was not measured. **Summary.** In this regime the default skip changes *how* the model gets there (distribution and wording) but, on HMMT, not *whether* it gets there: 23 vs 23 on substance, 2 vs 2 on the problems where the arms disagree, with ~11% faster decode. I am keeping it on. Per-problem table attached (hmmt-2482.csv): answers, grading, tokens, finish reason and speed for both arms. [hmmt-2482.csv](https://github.com/user-attachments/files/33502703/hmmt-2482.csv) **Update on P9.** I looked into it: both arms failed it the same way. The model started writing the value as a decimal and repeated one digit until the server's #606 guard (256 identical tokens in a row) ended the reply as `finish=length`. A was still in the thinking ("50.000…", 7,606 tokens, no answer), B was in the answer ("49.999…", 13,185 tokens). Both end with exactly 255 identical digits, which matches the guard dropping the 256th token before it is detokenized (the guard's console message was not kept, so this is from the output and the code). Same failure in both arms, not a skip effect. **Update 2: determinism and speed noise.** I re-ran arm B from a fresh engine start (same config and 2,496 slots, three and a half hours later, with other engine work in between). All 33 replies are byte-identical to the first B run (answer, thinking, token count, drafts accepted), and so are the engine's per-request counters (hit rate, lookups, VRAM exchanges, file reads). So the determinism that Limits calls not re-checked is now checked, and every textual difference between A and B comes from the skip, not from run-to-run noise. Decode speed did not repeat as exactly: the rerun was slower on 33 of 33 problems, by a median of 1.7%, 10-14% on P1-P6 and 1-2% from P17 on. The engine did the same work both times, so the cause is outside it; I have not identified it. Against A, the rerun gives a median per-problem ratio of 1.08 (faster on 25 of 33) instead of 1.11, and 49.0 min total wall time vs 47.4. So the skip's decode gain on this set is 8-11% depending on which B run is used, and per-problem speed differences up to ~14% can be run-to-run.
Author
Owner

@qiuzan2001 commented on GitHub (Oct 16, 2026):

On the method side, for A/Bs like this one, in case it is useful: I have been computing a noise floor per PC from pairs of profile runs with the same settings, and judging each change against it. On an RTX 5070 Ti + 5800X3D (Swift 1.5 IQ3_S) the floor came out at 3.3 % for short chats, 3.0 % for a 32K context and 14.6 % for agent turns (3K to 15K tokens of context), so your +6 % warm decode would be outside the chat floor here, and a 5 % change on agent turns inside it; for the agent turns a sign test over the six turns (6 of 6 in one direction, p = 0.031) is what separates a real small change from the spread. The tool that does this from tools/strata_profile.py reports is Strata Profile Studio (Compare view: per workload, per turn, with the settings that differ highlighted). It is not tested on Windows on hardware yet; python3 studio.py --host-probe says what it can read on a given PC.

<!-- gh-comment-id:6207511589 --> @qiuzan2001 commented on GitHub (Oct 16, 2026): On the method side, for A/Bs like this one, in case it is useful: I have been computing a noise floor per PC from pairs of profile runs with the same settings, and judging each change against it. On an RTX 5070 Ti + 5800X3D (Swift 1.5 IQ3_S) the floor came out at 3.3 % for short chats, 3.0 % for a 32K context and 14.6 % for agent turns (3K to 15K tokens of context), so your +6 % warm decode would be outside the chat floor here, and a 5 % change on agent turns inside it; for the agent turns a sign test over the six turns (6 of 6 in one direction, p = 0.031) is what separates a real small change from the spread. The tool that does this from `tools/strata_profile.py` reports is [Strata Profile Studio](https://github.com/qiuzan2001/strata-profile-studio) (Compare view: per workload, per turn, with the settings that differ highlighted). It is not tested on Windows on hardware yet; `python3 studio.py --host-probe` says what it can read on a given PC.
Author
Owner

@enkynakamura commented on GitHub (Oct 16, 2026):

Thanks, I tried it, with the engine session as the unit: on this PC the rerun of HMMT arm B (Update 2 above) did identical work in a whole session that was slower, so pairs of requests inside one session would miss that kind of shift.

Setup. 8 fresh server starts in the order A B B A A B B A (the scheme of Strata's tools/ab_engine.py: one server per arm and round, arms alternating). A = STRATA_ROUTE_TAIL_SKIP=0, B = default (7); same config otherwise (0.1.44, UD-IQ4_XS, a fixed --expert-cache that gives 2,496 slots as in the HMMT runs, so the slot count does not follow free VRAM). Each session: ab_engine's warm-up and short set (3 chat prompts and the 6,000-word prompt, 256 tokens, greedy, thinking off), then the 352K conversation of the first post (one cold read, then 3 warm 512-token runs on the cached prefix). All 8 sessions logged 2,496 slots, the skip line only in B, and exactly the script's 8 requests on the server's counter.

Floor = the largest difference between two sessions with the same settings (your definition, without the 3% minimum; with it, no result below changes side). Effect = B median vs A median. p = exact permutation test over the 8 sessions; with 4 per arm the smallest possible two-sided p is 2/70 = 0.029.

metric (tok/s) A, skip off (4 sessions) B, skip on (4 sessions) floor B vs A p
chat 0, decode 83.0-83.5 95.3-96.6 1.4% +15.9% 0.029
chat 1, decode 67.5-68.6 71.9-73.1 1.7% +6.6% 0.029
chat 2, decode 62.6-63.1 71.6-72.6 1.4% +14.2% 0.029
6,345-token prompt, decode 57.6-58.0 62.2-62.4 0.7% +7.9% 0.029
6,345-token prompt, prompt read 974-1007 980-998 3.3% -0.1% 0.91
352K, cold read 2254-2328 2310-2336 3.2% +0.7% 0.23
352K, cold decode 49.4-53.7 61.8-64.9 8.3% +19.5% 0.029
352K, warm decode (median of 3 per session) 51.3-54.7 62.8-63.7 6.4% +16.3% 0.029

Every decode metric: all 4 B sessions above all 4 A sessions, outside the floor. Prompt reading: inside the floor, as expected for a skip that acts only in verify windows.

Notes:

  • The 352K floors come from one session: A0, the first of the run, was slower on the 352K part only (warm decode -6%); its short-set numbers are within 1.6% of the other A sessions, and A1-A3 agree within 0.4% on the 352K warm decode.
  • For chat 1, chat 2 and the long prompt the arms wrote different answers (254 vs 251, 212 vs 202, 131 vs 118 tokens), so those rates compare slightly different text; chat 0 and all 352K runs have the same length in both arms.
  • The 352K effect here (+16%) is larger than the +6% of the first post. That run used --expert-cache auto (2,401 slots), one or two sessions per arm and no short set before the conversation; I can't say which of these differences matters. This run is the better-controlled one.

Per-request numbers attached ( ab-floor-2482.csv )

Profile Studio: I did not use it, because it reads reports from tools/strata_profile.py, which I don't find in 0.1.44 or in tools/ on main. Is it in a PR?

<!-- gh-comment-id:6214545761 --> @enkynakamura commented on GitHub (Oct 16, 2026): Thanks, I tried it, with the engine session as the unit: on this PC the rerun of HMMT arm B (Update 2 above) did identical work in a whole session that was slower, so pairs of requests inside one session would miss that kind of shift. **Setup.** 8 fresh server starts in the order A B B A A B B A (the scheme of Strata's `tools/ab_engine.py`: one server per arm and round, arms alternating). A = `STRATA_ROUTE_TAIL_SKIP=0`, B = default (7); same config otherwise (0.1.44, UD-IQ4_XS, a fixed `--expert-cache` that gives 2,496 slots as in the HMMT runs, so the slot count does not follow free VRAM). Each session: ab_engine's warm-up and short set (3 chat prompts and the 6,000-word prompt, 256 tokens, greedy, thinking off), then the 352K conversation of the first post (one cold read, then 3 warm 512-token runs on the cached prefix). All 8 sessions logged 2,496 slots, the skip line only in B, and exactly the script's 8 requests on the server's counter. Floor = the largest difference between two sessions with the same settings (your definition, without the 3% minimum; with it, no result below changes side). Effect = B median vs A median. p = exact permutation test over the 8 sessions; with 4 per arm the smallest possible two-sided p is 2/70 = 0.029. | metric (tok/s) | A, skip off (4 sessions) | B, skip on (4 sessions) | floor | B vs A | p | |---|---|---|---|---|---| | chat 0, decode | 83.0-83.5 | 95.3-96.6 | 1.4% | +15.9% | 0.029 | | chat 1, decode | 67.5-68.6 | 71.9-73.1 | 1.7% | +6.6% | 0.029 | | chat 2, decode | 62.6-63.1 | 71.6-72.6 | 1.4% | +14.2% | 0.029 | | 6,345-token prompt, decode | 57.6-58.0 | 62.2-62.4 | 0.7% | +7.9% | 0.029 | | 6,345-token prompt, prompt read | 974-1007 | 980-998 | 3.3% | -0.1% | 0.91 | | 352K, cold read | 2254-2328 | 2310-2336 | 3.2% | +0.7% | 0.23 | | 352K, cold decode | 49.4-53.7 | 61.8-64.9 | 8.3% | +19.5% | 0.029 | | 352K, warm decode (median of 3 per session) | 51.3-54.7 | 62.8-63.7 | 6.4% | +16.3% | 0.029 | Every decode metric: all 4 B sessions above all 4 A sessions, outside the floor. Prompt reading: inside the floor, as expected for a skip that acts only in verify windows. Notes: - The 352K floors come from one session: A0, the first of the run, was slower on the 352K part only (warm decode -6%); its short-set numbers are within 1.6% of the other A sessions, and A1-A3 agree within 0.4% on the 352K warm decode. - For chat 1, chat 2 and the long prompt the arms wrote different answers (254 vs 251, 212 vs 202, 131 vs 118 tokens), so those rates compare slightly different text; chat 0 and all 352K runs have the same length in both arms. - The 352K effect here (+16%) is larger than the +6% of the first post. That run used `--expert-cache auto` (2,401 slots), one or two sessions per arm and no short set before the conversation; I can't say which of these differences matters. This run is the better-controlled one. Per-request numbers attached ( [ab-floor-2482.csv](https://github.com/user-attachments/files/33543627/ab-floor-2482.csv) ) Profile Studio: I did not use it, because it reads reports from `tools/strata_profile.py`, which I don't find in 0.1.44 or in `tools/` on main. Is it in a PR?
Author
Owner

@qiuzan2001 commented on GitHub (Oct 16, 2026):

Thank you for the session-level run. Eight fresh server starts in A B B A order, with every decode metric of all four B sessions above all four A sessions and outside the floor, is a cleaner test than pairs of requests inside one session. The Studio's noise floor is also built from whole runs (each profile run is one server session), so a shift between sessions shows up there as noise, as in your rerun; it has no A B B A mode of its own.

On the tool: you are right, tools/strata_profile.py is in PR #2660 and not in 0.1.44. Studio 0.1.1 no longer needs it from Strata: it carries a copy of the tool and runs it itself against the running server, with Strata's tools/ folder for the shared parts (--strata-root <Strata folder> when the run config is not inside it). The release: https://github.com/qiuzan2001/strata-profile-studio/releases/tag/v0.1.1.

<!-- gh-comment-id:6224853067 --> @qiuzan2001 commented on GitHub (Oct 16, 2026): Thank you for the session-level run. Eight fresh server starts in A B B A order, with every decode metric of all four B sessions above all four A sessions and outside the floor, is a cleaner test than pairs of requests inside one session. The Studio's noise floor is also built from whole runs (each profile run is one server session), so a shift between sessions shows up there as noise, as in your rerun; it has no A B B A mode of its own. On the tool: you are right, `tools/strata_profile.py` is in PR #2660 and not in 0.1.44. Studio 0.1.1 no longer needs it from Strata: it carries a copy of the tool and runs it itself against the running server, with Strata's `tools/` folder for the shared parts (`--strata-root <Strata folder>` when the run config is not inside it). The release: https://github.com/qiuzan2001/strata-profile-studio/releases/tag/v0.1.1.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271085039 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1012
No description provided.