Tensor parallelism VRAM calculator
Sharding a 70B or 405B model across GPUs shrinks per-card weights linearly, but every transformer layer pays two all-reduce syncs over NVLink or PCIe. Model your TP degree below to see exact free KV VRAM and interconnect tax.
Interactive calculator
| TP Degree | Weights / GPU | Free KV / GPU | All-Reduce Tax | Fit Status |
|---|
How to pick the right tensor parallelism degree
- Use the smallest TP degree that leaves 25%+ VRAM for KV cache. Running two independent TP2 replicas on a 4-GPU node almost always beats one TP4 replica on aggregate throughput because you cut all-reduce syncs in half.
- Avoid tensor parallelism across PCIe when serving low-latency chat. Each decoder layer triggers two all-reduce barriers. Over 64 GB/s PCIe, communication latency dominates small-batch decode.
- Keep tensor parallelism inside a single NVLink node. Never stretch TP across Ethernet or InfiniBand unless the model physically cannot fit in 8 GPUs. Use pipeline parallelism across nodes instead.
- Check attention head divisibility before picking TP. Your KV head count must divide cleanly by TP degree. Models with 8 KV heads run cleanly on TP1, TP2, TP4, and TP8.
Common questions
Why is TP2 often faster per dollar than TP4?
Two TP2 replicas serve double the independent batches with less NCCL synchronization overhead, giving higher total tok/s per dollar unless single-user TTFT requires TP4.
How much VRAM should stay free after loading model weights?
Leave at least 20% to 30% of each GPU free for KV cache blocks, CUDA graphs, and temporary activation buffers.
What does all-reduce overhead scale with?
Ring and tree all-reduce latency scales with hidden dimension, layer count, and the number of participating ranks, divided by interconnect bandwidth.
When should I choose H200 141GB over 2x H100 80GB?
A single H200 fits a 70B FP8 model at TP1 with zero interconnect sync overhead, which often matches or beats 2x H100 at lower hourly cost.
All calculations run 100% locally in your browser with zero external API calls. Hardware specs and hourly rates reflect published 2026 cloud and silicon datasheets.