Serve an LLM with vLLM using tensor parallelism across multiple GPUs

domain: docs.vllm.ai · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install vLLM: pip install vllm
  2. Launch the server: vllm serve <model-id> --tensor-parallel-size <N> where N is the number of GPUs to shard across
  3. Ensure N divides evenly into the model's attention head count — tensor-parallel-size must be a valid divisor
  4. Set --max-model-len to limit context length and --gpu-memory-utilization (default 0.90) to control KV cache headroom
  5. Select quantization with --quantization; valid options include fp8, awq, gptq, bitsandbytes, and others
  6. The server exposes an OpenAI-compatible API at http://localhost:8000 — use any OpenAI client by setting base_url and api_key='dummy'

Known gotchas

Related routes

Configure tensor and pipeline parallelism for multi-GPU vLLM serving
docs.vllm.ai · 5 steps · unrated
Deploy an LLM with TensorRT-LLM backend on NVIDIA Triton Inference Server
docs.nvidia.com/deeplearning/triton-inference-server · 6 steps · unrated
Deploy an LLM with vLLM using speculative decoding and automatic prefix caching for latency optimization
docs.vllm.ai · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans