Hardware

Multi GPU Setup for LLMs: Do Two GPUs Beat One?

Multi GPU setup for local LLMs: when two GPUs beat one, pipeline vs tensor parallel, llama.cpp, Ollama and vLLM settings, PCIe, power and mistakes.

By OmniAI Editorial · Nov 20, 2026 · 11 min read

A multi GPU setup lets you run language models that don't fit in one card's memory by splitting the model across two or more GPUs, and can speed up serving many users at once. For a single person chatting with a model that already fits on one card, a second GPU adds little or no speed. The main reason to add a second card is more VRAM: two 24 GB cards give you 48 GB, enough for 70B-class models at 4-bit, at a lower price than one large professional card.

This guide explains when two GPUs beat one, how models are split across cards, how to set it up in llama.cpp, Ollama and vLLM, what hardware you need, and the mistakes that cost people money.

Is Two GPUs Better Than One?

Is two GPUs better than one? Sometimes. It depends on what you need more of: memory or speed.

Your goalDoes a second GPU help?Why
Run a model too big for one cardYes, a lotThe model fits in VRAM instead of spilling into slow system RAM
Faster replies from a model that already fitsLittle or none with the default splitCards take turns working on different layers
Serve several users at the same timeYesWork can be spread and batched across cards
Faster replies with tensor parallelismSomewhatNeeds fast links between cards; works best on matched NVIDIA GPUs
Run two different models at onceYesEach card runs its own model
Image or video generationUsually not for one imageMost diffusion workflows don't split one image across cards
Fine-tuningYes, with the right toolsTraining frameworks can spread work across cards

The key insight: in the common setup, a second card mostly adds capacity, not speed. Your generation speed is limited by each card's memory bandwidth, and data has to pass between cards for every token.

How Models Are Split Across GPUs

There are two main ways to split a language model:

Pipeline parallelism (split by layer). Each GPU holds a block of the model's layers. A token passes through GPU 1's layers, then GPU 2's. Little data moves between cards, so it works even over ordinary PCIe connections, but the cards work one after another rather than at the same time for a single request. This is the default in llama.cpp and Ollama.

Tensor parallelism (split within layers). Each layer is divided across the GPUs, so all cards work on every token at the same time. That can make single-user generation faster, but the cards must exchange data many times per layer, so it depends heavily on fast connections between them. It's the standard approach in vLLM for serving.

llama.cpp's documentation puts it simply: pipeline parallel maximizes batch throughput; tensor parallel minimizes latency.

Two panels drawn in ink: on the left a stack of light layer bars split horizontally between two grey card shapes, on the right each layer bar split vertically down the middle across two cards, with an orange dot on the right panel.
Pipeline parallelism gives each card whole layers; tensor parallelism splits every layer across cards.

Multi GPU Setup for Local LLM Tools

llama.cpp

llama.cpp supports several split modes, set with --split-mode (or -sm):

  • `layer` (default): pipeline parallelism; each GPU holds a contiguous slice of layers. The most compatible choice, and it tolerates slow connections between GPUs.
  • `tensor` (experimental): tensor parallelism that splits weights and the KV cache across GPUs. It targets faster token generation, works best on multiple NVIDIA GPUs with the CUDA backend, and isn't implemented for every model architecture.
  • `row`: an older tensor-parallel mode that the docs now mark as deprecated.

Other useful options from the llama.cpp docs:

# See which GPUs llama.cpp can use
llama-cli --list-devices

# Default: split layers across all visible GPUs
llama-server -m model.gguf

# Uneven split for cards with different memory: 75% on GPU 0, 25% on GPU 1
llama-server -m model.gguf -ts 3,1

By default, llama.cpp splits layers in proportion to each card's memory and automatically fits the model and context to the available VRAM.

Ollama

Ollama detects multiple GPUs and spreads a model across them automatically when it doesn't fit on one. There's nothing to configure for the basic case; you can limit which GPUs it uses with the CUDA_VISIBLE_DEVICES environment variable on NVIDIA systems.

