New Tool Radar

Local Model Setup

How to Install vLLM With uv on an NVIDIA GPU Machine

Create a Python 3.12 environment with uv, install vLLM with automatic PyTorch backend selection, and confirm the install.

Schematic diagram with four steps: create a Python 3.12 environment with uv, install vLLM with the automatic torch backend, run vllm --help, then confirm the GPU is seen.

vLLM is a serving engine for large language models that runs on Linux with Python 3.10 to 3.13. On an NVIDIA GPU machine the quickstart recommends installing it with uv, a fast Python environment manager, which can pick the right PyTorch build for your CUDA driver automatically.

Create the environment and install vLLM

Install uv first, following its own documentation. Then create a Python 3.12 environment, activate it, and install vLLM with the automatic torch backend: uv pip install vllm --torch-backend=auto. The --torch-backend=auto flag lets uv select the PyTorch index that matches your installed CUDA driver version at install time.

uv venv --python 3.12 --seed
source .venv/bin/activate
uv pip install vllm --torch-backend=auto
vllm --help

To select a specific backend instead, pass it explicitly, for example --torch-backend=cu126. You can also try vLLM without creating a permanent environment: uv run --with vllm vllm --help runs the command once. AMD GPU installs use the same uv route with the ROCm wheel index instead.

Try it: four checks

Check What you should see If you do not see it
Environment made uv venv creates a .venv folder Check uv is installed and Python 3.12 is available
Install finishes uv pip install vllm completes without errors Check the CUDA driver version and the torch backend flag
Command works vllm –help prints the CLI help Activate the virtual environment first
GPU seen A later vllm serve starts without a CUDA error Check the NVIDIA driver with nvidia-smi

Expected result. We checked the vLLM Quickstart, which gives the uv venv, uv pip install vllm –torch-backend=auto and uv run commands, the Python 3.10-3.13 range, and the AMD ROCm variant. We did not install vLLM on this machine.

Limits

This guide covers the NVIDIA GPU install only. Docker installs, installing from source and non-CUDA platforms follow the full installation guide. We did not test the install ourselves.

Sources

See all