Pick the GPU from the model’s memory need
Start with arithmetic, not a GPU name. Weights at 16-bit precision need about two bytes per parameter, and the vLLM server needs the rest of the card for the KV cache that holds each active request’s context. The LLM VRAM budget guide covers the full estimate; here you only need a floor and a target headroom.
Take an illustrative 8-billion-parameter model in BF16: 8 billion × 2 bytes is 16 GB of weights. On an 80 GB card with vLLM allowed to use 90% of memory, the budget is 72 GB, which leaves roughly 56 GB for KV cache, activations and runtime buffers. That is generous for a chat service. The same model on a 24 GB card leaves only a few gigabytes, which caps context and concurrency hard.
A 70-billion-parameter model at the same precision needs about 140 GB for weights alone, so it does not fit on one 80 GB GPU. Two cards give 160 GB, but most of that is weights; four leave real room for traffic. If you are still choosing hardware, how to choose a GPU for AI walks through the trade-offs, and quantized weights are covered in LLM quantization for inference.
| Illustrative model (BF16) | Weights | Starting point |
|---|---|---|
| 8B parameters | ≈16 GB | One 48 GB or 80 GB GPU |
| 32B parameters | ≈64 GB | One 80 GB GPU, tight on context |
| 70B parameters | ≈140 GB | Two to four 80 GB GPUs with tensor parallelism |
Check the machine before you install anything
Run nvidia-smi first. It confirms that the driver loads, shows the exact product name and total memory, and lists any processes already holding GPU memory. If the card count, model or memory size does not match your quote, stop and ask the provider before spending hours on setup.
vLLM’s GPU installation page lists the baseline: Linux, Python 3.11 to 3.14, and an NVIDIA GPU with compute capability 7.5 or higher, which includes A100, L4 and H100. The default binaries are compiled against CUDA 12.9, with CUDA 12.8 and 13.2 builds also available, so check that the driver is recent enough for the build you install.
On multi-GPU machines, also run nvidia-smi topo -m. The matrix shows NV# where GPUs are linked by NVLink and PIX, PHB, NODE or SYS where traffic crosses PCIe or the CPU interconnect. That difference matters later when you set tensor parallel size.
References: NVIDIA System Management Interface · vLLM documentation: GPU installation
Install with Docker or pip
The official vllm/vllm-openai image is the quickest route to deploy vLLM on a cloud GPU. The documented docker run command passes the GPUs with --runtime nvidia --gpus all, maps port 8000, passes HF_TOKEN for gated models, and adds --ipc=host so PyTorch can use host shared memory for tensor parallel inference; --shm-size is the documented alternative. Anything after the image name is passed to vLLM as an engine argument.
Pin a specific image tag instead of latest so a restart cannot silently change the engine version. The docs also note that the image runs as root by default, and that --user 2000:0 runs it as the built-in vllm user with the cache mounted under /home/vllm instead.
If you prefer a virtual environment, the documented install is uv pip install vllm --torch-backend=auto, followed by vllm download-kernels; a pip command with the PyTorch CUDA index is listed as an alternative. Docker is easier to reproduce across machines, while pip is easier to patch when you are debugging.
References: vLLM documentation: Using Docker · vLLM documentation: GPU installation
The vllm serve flags that matter
The basic launch is vllm serve followed by a Hugging Face model ID. Most defaults are sensible, but five flags decide whether the server fits your hardware and your traffic. Set them explicitly and record them with the image tag, so the configuration you tested is the one you run.
The tensor parallel size should equal the number of GPUs on one node that will share the model. vLLM’s parallelism guide recommends tensor parallelism when a model is too large for one GPU but fits on one node, and suggests pipeline parallelism on GPUs without NVLink, such as L40S, because tensor parallelism depends on fast GPU-to-GPU links. The single vs multi-GPU comparison explains when splitting a model is worth the complexity.
Max model length caps tokens per request, prompt plus output. Left unset, vLLM derives it from the model config, which can be a very long context that reserves cache you will never use. Set it to the longest request your application accepts. For quantized checkpoints, --quantization selects the method; choosing a method is a separate decision.
| Flag | What it controls | How to set it |
|---|---|---|
| --tensor-parallel-size (-tp) | GPUs on one node sharing the model; default 1 | Number of GPUs the model needs on that node |
| --max-model-len | Maximum tokens per request; derived from the model config if unset | Longest prompt plus output you will accept |
| --gpu-memory-utilization | Share of GPU memory vLLM may use; docs list 0.92 or 1.0 depending on KV cache mode | Lower it if other processes share the card |
| --quantization (-q) | Weight quantization method | Only for quantized checkpoints |
| --api-key | Key required on /v1 and some other prefixes; VLLM_API_KEY also works | Always set it on a reachable server |
References: vLLM documentation: vllm serve CLI arguments · vLLM documentation: Parallelism and scaling
Send a test request to the OpenAI-compatible API
Once the log shows the server listening on port 8000, the default, check /health and then /v1/models. The models endpoint should return the name you served; --served-model-name sets a stable alias if you want clients to stay independent of the Hugging Face ID.
Then send one chat request. vLLM’s documentation uses the official OpenAI Python client with base_url set to the server’s /v1 address and api_key set to your key, calling chat.completions.create. Any client that speaks the OpenAI-compatible API should work the same way, which is the main reason to choose this server: your application code does not need a custom SDK.
Check three things in the reply: the output is coherent, the token counts look right, and a request without the key is refused. Chat completions need a chat template; most instruction-tuned models ship one, and vLLM accepts --chat-template if yours does not.
References: vLLM documentation: Online serving · vLLM documentation: OpenAI-compatible server · vLLM documentation: vllm serve CLI arguments
Load-test with vllm bench serve before you commit
A single good response proves almost nothing about capacity. The test to run before you commit is vllm bench serve against the running server, which defaults to 127.0.0.1:8000, the /v1/completions endpoint and a random dataset with 1,024 input and 128 output tokens per prompt across 1,000 prompts.
Change those lengths to match your real traffic with --random-input-len and --random-output-len, then step --max-concurrency up in stages. The report includes TTFT, TPOT and ITL, at the 99th percentile by default. Stop at the concurrency where your latency target breaks, and treat that as the capacity of one replica.
Watch nvidia-smi during the run. If memory is nearly full and requests queue, reduce max model length or add a GPU; if memory is low and latency is fine, the card has room for more traffic. The full method for a fair comparison is in benchmark LLM inference.
References: vLLM serving benchmark options · NVIDIA System Management Interface
Persist the model cache so restarts are fast
Without a persistent cache, every restart downloads the weights again. For a 140 GB model that can turn a quick restart into a long outage. The Docker example mounts ~/.cache/huggingface into the container for exactly this reason, so weights already downloaded are reused.
Put that cache on a disk that survives the instance stopping, not on ephemeral scratch storage. With a pip install, --download-dir points vLLM at a specific directory; by default it uses the Hugging Face cache. Check what the volume costs while the GPU is off, as explained in storage and egress costs.
References: vLLM documentation: Using Docker · vLLM documentation: vllm serve CLI arguments
Put a reverse proxy, TLS and auth in front
Do not expose port 8000 to the internet. vLLM’s documentation says --api-key only protects the /v1, /v2, /inference and /cohere prefixes, that other endpoints such as /invocations are not authenticated, and that you should not rely on --api-key alone. It recommends a reverse proxy as part of hardening.
A practical layout is to bind vLLM to localhost with --host 127.0.0.1 and run a reverse proxy on the same machine. The proxy terminates TLS, forwards only the paths your clients need, enforces per-client keys and rate limits, and writes access logs. Keep the vLLM key as a second layer, and let your load balancer poll /health.
References: vLLM documentation: OpenAI-compatible server · vLLM documentation: vllm serve CLI arguments

