Skip to content

Multi-GPU Scaling — Tensor vs Pipeline vs Data Parallelism

TP needs fast NVLink/PCIe and identical GPUs. Two RTX 5090s run Llama 3.3 70B at about 27 tok/s.

  • Tensor parallelism (TP) splits each layer's weight matrices across GPUs. Weights shard exactly: a 70B at Q4 (~40 GB) splits to ~20 GB per GPU across 2 cards. Best scaling for latency, but requires all-reduce collectives per layer, so it needs fast NVLink/PCIe interconnect and identical GPUs. TP degree must divide the attention head count.
  • Pipeline parallelism (PP) splits by layer, so GPU 1 holds layers 1–40 and GPU 2 layers 41–80. Lower communication cost, but GPUs idle during their non-active phase ("bubble"), hurting throughput at small batch.
  • Data parallelism (DP) replicates the whole model — only useful for throughput of many concurrent requests, and requires TP=1 per replica plus enough VRAM per card for the full model.

Reference implementations and configuration: vLLM parallelism and scaling docs, vLLM distributed inference, and a walkthrough of DP/PP/TP trade-offs at jarvislabs.ai. For MoE models, expert parallelism becomes the dominant axis — AMD's vLLM MoE playbook is a good practical reference.

Consumer reality check: two RTX 5090s run Llama 3.3 70B at about 27 tok/s, and no reproducible single-5090 measurement with CPU offload of a 70B was found — the model simply doesn't fit (presenc.ai). llama.cpp and Ollama both support layer-split across heterogeneous cards (modelfit.io documents VRAM pooling across 2–3 cards), but throughput collapses to the slowest device plus PCIe.

Sources

Date: 2026-10-09