If the model fits on one GPU with room for its KV cache, run one copy per GPU; if it doesn't, split each layer across the GPUs of one NVLink-connected machine with tensor parallelism, and add pipeline parallelism only to cross machines or GPUs without NVLink. On Nodus, nodus run --gpu H100-SXM:4 hands one container four GPUs of the same machine, so Llama 3.3 70B at BF16 serves with vllm serve ... --tensor-parallel-size 4 for $249.60 a day at the listed H100 rate. The rest of this guide is the memory math that tells you how many GPUs you need, and a rule for which kind of split to use.
What are the three ways to spread inference over GPUs?
There are three, and they solve different problems. Data parallelism means replicas: every GPU (or group of GPUs) holds a full copy of the model and serves its own requests. It adds throughput and nothing else, and the GPUs never talk to each other during a request.
Tensor parallelism (TP) cuts every layer's weight matrices into slices, one per GPU.…