Pre-production checklist to deploy vLLM on a cloud GPU
Run through this list before you send real users to the endpoint. Each item is cheap to check now and expensive to discover during an incident.
When the checks pass, you know what to rent: the GPU model, the count, and how many hours of serving you need. On NeuraMesh you choose the GPU, a plan (Data center for production serving, Value for experiments and batch work), the GPU count, hours and region, for example on the H100 rental page. NeuraMesh sends a confirmed quotation, typically within one business day, and nothing is charged until you approve it. Current rates are on GPU prices.
| Check | Pass condition |
|---|---|
| Hardware | nvidia-smi shows the quoted GPU model, count and memory |
| Version pinning | Image tag or package version and model revision recorded |
| Flags | Tensor parallel size, max model length and memory utilization set explicitly |
| Capacity | vllm bench serve run at real lengths; latency limit and concurrency recorded |
| Cache | Weights on a persistent volume; a restart reloads without downloading |
| Security | vLLM bound to localhost; proxy with TLS, keys and rate limits in front |
| Recovery | Restart policy set; health check and an alert on failures |
NeuraMesh prices for these GPUs
| GPU | Memory | Data center | Value |
|---|---|---|---|
| L40S | 48 GB | $1.26 | $0.54 |
| A100 | 80 GB | $1.56 | $0.98 |
| H100 | 80 GB | $2.88 | $2.00 |
| H200 | 141 GB | $4.60 | $2.73 |
Every order is confirmed in a quotation before you pay. See all GPU prices.
Questions readers ask
How much GPU memory do I need to deploy vLLM on a cloud GPU?
At least the model weights, about two bytes per parameter in BF16, plus room for the KV cache. An illustrative 8B model needs about 16 GB of weights, so a 48 GB or 80 GB card leaves comfortable headroom. Measure actual use under load before choosing the final size.
What should I set --gpu-memory-utilization to?
Start with the documented default and lower it only if another process shares the GPU, such as a second model or a monitoring agent. The value is the share of total GPU memory vLLM may claim, so setting it too low shrinks the KV cache and the concurrency you can serve.
Is the vLLM API key enough to secure the server?
No. vLLM’s documentation says --api-key only covers certain path prefixes and that some endpoints remain unauthenticated. Bind the server to localhost and put a reverse proxy with TLS, per-client keys and rate limits in front, keeping the vLLM key as a second layer.
When should I use tensor parallelism instead of one GPU?
Use it when the weights plus a useful KV cache do not fit on one GPU but do fit across the GPUs of one node. vLLM’s guide favors tensor parallelism on NVLink-connected GPUs and suggests pipeline parallelism on cards without NVLink, so check nvidia-smi topo -m first.
Why does vLLM download the model every time it restarts?
The weights are being saved to storage that does not persist. Mount the Hugging Face cache from a persistent volume into the container, or point --download-dir at a persistent path with a pip install, and restarts will reuse the files already on disk.
Sources and editorial notes
- NVIDIA System Management Interface
- vLLM documentation: GPU installation
- vLLM documentation: Using Docker
- vLLM documentation: vllm serve CLI arguments
- vLLM documentation: Parallelism and scaling
- vLLM documentation: Online serving
- vLLM documentation: OpenAI-compatible server
- vLLM serving benchmark options
Primary documentation reviewed November 18, 2026. Provider descriptions reflect published documentation. Recommendations are our analysis; worked figures are illustrative unless explicitly stated otherwise. No independent provider benchmark or uptime ranking is claimed.
Need this GPU? Rent it from NeuraMesh: choose a GPU and plan, get a confirmed quotation, and pay only when you approve. See pricing.



