Multi-GPU LLM Setup: Run Bigger Models Across Two or More Cards
Run large local models across several GPUs: layer splitting vs tensor parallelism, llama.cpp and vLLM settings, mixed cards, PCIe and power planning.
Two 24 GB cards hold a 70B model at Q4 that no single consumer GPU can. Here is how to set it up.
Two ways to split
| Method | How it works | Best for |
|---|---|---|
| Layer split | Each GPU holds a block of layers | Mixed cards, llama.cpp, Ollama |
| Tensor parallel | Each layer is split across GPUs | Matching cards, vLLM, ExLlama |
llama.cpp
llama.cpp splits layers across visible GPUs automatically. Useful options:
--tensor-split 3,1to weight the split by VRAM.--split-mode rowto try row splitting on some setups.-ngl 99to offload all layers.
Ollama uses llama.cpp and spreads models across GPUs automatically.
vLLM
Use --tensor-parallel-size 2 with matching GPUs for higher throughput, especially with many requests at once.
Planning memory
Add model size, KV cache and about 1 GB overhead per card. Use the LLM VRAM calculator and the context length calculator.
Hardware
- Power: two high-end GPUs can draw 600-900 W under load; size the PSU accordingly.
- Spacing: leave airflow between cards or use risers.
- Lanes: x8/x8 is fine for inference.
Is it worth it?
Compare running costs with the local vs API cost calculator. For model picks see uncensored models for 24 GB VRAM.
Common questions
Do two GPUs double speed?
Not with layer splitting, which mostly adds memory. Tensor parallelism can speed up generation, especially in vLLM with matching cards.
Can I mix different GPUs?
Yes with llama.cpp layer splitting. Assign more layers to the card with more VRAM. Speed tends toward the slower card.
Does PCIe bandwidth matter?
Little for layer splitting during generation. It matters more for tensor parallelism and for loading models.
Related reading
Best Uncensored Models for 8 GB VRAM
GuideBest Uncensored Models for 24 GB VRAM
GuideRun an LLM on CPU Only: What Speed to Expect and How
Free toolLLM VRAM Calculator
Browse more: all guides · comparisons · glossary · free tools