mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5172] [Engine] 0.1.56: Dual rx9070 slower than a single GPU in decode. Parallel is worse than a split configuration. #3079
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3079
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bob-u on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5172
Is dual rx9070 supported in the 0.1.56 release? I am getting results that are 10 to 50% slower in decode than a single card (there are occasional spikes higher but it's slower on average) while using more power.

Prompt processing is faster than a single card in split and slower in parallel.
Split utilization:
I'll be happy to run some tests and diagnostics.
My environment:
Machine: AMD Radeon, AMD Radeon; AMD Ryzen 7 7700X 8-Core Processor; 91 GB RAM; Ubuntu 26.04.1 LTS 7.0.0-42-generic.
@udqe commented on GitHub (Nov 4, 2026):
@bob-u short answer to the title question, then the three numbers that would turn this from a report into a diagnosis - and you are one of the few reporters who can produce them quickly, because your #5089 protocol already was the template.
Is dual RX9070 supported on 0.1.56: the engine runs on RDNA4 (other 0.1.55/0.1.56 users are on the same card - see the single-card slowdown thread #5162), and layer split over two HIP cards is exercised (your own 2x 3090 run on 0.1.43 is the closest precedent). What may genuinely not be tuned is the SPLIT PLANNER for cards this small: on 2x 16 GB the auto split gives each stage fewer expert slots than the same model's single-card run has per its own residency, and decode then pays for both cards' misses over the host link, per token.
Which is the hypothesis worth testing before anyone calls it a regression: we can say from a posted CUDA A/B (the Gen3/Gen4 thread, #5031, table with decode twins) that decode speed on a split tracked NEITHER generation nor lane width - decode ignored the link entirely, while prefill tracked it at -31%. If RDNA4 decode behaves the same way, the 10-50% you lose going dual is not bytes over the link; it is the per-token boundary sync plus whoever misses streaming from the host - i.e. a residency effect, and the single card only looks fast because (depending on your quant) it may hold nearly everything. Your split-prefill-faster observation fits this exactly: prefill is the bulk path the link does govern.
To separate the cases we would need, at one fixed prompt and drafter state, on all three arms:
And one control worth having regardless: #5162 shows single 9070 decode regressing across engine versions on certain drivers - if your single-card baseline moved between versions too, some of the spread may be that rather than the split.
(No numbers from us on this axis: our pair is 2x 4090 streaming the 75 GB-expert Qwen - a single card cannot serve it here, so single-vs-split is structurally impossible on our box and your table is the data. Happy to rerun the comparison table format from #5089 with you filling only the boxes the three items above cover.)
(ai-assisted; the decode-vs-link claim is quoted from our posted measurements on #5031; we run CUDA/Windows, so everything RDNA4-specific here is hypothesis awaiting your logs.)
@bob-u commented on GitHub (Nov 4, 2026):
Results vary with a model. UD-Q4_K_XL is much better (still slow) than IQ3_S. I am guessing that x4 4.0 PCIe bandwidth may be causing issues.
`Machine: 2x AMD Radeon GPU | AMD Ryzen 7 7700X 8-Core | 91 GB RAM | Ubuntu 26.04.1 LTS (7.0.0-42-generic)
Model:
qwen3.8-flash-next-unsloth-ud-q4_k_xl(UD-Q4_K_XL) | ctx 262144 | engine 0.1.56 | trackcustomAll numbers are median (min-max), n=3. Prompt/decode are the engine's own timings; TTFT is the client's first-token time.
Capped= runs that hit the token cap.@udqe commented on GitHub (Nov 4, 2026):
This is the matrix, and it flips the title's phenomenon on this quant - thank you, this is exactly what turned the thread from report into diagnosis. Three reads, one ask left.
Read 1 - on UD-Q4_K_XL, dual is not slower than single; it is faster than your single on x4. Split x4 decodes 45.7-49.6 and parallel x4 43.7-50.5 against single-x4's 36.5-38.6 - across all three prompt shapes. The "dual slower" you measured came from the IQ3_S path (your own opener says it is much worse), which is the residency story from my last comment: the quant that fits the cards' combined cache differently changes which topology pays for host streaming per token. Your single x16 (45.5-51.2) is the only arm that matches dual - and that arm is, as your next read shows, the one where the link itself stopped being the bottleneck.
Read 2 - your lane axis reproduces our CUDA claim asymmetrically, and that asymmetry is the finding. Single-card: x16 over x4 buys +33% decode (51.2 vs 38.6) and +65% prefill at 16K (1,708 vs 1,033) - a single card streaming from host RAM is bandwidth-bound and the lane width governs. Dual: essentially nothing, and even slightly the other way (split x4 45.7-49.6 vs split x16 42.0-44.0; parallel x4 43.7-50.5 vs x16 40.2-43.9) - once both cards stream, decode stops caring about lanes. That is the same split of labor we measured on CUDA in #5031 (posted decode twins under different link widths: decode ignored the link, prefill tracked it at -31%); your box now shows it on RDNA4, different vendor, different link stack. The boundary-sync term you would expect in dual decode is visible as exactly the residual it should be: dual ~= single-x16, not above it.
Read 3 - parallel ~= split on this quant (their ranges overlap at every shape), so the "parallel worse than split" half of your original body also looks like an IQ3_S-era property, not a HIP property. Two quant-sensitive claims retired with the table.
The one ask still open from my three (and it is the nail for the residency story): the boot block's expert-cache slots line and one decode hit-rate line, per topology - Split x4 and Single x16 is enough. If Single x16 reports a high decode hit rate while Split x4 sits lower, then single-card speed is residency you are buying with lane width plus the whole model on one cache, and dual's residual is the per-token cost of the misses the split makes per stage. If they print about equal, then sync is the whole dual tax and I will say so.
To make the residency scale concrete from our box, same pack (UD-Q4_K_XL), engine 0.1.56, 2x RTX 4090 24 GB Windows, layer-split pw2 over x16: decode median 116.4 t/s today (n=18, range 102.9-141.5 - our box's day-noise is disclosed, this is a band not a win over anyone) with prefill ~3,550 t/s at 150K, at about 5,065 VRAM expert-cache slots per stage with the 40 GiB pinned RAM pool behind them. And, because your #5089 is the peer question too, we ran the peer arm today on the same pair with
--peer-device: the tier filled 7,454 experts (21.8 GiB) on the second card, 11,890 of 24,576 experts GPU-resident between both cards, decode hit rate stayed 99%+ - and decode still came out at 0.80x our own split (92.9 median) with prefill at 0.55x. On a PCIe-only pair the peer structure loses to the split even when the P2P probe passes and misses are near zero; your NVLink boxes are the interesting middle, which is why your slot/hit lines are worth the paste.One honesty box for the record: n=3 medians, capped rows, and no acceptance numbers in your table - none of that changes the two structural reads above (they are order-of-magnitude asymmetric), and I have deliberately not turned any of it into a ratio anyone should quote as a spec.
(ai-assisted; our numbers: udqe production pair, same pack, protocol disclosed in #5031/#3976 threads; peer arm run 2026-11-04, boot lines quoted)
@bob-u commented on GitHub (Nov 4, 2026):
Single x16 wins on peak decode performance. Dual-GPU configurations don't consistently surpass it.
PCIe bandwidth matters substantially for single-GPU performance. The x4-to-x16 improvement is significant.
Dual-GPU scaling is less effective. Adding a second GPU doesn't translate into proportional decode throughput.
For comparison between single and dual, ignore results from single GPU on x4 PCIe.
@alexanderi96 commented on GitHub (Nov 4, 2026):
A data point from a similar asymmetric pair, in case it helps: 2x RX 7900 XTX, the second card on a PCIe 3.0 x4 chipset slot (3.0 GB/s probed), Swift 1.5 IQ3_S, v0.2.10, ROCm 10.2, full context.
With the layer split the second card's link shows up mostly in prompts: one card 16K 2,975 / 32K 3,129 tok/s,
--layer-split auto2,022 / 2,052, best manual split (--layer-split 35, fewer layers on the x4 card,STRATA_STAGE_TRIM=1,STRATA_SPLIT_OVERLAP=1) 1,963 / 2,019. Decode does gain there (short chat 58 -> 81 tok/s), because two caches hold ~99% of the routed experts instead of ~85-90%.STRATA_SPLIT_UNIFORM=1made everything worse here.What did beat one card on both decode and prompts was expert parallelism (#5036) with a few changes: card 0 runs the prompt alone over its x16 link, card 1 only joins the decode windows, and the experts neither card holds are computed on the CPU. Short chat 74-80, agent 83 tok/s, prompts level with one card up to 16K and 8% over it at 32K-63K. Details and the branches are in #5036.
@bob-u commented on GitHub (Nov 4, 2026):
Thanks for that data point. I would argue that your setup, holding 99% of experts in VRAM, removes effects of slow PCIe.