vLLM

vLLM, the most popular open-source serving engine, uses tensor parallelism across GPUs on one machine, set with the --tensor-parallel-size option (for example 2 for two GPUs). It's designed for serving many concurrent requests, where multi-GPU setups shine.

What Speed to Expect

Rough guidance for a typical dual GPU setup with the default layer split:

  • A model that fits on one card runs about as fast on two cards as on one, sometimes slightly slower because of the hand-off between cards.
  • A model that needs both cards runs at a speed set mostly by the slower card's memory bandwidth and the total model size, far faster than spilling into system RAM.
  • Many simultaneous users benefit most: batching across cards raises total throughput substantially.

For example, two used RTX 3090s (24 GB each) can hold a 70B model at 4-bit, around 40 GB, entirely in VRAM. A single 3090 would have to put almost half the model in system RAM, which slows generation to a crawl. That's the classic case where two GPUs clearly beat one. Our guide to the RTX 3090 for AI explains why used 3090s are popular for this.

Hardware You Need for a Dual GPU Setup

Motherboard and PCIe lanes

Each card needs a PCIe slot with enough bandwidth and physical space. On most consumer motherboards, two cards share the CPU's lanes, often running at x8 and x8, or one card at x16 and the second at x4 through the chipset. For inference with layer splitting, x8 or even x4 per card is usually fine, because little data crosses between cards. Tensor parallelism and training are more sensitive. Our guide to PCIe 5 vs 4 explains what slot bandwidth actually affects.

Physical space and cooling

High-end cards are often three or more slots thick. Check the spacing between slots, the case's room for two cards, and airflow: a card sitting directly above another gets very hot. Options include cases with good airflow, blower-style cards designed for stacking, PCIe riser cables to mount a card elsewhere, or open-frame rigs.

Power supply

Two high-end GPUs can draw well over 1,000 watts together under load, plus brief spikes above that. Size the power supply for both cards, the CPU and headroom, and use proper power cables for each card. Limiting each card's power by 20–30% often costs only a few percent of performance for LLM inference and makes a dual setup much easier to power and cool.

Matching cards

You can mix different GPUs, but with a layer split, the system tends to run at the pace of the slower card, and uneven memory can leave capacity unused. Matching cards, or at least matching memory sizes, keeps things simple. NVIDIA and AMD cards can't easily be combined in one model with most tools.

What about NVLink?

Current consumer NVIDIA cards don't have NVLink; the RTX 3090 was the last consumer card with an NVLink connector. For inference with layer splitting, NVLink makes little difference. It matters more for tensor parallelism and training, where cards exchange lots of data.

A light computer case outline drawn in ink containing two grey cards stacked with a small gap, ink airflow arrows passing between them, and an orange arrow at the top exit.
Two big cards need space, airflow and a power supply sized for both.

Multi GPU Setup for Image Generation and Fine-Tuning

  • Image and video generation: most ComfyUI and Stable Diffusion workflows run one generation on one GPU. A second card helps you run two generations at once, or split parts of a pipeline (for example, a text encoder on one card), but it doesn't usually make one image faster.
  • Fine-tuning: training frameworks can spread work across GPUs (data parallel training) or shard large models across them. A dual GPU setup can make fine-tuning larger models possible, but setup is more complex than for inference.

Two GPUs vs One Bigger GPU vs Unified Memory

OptionMemorySpeed for models that fitComplexity
Two used 24 GB cards48 GB totalGoodHigher: power, cooling, PCIe, tools
One 32 GB card32 GBExcellentLow
One 96 GB professional card96 GBExcellentLow, but very expensive
128 GB unified memory machine~96–128 GB usableModerateLow
Cloud GPUs by the hourAs much as you rentExcellentLow upfront; pay per use

