Skip to content

How-ToGPU

How to Install vLLM on Windows 11 with WSL 2

How to install vLLM on Windows 11 with WSL 2 and an NVIDIA graphics card: update the Windows driver (and never install a Linux one inside WSL), run wsl --install, add uv, install vLLM with the auto PyTorch backend and its kernels, then start an OpenAI-compatible server on port 8000.

By , Systems & Technical Editor

5 min read

How to Install vLLM on Windows 11 with WSL 2

The steps come from vLLM's installation and quickstart documentation, NVIDIA's CUDA on WSL user guide, Microsoft's WSL installation guide and Astral's uv documentation, all checked on 25 November 2026.

vLLM is an open-source inference engine whose documentation highlights high-throughput generation, and its built-in server exposes an OpenAI-compatible API that other apps can talk to. If you're weighing it up against simpler tools, our vLLM vs Ollama and SGLang vs vLLM comparisons explain where it fits.

The snag for Windows users is that vLLM's own documentation lists Linux as the supported operating system and says plainly that vLLM does not support Windows natively. Its suggested route is the Windows Subsystem for Linux (WSL). This guide covers that route on a Windows 11 PC with an NVIDIA GeForce or RTX card.

What you need

  • Windows 11, or Windows 10 version 2004 (build 19041) or later, which Microsoft lists as the minimum for the one-command WSL install.

  • An NVIDIA GPU with compute capability 7.5 or higher. vLLM gives examples including the RTX 20 series, T4, A100, L4, H100 and B200. Our guide to CUDA compute capability shows how to check your card.

  • Python 3.11 to 3.14, which vLLM lists as supported. You don't need to install it separately if you follow the uv steps below.

  • Plenty of free disk space for the Python packages and model downloads.

vLLM also supports AMD ROCm and Intel GPUs on Linux, but AMD and Intel set-up under WSL is different and isn't covered here. AMD owners should look at our guide to running local AI on an AMD Radeon GPU instead.

Step 1: Update the Windows NVIDIA driver

NVIDIA's CUDA on WSL guide says to install the latest GeForce or RTX Windows display driver from nvidia.com/drivers, and that this is the only driver you need. Once it's installed, CUDA becomes available inside WSL automatically: the Windows driver is passed through into Linux as libcuda.so.

This is the most important rule in the whole guide. NVIDIA says you must not install any NVIDIA Linux GPU driver inside WSL, including the cuda-drivers or nvidia-open packages, because a Linux driver overwrites the driver mapped in from Windows. If you've followed a generic Ubuntu tutorial and installed one, that's a likely cause of a broken set-up.

Step 2: Install WSL and Ubuntu

  1. Right-click Start, choose Terminal (Admin) or open PowerShell as administrator.

  2. Run:

wsl --install
  1. Restart your PC when asked. Microsoft says this command enables the features WSL needs and installs the Ubuntu distribution by default.

  2. Launch Ubuntu from the Start menu and create a Linux username and password when prompted.

NVIDIA also recommends making sure you have the latest WSL kernel with wsl.exe --update. New installations use WSL 2 by default; if you have an older distribution on WSL 1, NVIDIA's guide gives the command to convert it: wsl.exe --set-version <distribution-name> 2. For more on GPU set-up inside WSL, see our guide to setting up WSL 2 for GPU local AI.

To check that the GPU is visible, run nvidia-smi in the Ubuntu window. NVIDIA notes that nvidia-smi has a limited feature set on WSL, but it should list your card.

Step 3: Install uv

vLLM recommends uv, a fast Python environment manager from Astral, to create the environment and pick the right PyTorch build. In the Ubuntu window, install it with Astral's script:

curl -LsSf https://astral.sh/uv/install.sh | sh

Astral's documentation notes you can inspect the script before running it by piping it to less instead of sh. If the uv command isn't found straight afterwards, close and reopen the Ubuntu window.

Step 4: Create an environment and install vLLM

vLLM's quickstart uses these commands for NVIDIA GPUs:

uv venv --python 3.14 --seed
source .venv/bin/activate
uv pip install vllm --torch-backend=auto
vllm download-kernels

What each part does:

  • uv venv --python 3.14 --seed creates a virtual environment in a .venv folder.

  • --torch-backend=auto tells uv to inspect your installed CUDA driver version and choose the matching PyTorch index automatically.

  • vllm download-kernels installs precompiled FlashInfer kernels. vLLM says that without them it downloads and compiles kernels at startup, which can add several minutes on newer GPUs, and that you should run it again after every vLLM install or upgrade.

vLLM's release binaries are compiled with CUDA 13.0 by default. If you also want the CUDA Toolkit for your own development work, NVIDIA says you can install the standard Linux CUDA Toolkit packages in WSL and a separate WSL-specific package is no longer needed; just don't install the driver packages mentioned in Step 1.

Step 5: Start the server

With the environment active, start vLLM with the small model vLLM uses in its own quickstart:

vllm serve Qwen/Qwen2.5-1.5B-Instruct

