# How do you run vLLM with tensor parallelism on several GPUs?

> Split one model over 2, 4 or 8 rented GPUs with vLLM tensor parallelism: 4× H100 hold 320 GB. Crypto, no KYC. Commands included.

- URL: https://rentgpucrypto.com/guides/multi-gpu-tensor-parallel-vllm/
- Last updated: 2026-12-03
- Publisher: RentGPUCrypto (https://rentgpucrypto.com)

**Quick answer — How does vLLM use several GPUs?**

vLLM splits every layer of a model across the cards of one instance with `--tensor-parallel-size`. On **RentGPUCrypto** an instance holds 1, 2, 4 or 8 whole GPUs of one model: four H100 cards give 320 GB, for $1,774.08 a week. Pay in Monero, Bitcoin or USDT, with no KYC.

**In brief**

- **One flag**: `--tensor-parallel-size N`, where N is the number of GPUs and divides the model's attention heads.
- **Interconnect matters**: H100, H200 and A100 on SXM hosts talk over NVLink; RTX cards and PCIe hosts use the PCIe bus.
- **Check before you load**: `nvidia-smi topo -m` shows whether the cards are linked by NVLink.
- **Mixture-of-experts models** can add `--enable-expert-parallel` to spread experts instead of slicing them.
- **Packs** sell 2, 4 or 8 cards at the 720-hour rate per GPU-hour.

## Which multi-GPU set holds which model?

Total VRAM per pack and the interconnect of each GPU, from RentGPUCrypto's catalogue on 3 December 2026.

*RentGPUCrypto multi-GPU packs: cards, total VRAM, interconnect and an example model for tensor parallelism*

| Pack | Total VRAM | Interconnect | Example model | Pack price |
| --- | --- | --- | --- | --- |
| 2× RTX 4090, 30 days | 48 GB | PCIe 4.0 x16, no NVLink | Llama 3.3 70B in 4-bit | $475.20 |
| 2× L40S, 30 days | 96 GB | PCIe 4.0 x16, no NVLink | Llama 3.3 70B in 8-bit | $1,368.00 |
| 2× A100 80GB, 7 days | 160 GB | NVLink 600 GB/s on SXM hosts | Qwen3 235B-A22B in 4-bit | $359.52 |
| 4× H100, 7 days | 320 GB | NVLink 900 GB/s on SXM hosts | Qwen3 235B-A22B in FP8 | $1,774.08 |
| 8× H200, 7 days | 1128 GB | NVLink 900 GB/s on SXM hosts | DeepSeek-V3 / R1 671B in FP8 | $4,690.56 |

## What does tensor parallelism actually split?

**Each weight matrix is cut into N slices, one per GPU, and the GPUs exchange partial results after every layer.** The model therefore needs only a 1/N share of the weights per card, and the KV cache is split the same way. The price is communication: an all-reduce on every layer of every token.

That is why the link between cards decides how well it scales. NVLink on SXM hosts moves data far faster than PCIe. Two or four RTX 4090 cards still work, because the model would not fit otherwise, but each added card brings less speed than it would on an H100 server. The [tensor parallelism explainer](https://rentgpucrypto.com/what-is/tensor-parallelism/ "What is tensor parallelism?") goes deeper.

## How do you check the GPU topology first?

**Run `nvidia-smi topo -m` as soon as you connect.** Entries marked `NV` followed by a number mean NVLink between those two cards; `PIX`, `PXB`, `PHB` or `SYS` mean the traffic crosses the PCIe tree or the CPU. The instance page also shows whether the host is SXM or PCIe.

On RTX cards, peer-to-peer copies over PCIe may be unavailable. vLLM detects this and falls back to NCCL, but if start-up hangs at the all-reduce test, the second command below is the usual fix.

Also confirm that every card shows the same memory total and no other process holds memory on any of them. One busy card limits the whole tensor-parallel group, because vLLM sizes the cache to the smallest free share across all GPUs.

*Topology check and a PCIe fallback*

```bash
nvidia-smi topo -m
nvidia-smi --query-gpu=index,name,memory.total --format=csv

# only if start-up hangs on consumer cards:
export NCCL_P2P_DISABLE=1
```

## What is the launch command for four H100 cards?

**Point `vllm serve` at the model and set the tensor-parallel size to the number of cards.** The FP8 build of Qwen3 235B-A22B is published by the Qwen team. Because it is a mixture-of-experts model, `--enable-expert-parallel` places whole experts on different GPUs, which often beats slicing each expert four ways.

According to RentGPUCrypto's VRAM calculator, the 8-bit model needs 299 GB, inside the 320 GB of four H100 cards with room left for the cache.

*Qwen3 235B-A22B FP8 on four GPUs*

```bash
vllm serve Qwen/Qwen3-235B-A22B-FP8 \
  --tensor-parallel-size 4 \
  --enable-expert-parallel \
  --max-model-len 32768 \
  --gpu-memory-utilization 0.90 \
  --host 127.0.0.1 --port 8000
```

## And with the Docker image?

**The same arguments go after the image name; add `--ipc=host` so the worker processes can share memory.** Without enough shared memory, multi-GPU vLLM fails with NCCL or shared-memory errors. You can enter `vllm/vllm-openai:latest` in the Docker image field when you launch, or run it yourself over SSH as below.

*Llama 3.3 70B in BF16 on two GPUs with Docker*

```bash
docker run --gpus all --ipc=host \
  -v ~/.cache/huggingface:/root/.cache/huggingface \
  -e HF_TOKEN="$HF_TOKEN" \
  -p 127.0.0.1:8000:8000 \
  vllm/vllm-openai:latest \
  --model meta-llama/Llama-3.3-70B-Instruct \
  --tensor-parallel-size 2 \
  --max-model-len 16384
```

## When is tensor parallelism the wrong tool?

**When the model fits on one card, run one copy per GPU instead.** Two independent vLLM servers on two RTX 4090 cards, each with `CUDA_VISIBLE_DEVICES` set to its card, serve more requests per hour than one server split over both. Put a simple load balancer in front.

Tensor parallelism earns its cost only when the weights plus a useful KV cache exceed one card. A sizing check with the [GPU VRAM calculator](https://rentgpucrypto.com/gpu-vram-calculator/ "GPU VRAM calculator for LLMs and image models") before you buy hours avoids renting eight cards for a job that needs four.

If you would rather receive the server ready, the multi-GPU serving setup costs $129: a person configures vLLM across all cards with an OpenAI-compatible endpoint and records the measured throughput. Details are on the [environment setup](https://rentgpucrypto.com/environment-setup/ "GPU environment setup done for you") page.

## Tensor-parallel vLLM: common questions

### Can I use 3 or 6 GPUs with vLLM?

RentGPUCrypto instances come with 1, 2, 4 or 8 cards, which also matches vLLM's need for a tensor-parallel size that divides the number of attention heads. Most models have a head count divisible by 8.

### Do RTX 4090 cards support NVLink?

No. The RTX 4090 has no NVLink connector: PCIe 4.0 x16, no NVLink. Tensor parallelism works over PCIe, with more communication overhead than on SXM data-centre GPUs.

### What is pipeline parallelism in vLLM?

`--pipeline-parallel-size` puts different layers on different GPUs or nodes. It is mostly used across several machines. Inside one RentGPUCrypto instance, tensor parallelism is the normal choice.

### Why does vLLM hang at start-up with several GPUs?

Usually missing shared memory in Docker (add `--ipc=host`) or failed peer-to-peer copies on consumer cards (set `NCCL_P2P_DISABLE=1`). Check `nvidia-smi` to see that every card is visible.

### How are multi-GPU instances billed?

Per minute, GPU count times the GPU's hourly rate, from the GPU-hours of that model. A 4-card instance draws four GPU-hours per hour of running time.

**Verdict**

- **Use tensor parallelism only when one card is too small**; otherwise run one server per GPU.
- **For big models, prefer NVLink hosts**: H100 and H200 packs scale better than PCIe RTX cards.
- **The 4× H100 pack** at $1,774.08 a week covers most open models up to 235B in FP8.

## Sources

1. [vLLM: distributed inference and serving](https://docs.vllm.ai/en/latest/serving/distributed_serving.html) — vLLM
2. [vLLM: using Docker](https://docs.vllm.ai/en/latest/deployment/docker.html) — vLLM
3. [Qwen3-235B-A22B-FP8 model card](https://huggingface.co/Qwen/Qwen3-235B-A22B-FP8) — Qwen / Hugging Face
4. [NCCL environment variables](https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/env.html) — NVIDIA
5. [NVIDIA H100 Tensor Core GPU](https://www.nvidia.com/en-us/data-center/h100/) — NVIDIA

**Four H100 cards for a week** 672 GPU-hours for $1,774.08, paid in crypto, no KYC. [Buy the 4× H100 pack](https://rentgpucrypto.com/app/checkout/?product=h100&plan=h100-x4-week&from=guides-multi-gpu-tensor-parallel-vllm&lang=en) · [See all packs](https://rentgpucrypto.com/packs/?from=guides-multi-gpu-tensor-parallel-vllm "Which multi-GPU pack fits your inference or training job?")

---

RentGPUCrypto: RentGPUCrypto rents whole NVIDIA GPUs (RTX 4090, RTX 5090, L40S, A100 80GB, H100, H200) with root SSH for AI inference, Stable Diffusion and fine-tuning, paid in 7 cryptocurrencies including Monero, with no KYC and no email required.