For many people, the simplest options win: one good card for models up to about 30B, a unified memory machine for very large models, or rented cloud GPUs for occasional heavy jobs. A dual GPU setup makes most sense if you want to run 70B-class dense models locally at decent speed on a budget, or serve several users. Our guide to building an AI PC covers the rest of the build.

Common Mistakes

  • Expecting double speed from a second card for single-user chat.
  • Mismatched cards that leave the faster or larger one underused.
  • An undersized power supply that shuts down under load spikes.
  • Cards too close together, causing heat throttling.
  • Using the second card's slot through a slow chipset link for workloads that need bandwidth.
  • Buying for image generation assuming it will split one image across cards.
  • Ignoring the cloud option for occasional large jobs.

A Dual GPU Setup Example

Here's what a typical budget dual GPU setup for local LLMs looks like:

  • Two used 24 GB cards of the same model, for 48 GB of VRAM in total.
  • A motherboard with two full-length PCIe slots spaced far enough apart for two thick cards, ideally running at x8/x8 from the CPU.
  • A 1,200 to 1,600 W power supply with enough separate GPU power cables for both cards.
  • A large case with strong front-to-back airflow, or an open-frame rig.
  • 64 GB or more of system RAM, so model loading and other work don't run short.
  • Software: Ollama or llama.cpp for simple local use, or vLLM for serving several users.

With this setup, a 70B-class model at 4-bit fits entirely in VRAM, and smaller models can run one per card at the same time. Setting each card's power limit somewhat below its maximum keeps heat and noise manageable with little loss in speed.

Multi GPU Setup for Gaming

Multi-GPU gaming is effectively over. NVIDIA's SLI and AMD's CrossFire, which let two cards render one game, are no longer supported in new cards and games. A second card can still help in specific cases, such as running frame-generation tools on a separate GPU or dedicating one card to streaming, but for gaming, one strong card is the right choice. Multi GPU setups today are about AI, rendering and compute, not frame rates.

Before You Buy a Second GPU

Run your real workload on one card first, and write down what limits you: model size, context length, speed or the number of users. If it's model size, a second card helps. If it's single-user speed, a faster card or a smaller, better-quantized model often helps more. Renting a two-GPU cloud machine for an afternoon is a cheap way to test the exact setup before buying hardware.

FAQ

Is two GPUs better than one for AI?

For running models too large for one card, yes: two GPUs keep the whole model in fast VRAM. For a model that already fits on one card, a second GPU usually doesn't make single-user responses faster. Multiple GPUs also help when serving several users at once.

Can you combine VRAM from two GPUs?

Yes, in the sense that tools like llama.cpp, Ollama and vLLM can split one model across both cards and use their combined memory. The memory isn't truly merged: each card holds part of the model, and data passes between them.

Do I need NVLink for a multi GPU setup?

No. For local LLM inference with the default layer split, NVLink makes little difference, and current consumer NVIDIA cards don't support it. It matters more for tensor parallelism and training.

Can I use two different GPUs together?

Yes, with most tools, as long as they're from the same vendor and supported by the same backend. Speed tends to follow the slower card, and you may need to adjust the split ratio for cards with different memory.

How much power do two GPUs need?

Add up both cards' rated power, the CPU and the rest of the system, then add headroom for spikes. Two high-end cards often need a power supply of 1,500 watts or more, while lowering each card's power limit can reduce that substantially.

All articles

Read next

Language

EnglishEnglish · en TürkçeTurkish · tr DeutschGerman · de العربيةArabic · ar

Account

Enter your email. We’ll send you a sign-in link and a 6-digit code. No password needed.

Sign in

Theme

Language

Show our email address

To keep spam out of our inbox, please confirm your own email first. We will send you a 6-digit code.

We send codes only to these providers: gmail.com, googlemail.com, outlook.com, hotmail.com, live.com, msn.com, proton.me, protonmail.com, pm.me, icloud.com, me.com, mac.com, yahoo.com, aol.com, gmx.de, gmx.net, web.de, t-online.de, yandex.com, omniai.blog