The model downloads from Hugging Face on first run (see our guide to downloading models from Hugging Face for gated models and storage). vLLM's documentation says the server starts at http://localhost:8000 by default; you can change that with --host and --port. It hosts one model at a time.

Check it's working from a second Ubuntu window:

curl http://localhost:8000/v1/models

Then send a chat request to http://localhost:8000/v1/chat/completions, or point any app that supports a custom OpenAI endpoint at http://localhost:8000/v1. vLLM's quickstart uses EMPTY as the API key in its Python example. If other people can reach your PC, vLLM says you can require a key with the --api-key option or the VLLM_API_KEY environment variable.

By default, vLLM applies the sampling settings recommended by the model's creator from the model's generation_config.json on Hugging Face, if it exists, so you don't need to tune temperature to get sensible answers.

Choosing a model that fits

A model's memory needs depend on its size and quantisation, so start small. For 4-bit models on NVIDIA cards, vLLM's quantisation hardware table lists AWQ for Turing and newer and GPTQ for Volta and newer, so check which format a model's uploader offers before you download it. If you hit memory errors, our guide to fixing CUDA out of memory errors covers the usual fixes.

Troubleshooting

  • No GPU found, or CUDA errors: update the Windows NVIDIA driver, run wsl.exe --update, and make sure you haven't installed an NVIDIA Linux driver inside WSL.

  • Kernel compilation at every start: run vllm download-kernels again in the same environment after any upgrade.

  • Running out of memory when building from source: vLLM's documentation notes that WSL only assigns 50% of total memory to Linux by default, and suggests limiting parallel compile jobs (for example export MAX_JOBS=1) at the cost of a slower build. You shouldn't need to build from source if the pre-built wheels install correctly.

  • "command not found: vllm": reactivate the environment with source .venv/bin/activate from the folder where you created it.

Our verdict

vLLM doesn't run natively on Windows, but WSL 2 makes it straightforward on an NVIDIA PC. Install the latest Windows NVIDIA driver and never a Linux one inside WSL, run wsl --install, add uv, then install vLLM with uv pip install vllm --torch-backend=auto and vllm download-kernels. vllm serve gives you an OpenAI-compatible API on port 8000 that other apps can use. If you only need a chatbot for yourself, Ollama or LM Studio are simpler; vLLM earns its place when several apps or users share one GPU.

The bottom line

vLLM doesn't run natively on Windows, but WSL 2 makes it straightforward on an NVIDIA PC. Install the latest Windows NVIDIA driver and never a Linux one inside WSL, run wsl --install, add uv, then install vLLM with uv pip install vllm --torch-backend=auto and vllm download-kernels. vllm serve gives you an OpenAI-compatible API on port 8000 that other apps can use. If you only need a chatbot for yourself, Ollama or LM Studio are simpler; vLLM earns its place when several apps or users share one GPU.

Sources

  1. 01vLLM: GPU installation documentation
  2. 02vLLM: Quickstart
  3. 03vLLM: Quantization documentation
  4. 04NVIDIA: CUDA on WSL User Guide
  5. 05Microsoft: How to install Linux on Windows with WSL
  6. 06Astral: Installing uv

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

Windows ML Gets DX CGC: Microsoft's New Way to Run Local AI on Your GPU

News

Windows ML Gets DX CGC: Microsoft's New Way to Run Local AI on Your GPU

Microsoft's Windows ML 2.9.42 Experimental adds DX CGC, a DirectX-based compiler for running AI models on graphics cards, with NVIDIA acceleration first via the 621.24 driver, plus direct loading of GGUF and Hugging Face models. We explain what's new and what it means for local AI on Windows.

Eleanor Shaw5 min

Devstral Small 2 vs Qwen3-Coder: Which Local Coding Model Should You Run?

Versus

Devstral Small 2 vs Qwen3-Coder: Which Local Coding Model Should You Run?

Devstral Small 2 and Qwen3-Coder 30B are popular open coding models for running on your own PC. We compare Devstral's 24B design with Qwen's 3.3B-active mixture of experts, their 15GB and 19GB downloads, context length, image support, tools and licences, and say which suits your GPU.

Callum Reid6 min

How to Run Mistral AI Models Locally on Your PC

How-To

How to Run Mistral AI Models Locally on Your PC

Mistral AI's open models run free on your own PC with Ollama. We explain the Ministral 3 3B, 8B and 14B models, Mistral Small 3.2, Magistral and Devstral Small 2, which one fits your graphics card's VRAM, the commands to run them and the low temperature settings Mistral recommends.

Marcus Thorne6 min

PTM7950 vs Thermal Paste: Is a Phase-Change Pad Worth It?

Versus

PTM7950 vs Thermal Paste: Is a Phase-Change Pad Worth It?

PTM7950 is a phase-change pad that softens at 45°C; Honeywell lists 8.5 W/m·K and 0.04-0.08 °C·cm²/W, with impedance holding after 1,000-hour bake and cycling tests. It suits laptops and GPUs you won't reopen; paste stays simpler for desktop CPUs you reseat often.

Callum Reid6 min