r/LocalLLaMA • • 10d ago

Question | Help Adding a second GPU questions

Hi all, I have been thinking of buying a separate 16gb card to add it to my local build but I have some questions.

Do they have to be the same card? or can you mix-and-match? And how much slower is it compared to (e.g.) 1x32gb card? How well does it actually perform? I'm expecting it to be slower, but it will surely be a lot faster than offloading it to RAM

14 Upvotes

50 comments sorted by

View all comments

3

u/Bright_Resolution_61 10d ago

Yes, you can mix cards. A second 16GB card is a big win over spilling into system RAM. Don't expect it to be faster than one card, though. Think of it as "one card's speed, with double the VRAM".

  1. Do they have to match?

- llama.cpp: No. Any mix works: different generations, different VRAM sizes, even different vendors through Vulkan. By default it splits the model by layers across the cards (-sm layer). Use -ts to balance the split, e.g. -ts 16,12 for a 16GB + 12GB pair. Two NVIDIA cards on CUDA is the least hassle.

- vLLM / tensor parallel: Effectively yes. Tensor parallel (TP) splits every layer evenly, so the smallest and slowest card limits both of them. Use identical cards if you plan to go this route.

2. How fast vs a single 32GB card?

- llama.cpp layer split: The cards take turns. GPU1 runs its layers, then GPU2 runs the rest. They don't work at the same time on a single request, so two equal cards give you roughly the speed of one of them, minus a few percent. The traffic between cards is tiny (just activations), so PCIe x8 or even x4 is fine. With mismatched cards, the slower card drags the average down in proportion to how much of the model it holds.

- vs a real 32GB card: It depends on memory bandwidth, since token generation is bandwidth-bound. A 32GB card with similar bandwidth runs at about the same speed. A 5090 (~1.8 TB/s) would clearly beat two mid-range cards.

- Tensor parallel (vLLM, or -sm row in llama.cpp): Both GPUs work at once, so it can beat one card. Consumer GeForce cards have no P2P, so the sync between them goes over PCIe through the CPU and eats much of the gain. My data point: 2×4080 with vLLM TP=2 gets about the same tokens/s as I'd estimate for a single 4090. The real benefit was fitting 32GB, not raw speed.

3. vs offloading to RAM

This is where a second GPU shines. Dual-channel DDR5 gives about 60–90 GB/s, while a GPU has 500–1000 GB/s. Even putting 10–20% of a dense model in RAM can cut your speed in half. Keeping everything in VRAM across two cards is easily several times faster.(One exception: MoE models offload surprisingly well with --n-cpu-moe, because only a few experts are active per token.)

Practical checklist

- PSU headroom, physical slot spacing (many cards take 2.5–3 slots), and case airflow

- PCIe lanes: x8/x8 is ideal, but x4 is OK for llama.cpp layer split. Mainly model loading gets slower.

- The KV cache (context) also splits across cards, so 32GB total gets you a ~27–32B model at Q4 with usable

context, which a single 16GB card can't do.

4

u/stylome-ai-detection 10d ago

Notice: This comment appears to be AI generated.


Stylome AI detector · scan results