Latest AI news

Home  /  Open Source  /  vLLM open source inference: Deploy on a consumer GPU step‑by‑step

vLLM open source inference: Deploy on a consumer GPU step‑by‑step

vLLM (v0.5) runs on consumer GPUs by installing the Python package, setting up a compatible driver/CUDA version, and launching with flags that control model precision, KV‑cache datatype, and GPU memory utilization; the official README gives a quick start, while real‑world guides add GPU‑specific tweaks for throughput and latency.

By AI Decodes Editorial  ·  Published  ·  Last verified 30 November 2026

Diagram of a consumer workstation running vLLM with performance graph
Deploying vLLM on a single RTX 4090 for high‑throughput inference

What core features does vLLM provide for high‑throughput serving?

vLLM is described as a high‑throughput, memory‑efficient inference and serving engine for large language models. The v0.5 release adds production‑grade features such as:

  • MultiprocessingGPUExecutor for parallel request handling.
  • Compressed‑tensors support, reducing VRAM footprint.
  • Prefix caching and chunked prefill, which cut latency on chat‑style workloads by 30‑50 %.
  • Stream options and ChatCompletionRequest objects that mirror the OpenAI API, making integration trivial.
  • A Guide and FSM (finite‑state‑machine) interface for custom routing of agent‑style requests.

These capabilities let a single GPU serve many concurrent sequences while keeping latency low, which is essential for production chatbots or RAG pipelines.

Official GitHub repo

Which hardware and system specs are needed for a consumer‑grade GPU?

vLLM itself runs on any NVIDIA GPU with CUDA support, but performance depends heavily on VRAM and driver version.

  • GPU: A consumer‑grade RTX 4090 (Ada Lovelace) with 24 GB GDDR6X is the most common reference point. The card lacks native FP8, so FP16 or AWQ‑INT4 are used for 7‑13 B models.
  • Driver: NVIDIA 535 + (or the 550‑series for Ada) is required for full FP16/FP8 functionality. The driver must match the CUDA toolkit (12.1 + for FP16 paths, 12.4 + for FP8).
  • CUDA toolkit: Version 12.1 or newer; FP8 deployments target CUDA 12.4.
  • System RAM: At least 80 GB free disk and 32 GB RAM for model weights, JIT cache, and Hugging Face metadata. The GigaGPU guide recommends 80 GB free on the OS volume.
  • Power: Setting a power limit (e.g., 400 W on a 4090) stabilizes latency under sustained load.

These requirements are drawn from the GigaGPU RTX 4090 tutorials and the vLLM quick‑start page.

Memory breakdown of model, KV cache, and prefix cache in vLLM
How vLLM splits GPU memory across different precision modes

How do I set up vLLM quickly on Ubuntu?

The official quick‑start section outlines a minimal install, while the GigaGPU walkthrough adds production‑grade steps.

  1. Prepare the OS
  2. bash sudo apt update && sudo apt -y upgrade sudo apt -y install build-essential git curl ca-certificates gnupg lsb-release pkg-config

  1. Install NVIDIA driver and CUDA
  2. bash wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb sudo dpkg -i cuda-keyring_1.1-1_all.deb sudo apt update sudo apt -y install cuda-drivers-550 cuda-toolkit-12-4 sudo reboot

Verify with nvidia-smi and nvcc --version.

  1. Create a clean Python environment
  2. bash sudo apt -y install python3.11 python3.11-venv python3.11-dev python3.11 -m venv ~/vllm-env source ~/vllm-env/bin/activate pip install --upgrade pip wheel

  1. Install vLLM
  2. bash pip install vllm==0.5.0 # pin to the newly‑released version pip install hf_transfer # optional, speeds up HF downloads export HF_HUB_ENABLE_HF_TRANSFER=1

  1. Launch a model (example: Mistral‑7B‑Instruct, FP16)
  2. bash vllm serve mistralai/Mistral-7B-Instruct-v0.3 \ --host 0.0.0.0 --port 8000 \ --max-model-len 16384 \ --max-num-seqs 64 \ --gpu-memory-utilization 0.92 \ --enable-prefix-caching

The flags are explained in the GigaGPU guide: --max-model-len controls context size, --max-num-seqs sets concurrent batch capacity, and --gpu-memory-utilization leaves a safety margin.

For FP8 on Ada (if you have a Blackwell‑class card), replace --quantization fp8 and --kv-cache-dtype fp8.

Who should use vLLM and who might skip it?

  • Good fit: Researchers or developers who need a single‑GPU, low‑latency endpoint for 7‑13 B models, want OpenAI‑compatible APIs, and are comfortable tweaking launch flags.
  • Less ideal: Teams requiring multi‑node scaling beyond two consumer GPUs, or those bound to older drivers that cannot meet the CUDA version requirement. In those cases a dedicated serving stack like TensorRT‑LLM or a distributed framework may be more appropriate.
  • Skip if: Your workload fits comfortably in CPU‑only inference or you need turnkey SaaS with no GPU management.

What open‑source alternatives exist and how do they compare?

Several projects overlap with vLLM’s goals:

  • text‑generation‑inference – Provides OpenAI‑compatible endpoints and supports GPU quantization, but lacks vLLM’s prefix‑caching and chunked prefill optimizations, often yielding lower throughput on the same hardware.
  • exllamav2 – Focuses on low‑VRAM inference using Flash‑Attention; excellent for 4‑bit quantized models on 8‑12 GB cards, but does not include the multi‑sequence scheduling engine that vLLM offers.
  • Ollama – A complete local AI runtime that bundles model download, serving, and UI; it abstracts GPU details but gives less control over memory‑utilization flags and cannot expose the same fine‑grained OpenAI API.

Each alternative has a GitHub page; the vLLM repo remains the most actively maintained for large‑scale serving.

Menus and names can change as products update. If a step looks different, check the product's own help page.

Frequently asked questions

Can I run vLLM on an RTX 3080 with 10 GB VRAM?
You can load smaller models (e.g., 2‑3 B) in FP16, but the default --gpu-memory-utilization flags may need to be lowered; larger models will require quantization such as AWQ‑INT4.

Do I need to compile any components from source?
Only flash-attn may compile on first install if pre‑built wheels are unavailable for your CUDA version; installing build-essential and python3.11-dev avoids linker errors.

How do I monitor vLLM performance in production?
vLLM exposes Prometheus metrics when started with --metrics-port; combine with a systemd service for auto‑restart and use Grafana dashboards to watch token‑per‑second and latency.

Is FP8 inference possible on consumer cards?
FP8 requires hardware support only available on NVIDIA Blackwell GPUs; RTX 4090 (Ada) does not have native FP8, so you must use FP16 or quantized INT4 paths.