[GH-ISSUE #1884] 0.1.42 on a V100 (99.9% GPU hit rate, rest pinned in RAM): route tail skip is ~1–2% slower decode, from lower draft acceptance #746

Closed
opened 2026-11-04 01:45:32 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @christopherrobertbrooks-tech on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1884

Tested v0.1.42 against v0.1.41 on one Tesla V100-PCIe-32GB (i7-13700KF, 16 GB RAM, low-RAM mode), Coder IQ1_M with --vision on, so the cache holds 11,644 of 12,288 experts and the rest sit in page-locked RAM ("resident RAM mode", no file reads). Same config for both, STRATA_SM70_TABLE=1, STRATA_PREFILL_CPU_SHARE=0, built with -DSTRATA_EXPERIMENTAL_SM60=ON. 3 interleaved rounds, 3 runs per size, medians:

prompt 0.1.41 decode 0.1.42 decode
256 78.4 76.5 −2.4%
1,000 77.6 77.0 −0.8%
4,096 78.4 76.9 −1.9%
16,384 75.4 74.2 −1.6%

Prompt time was unchanged at every size. The tail skip did fire (about 1,000 missed experts skipped per run), but the GPU hit rate was already 0.999, and draft acceptance fell from 70.1% to 68.2%, which seems to cost more than the skip saves when the misses come from pinned RAM rather than PCIe. This matches the notes ("a machine that holds nearly every expert gains nothing"). Maybe the default could also stay off in resident RAM mode, the way it already does when every expert is in VRAM? We're staying on 0.1.41 for now; we didn't measure 0.1.42 with STRATA_ROUTE_TAIL_SKIP=0.

Originally created by @christopherrobertbrooks-tech on GitHub (Oct 10, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1884 Tested v0.1.42 against v0.1.41 on one Tesla V100-PCIe-32GB (i7-13700KF, 16 GB RAM, low-RAM mode), Coder IQ1_M with `--vision` on, so the cache holds 11,644 of 12,288 experts and the rest sit in page-locked RAM ("resident RAM mode", no file reads). Same config for both, `STRATA_SM70_TABLE=1`, `STRATA_PREFILL_CPU_SHARE=0`, built with `-DSTRATA_EXPERIMENTAL_SM60=ON`. 3 interleaved rounds, 3 runs per size, medians: | prompt | 0.1.41 decode | 0.1.42 decode | | |---|---|---|---| | 256 | 78.4 | 76.5 | −2.4% | | 1,000 | 77.6 | 77.0 | −0.8% | | 4,096 | 78.4 | 76.9 | −1.9% | | 16,384 | 75.4 | 74.2 | −1.6% | Prompt time was unchanged at every size. The tail skip did fire (about 1,000 missed experts skipped per run), but the GPU hit rate was already 0.999, and draft acceptance fell from 70.1% to 68.2%, which seems to cost more than the skip saves when the misses come from pinned RAM rather than PCIe. This matches the notes ("a machine that holds nearly every expert gains nothing"). Maybe the default could also stay off in resident RAM mode, the way it already does when every expert is in VRAM? We're staying on 0.1.41 for now; we didn't measure 0.1.42 with `STRATA_ROUTE_TAIL_SKIP=0`.
Author
Owner

@CC-David-CC commented on GitHub (Oct 10, 2026):

please ask your agent to bisect the changes between 1.41 and 1.42 and find which change caused the regression

<!-- gh-comment-id:6103158608 --> @CC-David-CC commented on GitHub (Oct 10, 2026): please ask your agent to bisect the changes between 1.41 and 1.42 and find which change caused the regression
Author
Owner

@christopherrobertbrooks-tech commented on GitHub (Oct 11, 2026):

Done. No bisect was needed in the end. Same machine and configs as above, v0.1.42 rebuilt from the tag, three arms with the order rotated each round, 3 rounds × 3 runs per size, median decode tok/s (16K: round 1 only):

prompt 0.1.41 0.1.42 0.1.42, STRATA_ROUTE_TAIL_SKIP=0
256 78.4 76.5 (−2.4%) 78.4 (0.0%)
1,000 77.6 77.0 (−0.8%) 77.6 (0.0%)
4,096 78.3 77.0 (−1.7%) 78.3 (0.0%)
16,384 75.4 74.2 (−1.6%) 75.3 (−0.1%)

Prompt time was the same in all three. With the tail skip off, 0.1.42 matches 0.1.41 run for run: the same speed, and the same draft counts in all 30 runs (acceptance 70.1% for both, 68.2% with the skip on). So the regression is b4e3407 (STRATA_ROUTE_TAIL_SKIP=7 on by default on CUDA serve, merged in 136d33c); 65268d9 only added the skip as an opt-in, and none of the other commits made a measurable difference here. The new PCIe share default never moved on this machine: the card sits in an x4 slot, the start-up probe measures 3.3 GB/s host→device (pcie_frac 0.09), and no PCIe share: line was printed.

That is the opposite of #1879 (V100-SXM2 16 GB, decode +34…+62% on 0.1.42), where far more experts are missed and both new defaults have much more to work with. Here 11,644 of 12,288 experts are in VRAM and the rest in pinned RAM, so the skip saves little and the lower acceptance costs more. That's why we'd suggest keeping the default off in resident RAM mode, the way b4e3407 already does when every expert is in VRAM.

<!-- gh-comment-id:6103698293 --> @christopherrobertbrooks-tech commented on GitHub (Oct 11, 2026): Done. No bisect was needed in the end. Same machine and configs as above, v0.1.42 rebuilt from the tag, three arms with the order rotated each round, 3 rounds × 3 runs per size, median decode tok/s (16K: round 1 only): | prompt | 0.1.41 | 0.1.42 | 0.1.42, `STRATA_ROUTE_TAIL_SKIP=0` | |---|---|---|---| | 256 | 78.4 | 76.5 (−2.4%) | 78.4 (0.0%) | | 1,000 | 77.6 | 77.0 (−0.8%) | 77.6 (0.0%) | | 4,096 | 78.3 | 77.0 (−1.7%) | 78.3 (0.0%) | | 16,384 | 75.4 | 74.2 (−1.6%) | 75.3 (−0.1%) | Prompt time was the same in all three. With the tail skip off, 0.1.42 matches 0.1.41 run for run: the same speed, and the same draft counts in all 30 runs (acceptance 70.1% for both, 68.2% with the skip on). So the regression is b4e3407 (`STRATA_ROUTE_TAIL_SKIP=7` on by default on CUDA serve, merged in 136d33c); 65268d9 only added the skip as an opt-in, and none of the other commits made a measurable difference here. The new PCIe share default never moved on this machine: the card sits in an x4 slot, the start-up probe measures 3.3 GB/s host→device (`pcie_frac 0.09`), and no `PCIe share:` line was printed. That is the opposite of #1879 (V100-SXM2 16 GB, decode +34…+62% on 0.1.42), where far more experts are missed and both new defaults have much more to work with. Here 11,644 of 12,288 experts are in VRAM and the rest in pinned RAM, so the skip saves little and the lower acceptance costs more. That's why we'd suggest keeping the default off in resident RAM mode, the way b4e3407 already does when every expert is in VRAM.
Author
Owner

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

Thank you, this is a very clean report: the interleaved table, the acceptance numbers (70.1% to 68.2%) and the observation that the notes already say "a machine that holds nearly every expert gains nothing" made this quick to place.

You are right. The tail-skip default was only switched off when every expert is in VRAM. With 11,644 of 12,288 experts cached the few misses are cheap, and the skip costs more draft acceptance than it saves. 0.1.43 keeps the default off when 90% or more of all the experts are in the GPU cache, in any mode (the cost depends on the miss rate, not on where the misses come from). The start-up log says so in one line, and an explicit STRATA_ROUTE_TAIL_SKIP=7 still turns it on. The cards where the tail skip gave +13-16% in our tests (RTX 3060 12 GB, RTX A4000 16 GB) hold far less than 90% of the experts, so they keep the default.

One honest limit: 90% is a judgement, not a measured crossing point. Yours is the only machine we know of that holds that many experts of a real model, so we could not measure on one like it. If you have time to run it again on 0.1.43, the log line STRATA_ROUTE_TAIL_SKIP is off by default: 94.8% of the experts are in the GPU cache should appear and decode should be back at the 0.1.41 numbers; if it is not, please tell us. STRATA_TAIL_SKIP_MAX_CACHED= moves the line (101 = never) if you want to try another value.

<!-- gh-comment-id:6110168786 --> @Niko1221 commented on GitHub (Oct 11, 2026): Thank you, this is a very clean report: the interleaved table, the acceptance numbers (70.1% to 68.2%) and the observation that the notes already say "a machine that holds nearly every expert gains nothing" made this quick to place. You are right. The tail-skip default was only switched off when every expert is in VRAM. With 11,644 of 12,288 experts cached the few misses are cheap, and the skip costs more draft acceptance than it saves. 0.1.43 keeps the default off when 90% or more of all the experts are in the GPU cache, in any mode (the cost depends on the miss rate, not on where the misses come from). The start-up log says so in one line, and an explicit STRATA_ROUTE_TAIL_SKIP=7 still turns it on. The cards where the tail skip gave +13-16% in our tests (RTX 3060 12 GB, RTX A4000 16 GB) hold far less than 90% of the experts, so they keep the default. One honest limit: 90% is a judgement, not a measured crossing point. Yours is the only machine we know of that holds that many experts of a real model, so we could not measure on one like it. If you have time to run it again on 0.1.43, the log line `STRATA_ROUTE_TAIL_SKIP is off by default: 94.8% of the experts are in the GPU cache` should appear and decode should be back at the 0.1.41 numbers; if it is not, please tell us. STRATA_TAIL_SKIP_MAX_CACHED=<percent> moves the line (101 = never) if you want to try another value.
Author
Owner

@christopherrobertbrooks-tech commented on GitHub (Oct 11, 2026):

Ran it on 0.1.43, same machine and method as above (resident RAM mode, 11,644 of 12,288 experts in VRAM; 0.1.41 vs 0.1.43 default, 3 rounds with the order rotated, 3 runs per size, greedy; 16K in round 1 only).

The log line is there on every start:
STRATA_ROUTE_TAIL_SKIP is off by default: 94.8% of the experts are in the GPU cache, so few are missed and skipping them costs more draft acceptance than it saves

Median decode tok/s:

prompt 0.1.41 0.1.43
256 78.6 78.4 (−0.3%)
1,000 77.8 77.6 (−0.3%)
4,096 78.5 78.3 (−0.3%)
16,384 75.5 75.2 (−0.4%)

Draft acceptance is back to 70.1% (4,479 of 6,387 drafts in both), the draft counts are identical in all 30 run pairs, and prompt time is unchanged. So the regression is gone on this machine. Thanks for the quick fix.

One small thing, in case it's useful: 0.1.43 is a steady 0.2 tok/s below 0.1.41 in every round (256 tokens: 78.6 vs 78.4 in all three). With identical draft counts it isn't the tail skip, and 0.1.42 with STRATA_ROUTE_TAIL_SKIP=0 matched 0.1.41 within 0.1 tok/s in the earlier run, so it came in between 0.1.42 and 0.1.43. At 0.3% we're not chasing it, but we can bisect it if you'd like.

<!-- gh-comment-id:6110535011 --> @christopherrobertbrooks-tech commented on GitHub (Oct 11, 2026): Ran it on 0.1.43, same machine and method as above (resident RAM mode, 11,644 of 12,288 experts in VRAM; 0.1.41 vs 0.1.43 default, 3 rounds with the order rotated, 3 runs per size, greedy; 16K in round 1 only). The log line is there on every start: `STRATA_ROUTE_TAIL_SKIP is off by default: 94.8% of the experts are in the GPU cache, so few are missed and skipping them costs more draft acceptance than it saves` Median decode tok/s: | prompt | 0.1.41 | 0.1.43 | |---|---|---| | 256 | 78.6 | 78.4 (−0.3%) | | 1,000 | 77.8 | 77.6 (−0.3%) | | 4,096 | 78.5 | 78.3 (−0.3%) | | 16,384 | 75.5 | 75.2 (−0.4%) | Draft acceptance is back to 70.1% (4,479 of 6,387 drafts in both), the draft counts are identical in all 30 run pairs, and prompt time is unchanged. So the regression is gone on this machine. Thanks for the quick fix. One small thing, in case it's useful: 0.1.43 is a steady 0.2 tok/s below 0.1.41 in every round (256 tokens: 78.6 vs 78.4 in all three). With identical draft counts it isn't the tail skip, and 0.1.42 with `STRATA_ROUTE_TAIL_SKIP=0` matched 0.1.41 within 0.1 tok/s in the earlier run, so it came in between 0.1.42 and 0.1.43. At 0.3% we're not chasing it, but we can bisect it if you'd like.
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#746
No description provided.