Black Friday week: local AI hardware on sale. See the list.

Multi-GPU LLM Planner

Will your model fit across two, three or four cards, and what does the rest of the box need? Pick the cards, the board and the model. You get the fit with llama.cpp's layer split, the -ts value for mixed cards, whether vLLM tensor parallel accepts that many GPUs, the PCIe link each card gets, the power supply and the wall circuit.

How it works

need     = weights (GGUF file) + KV cache at -c
room     = sum(card VRAM - 1 GiB) - (cards - 1) x one layer
fits     = need <= room
-ts      = each card's VRAM - 1 GiB, when the cards differ
vLLM TP  = heads % GPUs == 0, KV heads divide by GPUs or GPUs by KV heads
DC load  = GPU board power x limit + CPU + 100 W
PSU      = smallest of 850 / 1000 / 1200 / 1600 W >= DC load x 1.2
wall     = DC load / 0.9, against 80% of the breaker

Cards needed at 32K context (Q4 file, f16 cache)

Model (quant)RTX 3060 12GBRTX 5060 Ti 16GBRTX 3090 24GBRTX 5090 32GBRadeon AI PRO R9700 32GB
Gemma 4 E4B (Q4_K_M)11111
Qwen3.5 9B (Q4_K_M)11111
Gemma 4 12B (Q4_K_M)11111
gpt-oss 20B (MXFP4)21111
Qwen3.8 27B (UD-Q4_K_M)22111
Gemma 4 26B-A4B (UD-Q4_K_M)22111
Gemma 4 31B (Q4_K_M)22111
Ornith 1.5 35B-A3B (Q4_K_M)22111
Qwen3.6 35B-A3B (UD-Q4_K_M)22111
Qwen3-Coder-Next 80B-A3B (Q4_K_M)54322
gpt-oss 120B (MXFP4)75322
Ornith 1.5 122B (UD-Q4_K_XL)86433

Each cell is the smallest number of that card that holds the whole model and cache with llama.cpp's layer split. A 1 means one card is enough and a second card adds no speed.

Power by build

BuildGPUsDC loadPSUAt the wallCircuit
2x RTX 3090 700 W 950 W 1200 W 1,056 W 15 A
RTX 3090 + RTX 5060 Ti 530 W 780 W 1000 W 867 W 15 A
2x Radeon AI PRO R9700 600 W 850 W 1200 W 944 W 15 A
2x RTX 5090 1,150 W 1,400 W over 1600 W 1,556 W 20 A
2x RTX 5090 at a 70% power limit 806 W 1,056 W 1600 W 1,173 W 15 A
4x RTX 3090 1,400 W 1,850 W over 1600 W 2,056 W 240 V or two circuits
4x RTX PRO 6000 Max-Q 1,200 W 1,650 W over 1600 W 1,833 W 20 A

CPU 150 W on two-card builds and 350 W on four-card builds. On 120 V input some 1600 W units are rated lower: the Seasonic PRIME TX-1600 is 1,300 W continuous on low-line power, per the reviews cited in the electrical guide. Check your unit's manual.

What a second card does not do

It does not double your tokens per second. In a layer split the cards take turns, so one user's decode speed stays near one card's. The PCIe link matters little for that: each token passes one small activation from card to card. It matters more for loading, for long prompts, and for vLLM tensor parallel, which exchanges data inside every layer. The 3-GPU trap: vLLM tensor parallel refuses 3 GPUs for every model on this page, so a third card means llama.cpp, or vLLM pipeline parallel. For a speed estimate, use the tokens per second calculator on one card.

Questions

Does a second GPU make a local LLM faster?

Not for one user's token speed. llama.cpp's default split mode is layer: "split layers and KV across GPUs (pipelined)", so the cards take turns on each token. A second card buys memory: a model that did not fit now runs at full GPU speed instead of spilling into system RAM. vLLM tensor parallel does run the cards at the same time, but it needs a GPU count that divides the model's attention heads.

How do I split a model across two different GPUs in llama.cpp?

Use --split-mode layer (the default) with --tensor-split. llama.cpp's help text: "fraction of the model to offload to each GPU, comma-separated list of proportions, e.g. 3,1". This page splits by usable memory, so an RTX 3090 plus an RTX 5060 Ti is -ts 23,15 (24 and 16 GB, less 1 GiB each for buffers). Ollama does the split itself: if the model fits on one GPU it loads there, and if not "it will be spread across all the available GPUs" (Ollama FAQ).

Can vLLM run a model on 3 GPUs?

Not with tensor parallel, for any model on this page. vLLM stops at startup unless the attention heads divide by the tensor-parallel size ("Total number of attention heads ... must be divisible by tensor parallel size"), and most models have 8, 16, 32 or 64 heads. Qwen3.8 27B has 24 attention heads, but its 4 KV heads and 16 linear-attention key heads still fail at 3. vLLM's docs give the way out: pipeline parallel "splits the model along layers and supports uneven splits". llama.cpp's layer split takes any count.

What power supply do I need for 2 or 4 GPUs?

Add the cards' board power, the CPU, and about 100 W for the rest, then add 20% headroom. Two RTX 3090s with a 150 W CPU come to 950 W, so a 1200 W unit. Two RTX 5090s come to 1400 W, past what a 1600 W unit holds with headroom, and 1556 W at the wall is over a 15 A circuit's 1440 W continuous limit. Power-limit the cards or plan a 20 A circuit.

How many RTX 3090s do I need for gpt-oss 120B?

3 at 32K context with an f16 cache. The MXFP4 file plus cache is too big for 2 cards once each keeps 1 GiB free and a layer is lost at each boundary. Use --n-cpu-moe to run it on one or two cards with the experts in system RAM, slower but cheaper.

Sources

Related