How do you run batch LLM inference cheaply on GPUs?
Skip the server: run vLLM offline on sharded, resumable jobs on interruptible GPUs. Cost math, a batch API vs self-host rule, and resume code.
Skip the server: run vLLM offline on sharded, resumable jobs on interruptible GPUs. Cost math, a batch API vs self-host rule, and resume code.
Production LLM deployment is a checklist: evals, latency targets, replica math, warm capacity, safe rollouts, alerts and cost per 1M tokens.
Start with vLLM. Switch to TensorRT-LLM only when it is measurably faster on your model and traffic and the gain lets you turn off whole GPUs.
Run vLLM's OpenAI-compatible server on a GPU that fits the model, lock it down, and change one base_url. Commands, GPU costs and a decision rule.
Use Ollama to run a model on your own machine for one user, and vLLM to serve many concurrent users from a GPU. The difference is how each spends KV memory.
vLLM is an open-source LLM serving engine. PagedAttention and continuous batching let it fit far more requests per GPU than a plain generate() loop.
Neither engine is faster everywhere. SGLang leads on shared-prefix and structured workloads, vLLM on breadth. A decision rule and cost math.