[GH-ISSUE #2463] Layer-split auto (0.1.44.1): a 2x link gap is no longer priced, so a 4090 x16 + 3090 x8 pair picks K=45 and runs ~25% slower; STRATA_SPLIT_LINK_ABS=1 restores 0.1.43.1 #1004

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

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

Strata version, GPU, OS: 0.1.44.1 (296b59d2, release engine) · RTX 4090 24 GB (CUDA0, PCIe Gen3 x16, probe 12.4 GB/s) + RTX 3090 24 GB (CUDA1, Gen3 x8, probe 6.2 GB/s) · Windows 11, driver 617.42 · i9-7900X (X299, so Gen3 is the ceiling), 128 GB DDR4-3200

Qwen3.8-Flash-Next IQ3_S with setup's plan for this pair: --max-context 262144 --kv int8 --kv-resident 32768 --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --conversation-cache-mib 8192 --pipeline-windows 2, layer split auto (CUDA0 then CUDA1; #1576 keeps that order).

What happened

On this pair 0.1.44.1's auto split runs layers 0-44 on the 4090 and only 45-47 on the 3090, where 0.1.43.1 ran 0-31 and 32-47. Decode drops by about a quarter and long prompts read at about half speed. STRATA_SPLIT_LINK_ABS=1 on 0.1.44.1 brings back K=32 and 0.1.43.1's numbers.

Measured back to back on the same host: same flags and pack, each arm from a cold start on idle GPUs, 512 output tokens per depth through the API, one request per depth, prompt and decode rates as the server reports them.

0.1.43.1 0.1.44.1 0.1.44.1 + STRATA_SPLIT_LINK_ABS=1
miss cost CUDA0 / CUDA1 x1.62 / x3.24 x1.00 / x1.00 x1.62 / x3.23
auto K (layers on CUDA0 / CUDA1) 32 (0-31 / 32-47) 45 (0-44 / 45-47) 32 (0-31 / 32-47)
CUDA1 expert cache 8,185 slots, 16.50 GiB 1,536 slots, 3.42 GiB 8,183 slots, 16.50 GiB
profiled pairs held (routed mass) 17,512 (98.9%) 10,580 (97.4%) 17,510 (98.9%)
predicted per decode window 18.6 ms 16.6 ms 18.6 ms
decode tok/s at ~60 / 8K / 32K / 64K / 100K 173 / 206 / 197 / 194 / 184 113 / 151 / 154 / 148 / 148 164 / 196 / 196 / 189 / 187
prompt tok/s at 8K / 32K / 64K / 100K 1,583 / 3,120 / 3,506 / 3,599 1,222 / 1,784 / 1,916 / 1,868 1,605 / 3,123 / 3,519 / 3,604
TTFT at 100K 28.6 s 55.0 s 28.6 s

0.1.44.1's default also prints:

strata generate: layer split auto: K=47 would give a stage fewer than 3 layers (a tiny expert cache there clamps the prompt chunk of every card, #1616); chose K=45 instead (16.6 ms per decode window, not 16.5)
strata generate: layer split auto: NEAR TIE - K=42 is predicted 16.7 ms per decode window, within 0.7% of K=45 (16.6 ms); the cards differ, so the prediction may not rank them (it prices decode, not the prompt). To try the other: --layer-split 42
strata serve: WARNING: prompt chunk 5888 tokens, not 8192: CUDA1 (NVIDIA GeForce RTX 3090) has 1536 expert-cache slots, and a 8192-token chunk borrows 1536 of them (it must keep 128, and lend at most 85%) - prompts read slower than on CUDA0 alone (#448)

Why

#2007's link_miss_scale (split_rules.hpp#L77-L98) scales a stage's miss term only from a 4x gap against the fastest link. At 12.4 against 6.2 GB/s both stages get x1.00 (generate.cpp#L3846-L3855), and the search then holds 6,932 fewer profiled pairs (97.4% of the routed mass instead of 98.9%). The comment there expects a gap below 4x to matter less than the probe's noise and the formula's fit. On this rig it is the largest effect, perhaps because the slower link is also on the slower card (82 SMs at 1.75 GHz against 128 at 2.52).

So the 0.1.41 rule is right on this pair, the 2x Tesla T10 rig in that comment needed it gone, and #2418 (a 4.2x gap, x16 + x4) asks for a uniform cost. The link ratio alone does not seem to separate the three rigs.

Originally created by @alphastorm on GitHub (Oct 14, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2463 **Strata version, GPU, OS:** 0.1.44.1 (`296b59d2`, release engine) · RTX 4090 24 GB (CUDA0, PCIe Gen3 x16, probe 12.4 GB/s) + RTX 3090 24 GB (CUDA1, Gen3 x8, probe 6.2 GB/s) · Windows 11, driver 617.42 · i9-7900X (X299, so Gen3 is the ceiling), 128 GB DDR4-3200 Qwen3.8-Flash-Next IQ3_S with setup's plan for this pair: `--max-context 262144 --kv int8 --kv-resident 32768 --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --conversation-cache-mib 8192 --pipeline-windows 2`, layer split auto (CUDA0 then CUDA1; #1576 keeps that order). ### What happened On this pair 0.1.44.1's auto split runs layers 0-44 on the 4090 and only 45-47 on the 3090, where 0.1.43.1 ran 0-31 and 32-47. Decode drops by about a quarter and long prompts read at about half speed. `STRATA_SPLIT_LINK_ABS=1` on 0.1.44.1 brings back K=32 and 0.1.43.1's numbers. Measured back to back on the same host: same flags and pack, each arm from a cold start on idle GPUs, 512 output tokens per depth through the API, one request per depth, prompt and decode rates as the server reports them. | | 0.1.43.1 | 0.1.44.1 | 0.1.44.1 + `STRATA_SPLIT_LINK_ABS=1` | |---|---|---|---| | miss cost CUDA0 / CUDA1 | x1.62 / x3.24 | x1.00 / x1.00 | x1.62 / x3.23 | | auto K (layers on CUDA0 / CUDA1) | 32 (0-31 / 32-47) | 45 (0-44 / 45-47) | 32 (0-31 / 32-47) | | CUDA1 expert cache | 8,185 slots, 16.50 GiB | 1,536 slots, 3.42 GiB | 8,183 slots, 16.50 GiB | | profiled pairs held (routed mass) | 17,512 (98.9%) | 10,580 (97.4%) | 17,510 (98.9%) | | predicted per decode window | 18.6 ms | 16.6 ms | 18.6 ms | | decode tok/s at ~60 / 8K / 32K / 64K / 100K | 173 / 206 / 197 / 194 / 184 | 113 / 151 / 154 / 148 / 148 | 164 / 196 / 196 / 189 / 187 | | prompt tok/s at 8K / 32K / 64K / 100K | 1,583 / 3,120 / 3,506 / 3,599 | 1,222 / 1,784 / 1,916 / 1,868 | 1,605 / 3,123 / 3,519 / 3,604 | | TTFT at 100K | 28.6 s | 55.0 s | 28.6 s | 0.1.44.1's default also prints: ``` strata generate: layer split auto: K=47 would give a stage fewer than 3 layers (a tiny expert cache there clamps the prompt chunk of every card, #1616); chose K=45 instead (16.6 ms per decode window, not 16.5) strata generate: layer split auto: NEAR TIE - K=42 is predicted 16.7 ms per decode window, within 0.7% of K=45 (16.6 ms); the cards differ, so the prediction may not rank them (it prices decode, not the prompt). To try the other: --layer-split 42 strata serve: WARNING: prompt chunk 5888 tokens, not 8192: CUDA1 (NVIDIA GeForce RTX 3090) has 1536 expert-cache slots, and a 8192-token chunk borrows 1536 of them (it must keep 128, and lend at most 85%) - prompts read slower than on CUDA0 alone (#448) ``` ### Why #2007's `link_miss_scale` ([split_rules.hpp#L77-L98](https://github.com/Niko1221/Strata/blob/296b59d2f73c8f04a805df29c2fa97655adace78/include/strata/program/split_rules.hpp#L77-L98)) scales a stage's miss term only from a 4x gap against the fastest link. At 12.4 against 6.2 GB/s both stages get x1.00 ([generate.cpp#L3846-L3855](https://github.com/Niko1221/Strata/blob/296b59d2f73c8f04a805df29c2fa97655adace78/src/program/generate.cpp#L3846-L3855)), and the search then holds 6,932 fewer profiled pairs (97.4% of the routed mass instead of 98.9%). The comment there expects a gap below 4x to matter less than the probe's noise and the formula's fit. On this rig it is the largest effect, perhaps because the slower link is also on the slower card (82 SMs at 1.75 GHz against 128 at 2.52). So the 0.1.41 rule is right on this pair, the 2x Tesla T10 rig in that comment needed it gone, and #2418 (a 4.2x gap, x16 + x4) asks for a uniform cost. The link ratio alone does not seem to separate the three rigs.
Author
Owner

@Cheetah350 commented on GitHub (Oct 14, 2026):

I can confirm the same regression on a separate Fedora Linux system with the same GPU combination, but different PCIe characteristics.

System:

  • Strata: 0.1.44.1
  • OS: Fedora Linux
  • Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S
  • GPUs: RTX 4090 24 GB + RTX 3090 24 GB (configured order: [1,0], 4090 first)
  • Driver: NVIDIA 615.71.09 / CUDA 13.4
  • Measured PCIe bandwidth: 13.4 GB/s on both GPUs
  • Configuration: Resident Experts, --layer-split auto, --pipeline-windows 2, --max-context 262144, --kv int8, --kv-resident 32768
  • Tuned parameters: --pcie-frac 0.20, --spec-min-p 0.70, --pool-workers 10

1. Regression reproduced

With the default 0.1.44.1 heuristic, the auto-split selected K=45 (45 layers on the 4090, just 3 on the 3090).

CUDA0 link 13.4 GB/s -> miss cost x1.00
CUDA1 link 13.4 GB/s -> miss cost x1.00
layer split auto: K=45 - predicted 17.1 ms per decode window;
the caches hold 9849 of 24576 profiled pairs (~97.1% routed mass)
WARNING: prompt chunk 6400 tokens, not 8192:
CUDA1 (RTX 3090) has 1536 expert-cache slots

At this point:

  • RTX 4090 VRAM: 23,741 MiB used
  • RTX 3090 VRAM: 12,841 MiB used (~11 GiB available)
  • Expert RAM footprint: 30.98 GiB page-locked

Resetting Strata to its default configuration did not resolve the issue.

2. Performance regression

Metric 0.1.43.1 + Pipeline 2 0.1.44.1 default
Admin decode 194.6 tok/s 142.0 tok/s
Coding decode 160.6 tok/s 103.4 tok/s
Prefill ~23K 3,238 tok/s 2,040 tok/s
Prefill ~72K 3,734 tok/s 1,975 tok/s
Prefill ~128K 3,791 tok/s 2,021 tok/s

The prefill regression at 128K is approximately 47%.

Enabling the environment variable while keeping automatic layer splitting produced:

CUDA0 link 13.4 GB/s -> miss cost x1.49
CUDA1 link 13.4 GB/s -> miss cost x1.49
layer split auto: K=33 - predicted 18.9 ms per decode window;
the caches hold 16575 of 24576 profiled pairs (~98.7% routed mass)
resident RAM mode: 22.22 GiB of experts in RAM (page-locked),
8857 in the GPU cache
prompt chunk auto: 8192 tokens, a 96-slot ring

The GPU split returned to K=33 (33 layers on the 4090 / 15 on the 3090), and the expert RAM footprint returned almost exactly to its previous value.

4. Performance recovered

Metric 0.1.43.1 + Pipeline 2 0.1.44.1 + workaround
Admin decode 194.6 tok/s 198.2 tok/s
Coding decode 160.6 tok/s 148.7 tok/s
Prefill ~23K 3,238 tok/s 3,244 tok/s
Prefill ~72K 3,734 tok/s 3,738 tok/s
Prefill ~128K 3,791 tok/s 3,787 tok/s

The prefill rates have returned to effectively the 0.1.43.1 baseline.

5. Potential relevance for the split heuristic

The most interesting difference from the original report is that both PCIe links report equal bandwidth (13.4 GB/s), yet the default relative-cost logic still chooses K=45.

This suggests the problem is not limited to systems with asymmetric PCIe bandwidth.

The default heuristic predicts K=45 at 17.1 ms/decode window, while the absolute-link-cost heuristic predicts K=33 at 18.9 ms/window. Nevertheless, K=33 restores measured prefill throughput and increases cached profiled pairs from 9,849 to 16,575.

The split selection may therefore be underweighting the absolute PCIe miss cost, the effective expert-cache coverage, and/or the penalty associated with shrinking the prompt chunk below 8192 tokens.

It may be worth evaluating candidate splits with an explicit prompt-throughput/cache-capacity penalty, in addition to predicted decode-window latency.

For now, I am keeping STRATA_SPLIT_LINK_ABS=1 as a workaround while retaining --layer-split auto.

Thanks for investigating this. Hopefully this second reproduction, on a different OS and with symmetric measured PCIe bandwidth, helps refine the heuristic.

<!-- gh-comment-id:6173621624 --> @Cheetah350 commented on GitHub (Oct 14, 2026): ### Confirmed on Fedora Linux: RTX 4090 + RTX 3090 — same K=45 regression, fixed by `STRATA_SPLIT_LINK_ABS=1` I can confirm the same regression on a separate **Fedora Linux** system with the same GPU combination, but different PCIe characteristics. **System:** - **Strata:** 0.1.44.1 - **OS:** Fedora Linux - **Model:** Qwen3.8-Flash-Next GSQ-RCO IQ3_S - **GPUs:** RTX 4090 24 GB + RTX 3090 24 GB (configured order: `[1,0]`, 4090 first) - **Driver:** NVIDIA 615.71.09 / CUDA 13.4 - **Measured PCIe bandwidth:** 13.4 GB/s on both GPUs - **Configuration:** Resident Experts, `--layer-split auto`, `--pipeline-windows 2`, `--max-context 262144`, `--kv int8`, `--kv-resident 32768` - **Tuned parameters:** `--pcie-frac 0.20`, `--spec-min-p 0.70`, `--pool-workers 10` #### 1. Regression reproduced With the default 0.1.44.1 heuristic, the auto-split selected **K=45** (45 layers on the 4090, just 3 on the 3090). ```text CUDA0 link 13.4 GB/s -> miss cost x1.00 CUDA1 link 13.4 GB/s -> miss cost x1.00 layer split auto: K=45 - predicted 17.1 ms per decode window; the caches hold 9849 of 24576 profiled pairs (~97.1% routed mass) WARNING: prompt chunk 6400 tokens, not 8192: CUDA1 (RTX 3090) has 1536 expert-cache slots ``` At this point: - RTX 4090 VRAM: **23,741 MiB used** - RTX 3090 VRAM: **12,841 MiB used** (~11 GiB available) - Expert RAM footprint: **30.98 GiB page-locked** Resetting Strata to its default configuration did not resolve the issue. #### 2. Performance regression | Metric | 0.1.43.1 + Pipeline 2 | 0.1.44.1 default | |---|---:|---:| | Admin decode | 194.6 tok/s | 142.0 tok/s | | Coding decode | 160.6 tok/s | 103.4 tok/s | | Prefill ~23K | 3,238 tok/s | 2,040 tok/s | | Prefill ~72K | 3,734 tok/s | 1,975 tok/s | | Prefill ~128K | 3,791 tok/s | 2,021 tok/s | The prefill regression at 128K is approximately **47%**. #### 3. Workaround: `STRATA_SPLIT_LINK_ABS=1` Enabling the environment variable while keeping automatic layer splitting produced: ```text CUDA0 link 13.4 GB/s -> miss cost x1.49 CUDA1 link 13.4 GB/s -> miss cost x1.49 layer split auto: K=33 - predicted 18.9 ms per decode window; the caches hold 16575 of 24576 profiled pairs (~98.7% routed mass) resident RAM mode: 22.22 GiB of experts in RAM (page-locked), 8857 in the GPU cache prompt chunk auto: 8192 tokens, a 96-slot ring ``` The GPU split returned to **K=33 (33 layers on the 4090 / 15 on the 3090)**, and the expert RAM footprint returned almost exactly to its previous value. #### 4. Performance recovered | Metric | 0.1.43.1 + Pipeline 2 | 0.1.44.1 + workaround | |---|---:|---:| | Admin decode | 194.6 tok/s | **198.2 tok/s** | | Coding decode | 160.6 tok/s | **148.7 tok/s** | | Prefill ~23K | 3,238 tok/s | **3,244 tok/s** | | Prefill ~72K | 3,734 tok/s | **3,738 tok/s** | | Prefill ~128K | 3,791 tok/s | **3,787 tok/s** | The prefill rates have returned to effectively the 0.1.43.1 baseline. #### 5. Potential relevance for the split heuristic The most interesting difference from the original report is that **both PCIe links report equal bandwidth (13.4 GB/s)**, yet the default relative-cost logic still chooses K=45. This suggests the problem is not limited to systems with asymmetric PCIe bandwidth. The default heuristic predicts K=45 at 17.1 ms/decode window, while the absolute-link-cost heuristic predicts K=33 at 18.9 ms/window. Nevertheless, K=33 restores measured prefill throughput and increases cached profiled pairs from 9,849 to 16,575. The split selection may therefore be underweighting the **absolute PCIe miss cost**, the effective expert-cache coverage, and/or the penalty associated with shrinking the prompt chunk below 8192 tokens. It may be worth evaluating candidate splits with an explicit prompt-throughput/cache-capacity penalty, in addition to predicted decode-window latency. For now, I am keeping `STRATA_SPLIT_LINK_ABS=1` as a workaround while retaining `--layer-split auto`. Thanks for investigating this. Hopefully this second reproduction, on a different OS and with symmetric measured PCIe bandwidth, helps refine the heuristic.
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:6271072514 --> @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#1004
No description provided.