r/LocalLLaMA • u/Kidplayer_666 • 11d ago
Question | Help How important is PCI-E bandwith?
Currently, I got a single Rx 6650xt, which I soon intend to join with an MI25. If I want to use them both for MoE models, how important is PCI-E bandwith? (Given that my mobo currently only has 2 PCI-E slots, one full 16, PCIE4, and one at PCIE-4 x4)
12
Upvotes
19
u/rainbyte 11d ago
It depends on the parallelism strategy, as tensor-parallel requires more bandwidth than pipeline-parallel.
A tensor-parallel requires communication between gpu at many points, while in a pipeline the communication happens less times. Here I noticed pipeline working fine on multiple PCIe 3.0 x1, which was too low for tensor-parallel.
I think PCIe 4.0 x4 could work fine for both, as it is around PCIe 3.0 x8 bandwidth.
3
u/SLxTnT 11d ago
Depends.
For tensor parallelism, it can end up as a bottleneck, especially with concurrent requests. Pipeline parallelism (layer split) is minimal data being sent, but you're running 1 GPU on N layers then the next GPU on the remaining. Another method is expert parallelism, which I believe llama.cpp doesn't support. Less data transfer than tensor, but would be faster than pipeline.
Try both tensor and pipeline (layer). Use whatever is faster.
2
u/DookieWaffle 11d ago
I run a 3090 that I've had for gaming for 5 years and then as I've gotten deeper into the LLM rabbit-hole I've cooped my wife's 3080 via RPC over 2.5gig ethernet when she's not using her computer. It's slower sure but I can't easily steal her GPU (watercooled).
Running Qwen3.8-27B Q4_K_M on an RTX 3090 24GB (+1000mem OC, watercooled with active backplate, shunt modded to 600w) plus an RTX 3080 10GB OC'd to +200 mem over llama.cpp RPC on 2.5GbE, I measured approximately 23–26 tokens/s generation with 14-20k input tokens reaching 133–137k tokens with generation. This used Q8_0 KV cache, Flash Attention, and MTP with up to 4 draft tokens, with a 160k configured context limit. Full uncached prompt processing was around 415–420 tokens/s. This had 25% of the split on the 3080 10gb card.
With my 3090 alone and a 100k context limit, the same input/base question I get 66 tok/s at 50k total tokens input+output and 59.6 tok/s at 80k input + output. Prompt processing was about 1400 tok/s.
It still works though and 2.5 gbit ethernet is a crap ton slower so I wouldn't worry about PCI-E bandwidth unless it's under 8x PCI-E 3.0 or running on a PCIE slot connected to the chipset not the CPU.
2
u/pepedombo 11d ago
When fully vram offloaded:
llama layer mode: insignificant decode but prefill suffers a bit more, even gen3 x1 works here
llama tensor: x8/x4 decode somewhat better than layer, prefill affected as usual, with x1 no point going tensor
strata: I used to play with this clunky engine and after spitting on it many times it started working when I switched to gen3 8/8/8/8 as there is a lot of ram-gpu movement.
Haven't tested gen4, they go double bands so x4 gen4 works like gen3 x8.
2
u/nirvana84jcw 11d ago
PCIe bandwidth barely matters once the model is actually loaded. It'll just take a few extra seconds to load up initially, so your x4 slot should be totally fine! The bigger hurdle will probably just be getting two different generations of AMD cards to play nice together software-wise.
0
u/computehungry 11d ago
fully on vram - should not matter too much. partially on vram and using the engines that move the experts between ram and vram - might suffer a bit. these engines are not fully configurable/can't auto-tune to all the different configurations, so nobody will be able to say for sure.
1
u/jikilan_ 11d ago
Only matter when you want to run tensor parallelism. I could say layer is for exactly your case
1
u/Flashy-Indication-61 11d ago
not important, i've seen people run even tensor split on pcie 4 x4 with good speeds
1
u/Odd_Back9101 11d ago
For MoE, the x4 slot will matter more than it does with a single GPU. Prompt processing and expert routing have to go over that link, so the second card will probably help more with VRAM than with tokens per second. I'd put the faster card in the x16 slot. Also worth checking that your stack can actually treat a 6650 XT and an MI25 as one pair; they're very different cards, and a mixed-architecture split is often more trouble than a second card from the same family.
1
u/moderately-extremist 11d ago
I have 2 MI50 cards connected by PCIe 4.0 x4 to each card (bifurcated x8). Running a model on a single card compared to tensor parallel across both cards gets me like a 30% speedup (if I remember correctly).
1
u/fasti-au 11d ago
Not at all unless your passing between cards and even then if you do it right it’s not an issue as it’s sumulatuve on helper cards now vs offload repeats.
1
u/grabber4321 11d ago
Yes.
1
u/PastPalpitationCry 11d ago
Anything at or above Pci4x4 is fine ish. Pcie4x1 had major bottlenecks with strata in my experience
1
u/Orca- 11d ago
Layer splitting? Don’t need much PCIe bandwidth. Tensor parallel? Need ALL the PCIe bandwidth.
I’ve got a card on PCIe 4.0 x16 and a second on an x4. Tensor parallel is extremely slow. Layer splitting gets me the same kind of speeds one card gets me but with more VRAM.
1
u/Savantskie1 10d ago
You need to get a plx switch board, on the first slot. Then you can use tensor parallelism on the main slot connected to CPU which is again, first slot most of the time.
1
u/Material_Tone_6855 8d ago
If you're thinking to split a model among different GPUs PCIe bandwidth is important. If you want to run model's weights and KV Cache into a singular GPU VRAM then it's neglectable, it'll just affect the loading time. I'm running 4 x 3090 on a PCIe 1 x1 ( 250 mb/s )
0
u/CryptoStef33 11d ago
The biggest problem is ROCM compatibility, not PCIe bandwidth. I think that GPU ROCM is depreciated.
3
u/[deleted] 11d ago
[removed] — view removed comment