[GH-ISSUE #1576] [Bug]: 0.1.41 auto card order starves the smaller card on a VRAM-asymmetric pair (12 GB fast + 22 GB slow) #633

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

Originally created by @sankerXD on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1576

What happened

v0.1.41's new automatic card order (#1352) reorders our two GPUs so the faster card runs the last stage, and the auto layer split follows. On our pair — a fast but small card plus a slower but big card — this puts the head/draft stage on the card that can least afford it:

  • 0.1.40.x, given order "gpu": [0,1]: the 4070 Ti 12 GB ran layers 0-28; the 2080 Ti 22 GB ran layers 29-47 + head + draft, with ~7,000 expert-cache slots (~14 GiB) on the last stage.
  • 0.1.41, auto order: the 2080 Ti ran layers 0-16; the 12 GB 4070 Ti ran layers 17-47 + head + draft + verify, leaving only 1,572 cache slots (3.13 GiB). VRAM free hit 0 MiB during the verify-window captures, and the engine's own warning fired: a card this small can serve as a helper expert cache instead of a split stage.

Measured effects:

  • Decode: ~58 -> ~44 tok/s
  • Prompt chunk auto-cut 8,192 -> 4,608 (the cache-borrow floor). Prompt ingestion still felt faster overall — the batched file reads and faster-card-last genuinely help there.
  • Output drift on a long structured-generation task (SVG drawing; feet misplaced relative to wheels — our established canary for expert-set/numerics drift; IQ3 output is not expected to be bit-identical across runs anyway, but this was a visible quality regression)

"gpu_order": "as_given" restored a healthy layout: auto split picked 0-33 / 34-47 with 6,882 slots (13.97 GiB) on the last stage, ~582 MiB VRAM free, decode and canary output back to normal.

Suggestion: when reordering for an auto split, weigh the last stage's extra VRAM cost (head + draft + verify + cache floor) against each card's free VRAM — or keep the given order when the reordered last stage would land below some cache-slot / free-VRAM floor (the "card this small" warning firing right after the auto placement is a ready-made signal). Alternatively keep the reorder but let the split compensate: the reordered run gave the 22 GB card only 17 layers while the 12 GB card carried 31 + head.

Strata version, GPU, OS

  • Strata 0.1.41, release engine (BUILD.json: sm_75/86/89/120, CUDA 13.0), Windows 11, 64 GB RAM, machine dedicated to the model
  • GPU0: RTX 4070 Ti, 12 GB, PCIe gen2 x16
  • GPU1: RTX 2080 Ti, 22 GB (VRAM-modded card), PCIe gen3 x4
  • Note the faster card also has ~2x the PCIe bandwidth; the auto placement sees links too (#794), which may be part of why the split moved so far (17 vs the usual 26-30).

Config (sanitized; pack = Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S)

"gpu": [0, 1], "layer_split": "auto",
"args": ["--expert-cache","auto","--prefill","auto","--spec","4","--mtp","...",
  "--max-context","524288","--rope-scaling","yarn","--rope-scale","2",
  "--kv","int8","--kv-resident","131072","--vision","--vram-reserve-mib","700",
  "--pcie-frac","0.20","--spec-min-p","0.70","--pipeline-windows","2"],
"env": {"STRATA_PREFILL_HELP": "1"}

Engine log (relevant excerpts)

# 0.1.40.x, given order (several runs):
layer split: CUDA1 runs layers 29-47, expert cache 6867 slots (13.77 GiB), 6867 of its 9728 profiled pairs
layer split: CUDA0 runs layers 0-28
# (earlier runs had up to 8030 slots / 16.13 GiB on the last stage)

# first 0.1.41 start, auto order:
layer split: CUDA1 runs layers 17-47, expert cache 1572 slots (3.13 GiB), 1572 of its 15872 profiled pairs
layer split: CUDA0 runs layers 0-16
WARNING: prompt chunk 4608 tokens, not 8192: CUDA1 (NVIDIA GeForce RTX 4070 Ti) has 1572 expert-cache slots, and a 8192-token chunk borrows 1572 of them (it must keep 128, and lend at most 85%) - prompts read slower than on CUDA0 alone (#448)
  a card this small can serve as a helper expert cache instead of a split stage: without --layer-split, with --expert-cache-device1 N (docs/SECOND_GPU.md)
554 MiB of VRAM free with everything loaded
strata verify: capturing the 6-token window (0 MiB of VRAM free)

# same config + "gpu_order": "as_given", 0.1.41:
layer split: CUDA1 runs layers 34-47, expert cache 6882 slots (13.97 GiB), 6882 of its 7168 profiled pairs
layer split: CUDA0 runs layers 0-33
582 MiB of VRAM free with everything loaded

Not tested: --batch (unused); a manual split under the new order; whether the output drift came from the layer-to-card reassignment itself or from the starved cache changing the resident expert set — we only verified that as_given restored both speed and canary quality.

Originally created by @sankerXD on GitHub (Oct 8, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1576 **What happened** v0.1.41's new automatic card order (#1352) reorders our two GPUs so the faster card runs the last stage, and the auto layer split follows. On our pair — a **fast but small** card plus a **slower but big** card — this puts the head/draft stage on the card that can least afford it: - 0.1.40.x, given order `"gpu": [0,1]`: the 4070 Ti 12 GB ran layers 0-28; the 2080 Ti 22 GB ran layers 29-47 + head + draft, with ~7,000 expert-cache slots (~14 GiB) on the last stage. - 0.1.41, auto order: the 2080 Ti ran layers 0-16; the **12 GB** 4070 Ti ran layers 17-47 + head + draft + verify, leaving only **1,572 cache slots (3.13 GiB)**. VRAM free hit **0 MiB** during the verify-window captures, and the engine's own warning fired: `a card this small can serve as a helper expert cache instead of a split stage`. Measured effects: - Decode: **~58 -> ~44 tok/s** - Prompt chunk auto-cut 8,192 -> 4,608 (the cache-borrow floor). Prompt ingestion still felt faster overall — the batched file reads and faster-card-last genuinely help there. - Output drift on a long structured-generation task (SVG drawing; feet misplaced relative to wheels — our established canary for expert-set/numerics drift; IQ3 output is not expected to be bit-identical across runs anyway, but this was a visible quality regression) `"gpu_order": "as_given"` restored a healthy layout: auto split picked 0-33 / 34-47 with **6,882 slots (13.97 GiB)** on the last stage, ~582 MiB VRAM free, decode and canary output back to normal. **Suggestion**: when reordering for an auto split, weigh the last stage's extra VRAM cost (head + draft + verify + cache floor) against each card's free VRAM — or keep the given order when the reordered last stage would land below some cache-slot / free-VRAM floor (the "card this small" warning firing right after the auto placement is a ready-made signal). Alternatively keep the reorder but let the split compensate: the reordered run gave the 22 GB card only 17 layers while the 12 GB card carried 31 + head. **Strata version, GPU, OS** - Strata 0.1.41, release engine (BUILD.json: sm_75/86/89/120, CUDA 13.0), Windows 11, 64 GB RAM, machine dedicated to the model - GPU0: RTX 4070 Ti, 12 GB, PCIe gen2 x16 - GPU1: RTX 2080 Ti, 22 GB (VRAM-modded card), PCIe gen3 x4 - Note the faster card also has ~2x the PCIe bandwidth; the auto placement sees links too (#794), which may be part of why the split moved so far (17 vs the usual 26-30). **Config** (sanitized; pack = Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S) ```json "gpu": [0, 1], "layer_split": "auto", "args": ["--expert-cache","auto","--prefill","auto","--spec","4","--mtp","...", "--max-context","524288","--rope-scaling","yarn","--rope-scale","2", "--kv","int8","--kv-resident","131072","--vision","--vram-reserve-mib","700", "--pcie-frac","0.20","--spec-min-p","0.70","--pipeline-windows","2"], "env": {"STRATA_PREFILL_HELP": "1"} ``` **Engine log** (relevant excerpts) ``` # 0.1.40.x, given order (several runs): layer split: CUDA1 runs layers 29-47, expert cache 6867 slots (13.77 GiB), 6867 of its 9728 profiled pairs layer split: CUDA0 runs layers 0-28 # (earlier runs had up to 8030 slots / 16.13 GiB on the last stage) # first 0.1.41 start, auto order: layer split: CUDA1 runs layers 17-47, expert cache 1572 slots (3.13 GiB), 1572 of its 15872 profiled pairs layer split: CUDA0 runs layers 0-16 WARNING: prompt chunk 4608 tokens, not 8192: CUDA1 (NVIDIA GeForce RTX 4070 Ti) has 1572 expert-cache slots, and a 8192-token chunk borrows 1572 of them (it must keep 128, and lend at most 85%) - prompts read slower than on CUDA0 alone (#448) a card this small can serve as a helper expert cache instead of a split stage: without --layer-split, with --expert-cache-device1 N (docs/SECOND_GPU.md) 554 MiB of VRAM free with everything loaded strata verify: capturing the 6-token window (0 MiB of VRAM free) # same config + "gpu_order": "as_given", 0.1.41: layer split: CUDA1 runs layers 34-47, expert cache 6882 slots (13.97 GiB), 6882 of its 7168 profiled pairs layer split: CUDA0 runs layers 0-33 582 MiB of VRAM free with everything loaded ``` **Not tested**: `--batch` (unused); a manual split under the new order; whether the output drift came from the layer-to-card reassignment itself or from the starved cache changing the resident expert set — we only verified that `as_given` restored both speed and canary quality.
Author
Owner

@sankerXD commented on GitHub (Oct 8, 2026):

strata-iq3_s-lastrun.log

<!-- gh-comment-id:6062667805 --> @sankerXD commented on GitHub (Oct 8, 2026): [strata-iq3_s-lastrun.log](https://github.com/user-attachments/files/33210410/strata-iq3_s-lastrun.log)
Author
Owner

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

Thanks for the logs and for PR #1590. We took it (your authorship kept): the 0.1.41 auto card order (faster card last) is now skipped when it would put the last stage on a card with less total VRAM than the card the config put there, so your 12 GB 4070 Ti no longer ends up with the head, the draft layer, the verify and a 3 GiB cache. Cards we cannot read keep the old behaviour, equal cards keep today's order and output, and "gpu_order": "as_given" still keeps the config's order. It is in v0.1.42. Please re-test with your pair when it is out and tell us the layer split line and the decode speed.

<!-- gh-comment-id:6099614943 --> @Niko1221 commented on GitHub (Oct 10, 2026): Thanks for the logs and for PR #1590. We took it (your authorship kept): the 0.1.41 auto card order (faster card last) is now skipped when it would put the last stage on a card with less total VRAM than the card the config put there, so your 12 GB 4070 Ti no longer ends up with the head, the draft layer, the verify and a 3 GiB cache. Cards we cannot read keep the old behaviour, equal cards keep today's order and output, and "gpu_order": "as_given" still keeps the config's order. It is in v0.1.42. Please re-test with your pair when it is out and tell us the layer split line and the decode speed.
Author
Owner

@MarsLuay commented on GitHub (Oct 13, 2026):

Retested the mixed pair on Strata v0.1.43.1 CUDA 12 (Windows/WDDM): RTX 3080 Ti 12 GB (CUDA0) + Tesla V100 32 GB PCIe (CUDA1), Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 131,072-token context, --spec 4 --mtp, 10,060-token prompts, 128 greedy output tokens. Two measured requests per arm after warm-up.

With layer_split: auto:

layer split auto: K=24 ...
layer split: CUDA1 runs layers 24-47 ...
layer split: CUDA0 runs layers 0-23

The V100 (CUDA1) retained the larger stage and cache (12,057 slots / 24.22 GiB); the RTX stage had 2,209 slots / 3.98 GiB. Decode was 58.7 and 63.1 tok/s (60.9 mean); prompt read was 1,133.5 and 1,177.9 tok/s (1,155.7 mean).

With "gpu_order": "as_given", the same 0-23 / 24-47 split was selected. Decode was 58.9 and 68.5 tok/s (63.7 mean); prompt read was 1,099.7 and 1,110.9 tok/s (1,105.3 mean).

No request or verification errors occurred. The v0.1.43.1 auto-order result correctly kept the head/draft/verify stage on the larger-VRAM V100 in this pair.

<!-- gh-comment-id:6138287013 --> @MarsLuay commented on GitHub (Oct 13, 2026): Retested the mixed pair on **Strata v0.1.43.1 CUDA 12** (Windows/WDDM): **RTX 3080 Ti 12 GB (CUDA0) + Tesla V100 32 GB PCIe (CUDA1)**, Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 131,072-token context, `--spec 4 --mtp`, 10,060-token prompts, 128 greedy output tokens. Two measured requests per arm after warm-up. With `layer_split: auto`: ```text layer split auto: K=24 ... layer split: CUDA1 runs layers 24-47 ... layer split: CUDA0 runs layers 0-23 ``` The V100 (CUDA1) retained the larger stage and cache (12,057 slots / 24.22 GiB); the RTX stage had 2,209 slots / 3.98 GiB. Decode was **58.7 and 63.1 tok/s (60.9 mean)**; prompt read was **1,133.5 and 1,177.9 tok/s (1,155.7 mean)**. With `"gpu_order": "as_given"`, the same `0-23 / 24-47` split was selected. Decode was **58.9 and 68.5 tok/s (63.7 mean)**; prompt read was **1,099.7 and 1,110.9 tok/s (1,105.3 mean)**. No request or verification errors occurred. The v0.1.43.1 auto-order result correctly kept the head/draft/verify stage on the larger-VRAM V100 in this pair.
Author
Owner

@sankerXD commented on GitHub (Oct 13, 2026):

@Niko1221 here are the results you asked for.

Retested on v0.1.43.1 (release engine, CUDA 13.0, Windows 11, 64 GB RAM) with the original pair: RTX 4070 Ti 12 GB (GPU0, PCIe gen2 x16) + RTX 2080 Ti 22 GB (GPU1, PCIe gen3 x4). Same config as in the report (IQ3_S, --spec 4 --mtp, 524288 ctx with yarn x2, --pipeline-windows 2, STRATA_PREFILL_HELP=1), with "gpu_order": "as_given" removed, so the default order path ran.

The fix works: the 4070 Ti stays CUDA0 and the 22 GB card keeps the last stage.

layer split auto: K=34 - predicted 30.4 ms per decode window; the caches hold 9430 of 24576 profiled pairs (~97.1% of the routed mass)
layer split: CUDA1 runs layers 34-47, expert cache 6881 slots (13.97 GiB), 6881 of its 7168 profiled pairs; slot 0 verified
layer split: CUDA0 runs layers 0-33
GPU 0: NVIDIA GeForce RTX 4070 Ti, compute capability 8.9
prompt chunk auto: 6656 tokens, a 96-slot ring
581 MiB of VRAM free with everything loaded

The "a card this small can serve as a helper expert cache" warning and the chunk cut to 4608 are both gone.

0.1.41, auto order 0.1.43.1, as_given (same day) 0.1.43.1, default order
split 0-16 / 17-47 0-33 / 34-47 0-33 / 34-47
last-stage cache 1572 slots (3.13 GiB) 6881 slots (13.97 GiB) 6881 slots (13.97 GiB)
11.5K-token prompt read – 827.9 tok/s 803.1 tok/s
long decode ~44 tok/s 71.7 tok/s (13,251 tokens) 76.8 tok/s (19,645 tokens)

Follow-up turns in the same session (31K-52K context) decoded at 62-94 tok/s. Our SVG canary (pelican on a bicycle) came out correct again.

Notes:

  • Most of the decode gain over 0.1.41 is likely STRATA_ROUTE_TAIL_SKIP=7, which is on in both 0.1.43.1 arms. The two arms also generated different lengths, so read the speed comparison as rough.
  • The keeping card order ... (#1576) line goes to the server console, not the engine log. I inferred the kept order from GPU 0: RTX 4070 Ti (it was the 2080 Ti under 0.1.41).
  • Unrelated: the new #2065 warning fires on this config (415-616 MiB free at request start). We'll raise --vram-reserve-mib separately.

Not tested: --batch, the --layer-split 37 near-tie alternative, our other two dual-card configs (still on as_given).
This matches @MarsLuay's result above on a 3080 Ti 12 GB + V100 32 GB pair: the larger card keeps the last stage on both pairs.

Thanks for the quick fix!

<!-- gh-comment-id:6139082907 --> @sankerXD commented on GitHub (Oct 13, 2026): @Niko1221 here are the results you asked for. Retested on **v0.1.43.1** (release engine, CUDA 13.0, Windows 11, 64 GB RAM) with the original pair: RTX 4070 Ti 12 GB (GPU0, PCIe gen2 x16) + RTX 2080 Ti 22 GB (GPU1, PCIe gen3 x4). Same config as in the report (IQ3_S, `--spec 4 --mtp`, 524288 ctx with yarn x2, `--pipeline-windows 2`, `STRATA_PREFILL_HELP=1`), with `"gpu_order": "as_given"` **removed**, so the default order path ran. The fix works: the 4070 Ti stays CUDA0 and the 22 GB card keeps the last stage. ``` layer split auto: K=34 - predicted 30.4 ms per decode window; the caches hold 9430 of 24576 profiled pairs (~97.1% of the routed mass) layer split: CUDA1 runs layers 34-47, expert cache 6881 slots (13.97 GiB), 6881 of its 7168 profiled pairs; slot 0 verified layer split: CUDA0 runs layers 0-33 GPU 0: NVIDIA GeForce RTX 4070 Ti, compute capability 8.9 prompt chunk auto: 6656 tokens, a 96-slot ring 581 MiB of VRAM free with everything loaded ``` The "a card this small can serve as a helper expert cache" warning and the chunk cut to 4608 are both gone. | | 0.1.41, auto order | 0.1.43.1, `as_given` (same day) | 0.1.43.1, default order | |---|---|---|---| | split | 0-16 / 17-47 | 0-33 / 34-47 | 0-33 / 34-47 | | last-stage cache | 1572 slots (3.13 GiB) | 6881 slots (13.97 GiB) | 6881 slots (13.97 GiB) | | 11.5K-token prompt read | – | 827.9 tok/s | 803.1 tok/s | | long decode | ~44 tok/s | 71.7 tok/s (13,251 tokens) | 76.8 tok/s (19,645 tokens) | Follow-up turns in the same session (31K-52K context) decoded at 62-94 tok/s. Our SVG canary (pelican on a bicycle) came out correct again. Notes: - Most of the decode gain over 0.1.41 is likely `STRATA_ROUTE_TAIL_SKIP=7`, which is on in both 0.1.43.1 arms. The two arms also generated different lengths, so read the speed comparison as rough. - The `keeping card order ... (#1576)` line goes to the server console, not the engine log. I inferred the kept order from `GPU 0: RTX 4070 Ti` (it was the 2080 Ti under 0.1.41). - Unrelated: the new #2065 warning fires on this config (415-616 MiB free at request start). We'll raise `--vram-reserve-mib` separately. Not tested: `--batch`, the `--layer-split 37` near-tie alternative, our other two dual-card configs (still on `as_given`). This matches @MarsLuay's result above on a 3080 Ti 12 GB + V100 32 GB pair: the larger card keeps the last stage on both pairs. Thanks for the quick fix!
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#633
No description provided.