Skip to Content

vLLM: self-host models with GPU serving

vLLM serves open-weight models with continuous batching and an OpenAI-compatible API. Use it when you manage the GPU host and want direct control over model loading, context limits, parallelism, and caching. See the official documentation  for current platform and model support.

When to choose vLLM

SignalWhat it means
You own or rent a GPU hostvLLM runs on hardware you provision — unlike iwant, which also rents the machine
Steady API or batch trafficContinuous batching pays off when utilization stays high
You need engine flagsPrefix caching, tensor parallelism, and quantization are first-class configuration

Use Ollama for solo dev; vLLM when Ollama stops scaling on concurrency or GPU utilization.

Setup and operation

GuideWhat you’ll learn
Serve a modelvllm serve, OpenAI client, architecture
Size GPU memoryVRAM tables, throughput knobs, quantization
Enable prefix caching--enable-prefix-caching, stable prefixes

Expected impact

ScenarioOutcome
High QPS, >60% GPU util70–95% vs cloud API
Low QPS, idle GPUNegative
Sporadic dev experimentsUse Ollama instead

Figures are illustrative ranges — meter your own utilization and cost per outcome (self-hosting cost model).

Model-specific deployment guides

Each guide links the actual upstream configuration, explains hardware and checkpoint variants, and includes a first API request. Browse all documented models for other deployment options.

vLLM alternatives

ToolChoose when
iwantYou want a documented model name to become a GCP endpoint without assembling VMs, engine flags, and teardown yourself.
SGLangYou need RadixAttention prefix reuse, structured generation, or model-specific parsers on hardware you configure.
TGIYou already run Hugging Face Text Generation Inference on Kubernetes and the checkpoint is on the supported-model list.
OllamaYou want local ollama pull ergonomics, IDE chat, and low-ops serving on a single machine.
llama.cppYou serve GGUF weights on CPU, Apple Silicon, or a modest GPU with minimal dependencies.
LocalAIYou need one OpenAI-compatible URL over multiple backends or gallery configurations.

Deeper comparison: Alternatives to vLLM. All launch methods: self-hosting hub.

Related reading

Last updated on