mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1352] Multi-GPU performance is ~2x lower than Francesco Albano fork despite the changes being merged into v0.1.40 #549
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#549
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 @chemical12 on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1352
Hi,
I noticed in the v0.1.40 release notes that several of the multi-GPU improvements from the Hardin22/Strata-DualGPU fork were incorporated into Strata.
However, I am seeing a significant performance difference when running the same model and the same two GPUs.
Hardware:
[0] RTX 4070 Ti SUPER 16 GB
[2] RTX 5060 Ti 16 GB
128 GB system RAM
Linux Debian
Model:
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S
Strata configuration
I am using:
--expert-cache auto
--prefill auto:32768
--spec 4
--spec-min-p 0.5
--mtp ...
--max-context 262144
--kv int8
--kv-resident 32768
--vision
--vram-reserve-mib 700
--remote-expert-opt
--pipeline-windows 2
GPU: [0, 2]
layer_split: auto
With Niko1221/Strata v0.1.40, I get approximately: ~40 tok/s decode
With the Hardin22/Strata-DualGPU fork, using the same model and the same two GPUs, I get approximately: ~80 tok/s decode (110 tok/s when coding)
I also tried explicitly enabling:
--resident-experts
--adapt-async 1
--pipeline-windows 2
in v0.1.40, but this did not reproduce the Hardin22 performance.
There is also a significant difference in prompt processing speed depending on the GPU order.
With: GPU: [0, 2] a prompt of approximately 6k tokens takes around 50 seconds to process.
If I change the order to: GPU: [2, 0] the same ~6k-token prompt takes only around 15 seconds.
However, the decode speed is essentially identical in both configurations (around 30-40 tok/s).
@ztsvvstz1337 commented on GitHub (Oct 7, 2026):
Hi I might have some insight on the prompt processing.
Its heavily PCIe lane speed dependent for example on my machine:
x16 -> Transfers around 26gb/s -> 2000-3000 tps
x4 -> ~ 5gb or less ~1000tps
x2 -> super slow 1-2gb/s -> only 200-500 TPS
@Noctorngaming commented on GitHub (Oct 7, 2026):
I have a 4070 on 4.0 x16, and v100 on 3.0 x4 and I get around 100-150 prefill
@Niko1221 commented on GitHub (Oct 7, 2026):
Thanks for the numbers, and @ztsvvstz1337 for the PCIe notes. Here is what is in v0.1.40.x from that fork and what is not, from the commit log.
In (with Francesco Albano as the author): the resident RAM mode on a layer split (
fe9c10ca),--vram-reserve-later-mib(5c4105c0), the asynchronous adaptive expert tier--adapt-async 1(b437b8ea), the MTP drafter chain as one launch (8ba583fe), pipelined verify windows--pipeline-windows(bfa532e9), pipeline-windows beside the async tier (13eee452, #905, in 0.1.40.2), the CPU-side kernels (AVX2 Q8_K activation quantizer, AVX-VNNI forms, the gathered i-quant decode), and each card keeping only its own layers' weights (--trim-stage-weights, which also works underauto).Not the same as in the fork: in the fork several of these are on by default for two GPUs; here they are opt-in (
--adapt-async 1,--pipeline-windows 2). A merge of the code is not a merge of the defaults, so the same model on the same cards does not run the same path unless the flags are given. Also not taken over: the automatic card order (the fork puts the faster card last in the split whenlayer_splitisauto; the engine here keeps your order, which would explain the big gap between[0, 2]and[2, 0]on your prompts: the 4070 Ti SUPER should probably be the last stage), the fork's hybrid-CPU worker default (here setup only recommends it), the display-aware default VRAM reserves, and the "fewer host waits" commits for the window (we have not found a matching commit).One thing in your config that matters:
--pipeline-windowsis switched off by--remote-expert-opt(the helper caches), and the engine logs a line saying so. Our setup recommends--remote-expert-optfor 2+ GPUs, so those two flags currently work against each other.--adapt-async 1and--pipeline-windowsalso exclude each other. Please try, one at a time,"layer_split": "auto"with"gpu": [2, 0](the 5060 Ti first or last, whichever is the faster card in the last stage), then--pipeline-windows 2without--remote-expert-opt, and post the engine log lines about pipeline-windows and the layer split. The decode gap to the fork should shrink; we do not yet have a measured claim for your pair of cards.@ztsvvstz1337 commented on GitHub (Oct 8, 2026):
quick follow up question or feature request (if this is not already implemented and/or done by the flags given above), is there an alternative way for multi gpu splitting, in which the card with the strongest pcie connection does the pre-filling only, and the other cards do text generation only? :)
@ztsvvstz1337 commented on GitHub (Oct 8, 2026):
Thats kinda low honestly
Maybe try a single card?
E.g. I have 3x rtx 3090 with ~110 GB RAM
I noticed with dual GPU ( x4 + x2 ) I get ~50-60 TPS with ~500 prefill but better batching and multiple requests
But on the single GPU on x16 I get 80 TPS with 2500 prefill but its better for a single request
All three cards together seems to slow down everything (might be cuz of GPU order didnt do much tests)
Ive settled with a 256k context dual gpu multi agent API and a single 512k context high speed lane on the single 3090 which works well for me
Numbers are eye balled averages not truly measured ;p
@chemical12 commented on GitHub (Oct 8, 2026):
Thanks. I ran both tests on the same hardware and model with 0.1.41 version. The performance is now on par with the Hardin22 fork
Hardware / environment
[2, 0]layer_split:autoTest 1 —
layer_split: autoConfiguration:
Docker console output
Engine log
Test 2 —
--pipeline-windows 2Same GPU order and layer split:
Docker console output
Engine log — pipeline/layer split lines
With a big ~200k-token prompt, the prompt processing speed was approximately 2394.30 t/s tokens/s.
The tests were performed with the same model, hardware, GPU order, and context settings. Only the specified configuration changes were made between the tests.
@fukc-gihtub commented on GitHub (Oct 8, 2026):
This felt like a regression. Prefill is 25-30% faster with
"gpu_order": "as_given"on my machine (dual, asymmetrical Blackwell GPUs).@MarsLuay commented on GitHub (Oct 13, 2026):
I ran the two tests requested in the maintainer reply on Strata v0.1.43.1 CUDA 12 with an RTX 3080 Ti 12 GB + Tesla V100 32 GB PCIe pair on Windows/WDDM. Model: Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 131K context,
--spec 4 --spec-min-p 0.5 --mtp, 10K prompts, 128 greedy output tokens, two measured requests per arm.Auto order with the larger/slower card first
With
gpu: [1, 0](V100 first, RTX second) andlayer_split: auto, v0.1.43.1 selected:The V100 held 24.19 GiB of expert cache and the RTX stage held 3.81 GiB. Prompt: 1,029.9 / 1,041.2 tok/s (mean 1,035.6). Decode: 66.7 / 76.4 tok/s (mean 71.6).
For comparison,
gpu: [0, 1]auto selected K=24 with RTX layers 0-23 and V100 layers 24-47: prompt mean 1,155.7 tok/s, decode mean 60.9 tok/s. Thus the reversed order is slower for prompt ingestion but faster for decode on this PCIe pair; importantly, the RTX is the last stage while the V100 retains the larger cache.Pipeline without the helper-cache flag
With manual K=28 and
--trim-stage-weights --pipeline-windows 2, omitting--remote-expert-opt, startup reported:Prompt: 1,445.7 / 1,532.8 tok/s (mean 1,489.2). Decode: 78.6 / 76.7 tok/s (mean 77.7). All verification captures reported upload/sync without error.
Both tests ran successfully. These are short two-run measurements, but the order and pipeline behavior match the requested diagnostic flags and log lines.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.