What is vLLM?
vLLM é uma biblioteca para executar e servir grandes modelos de linguagem. It sits in the Serving & Deployment category of the Models & Inference tools and is open-source, written in Python and licensed Apache-2.0. To get started: como instalar o vLLM.
Visão geral

vLLM é uma biblioteca para executar e servir grandes modelos de linguagem. Ela carrega modelos do Hugging Face e os disponibiliza como uma API em Python para geração em lote ou como um servidor HTTP compatível com a OpenAI. Foi desenvolvida originalmente no Sky Computing Lab da UC Berkeley e hoje é mantida por uma grande comunidade de código aberto.
Ela foi feita para equipes que precisam atender muitas requisições ao mesmo tempo sem ficar sem memória da GPU. A técnica PagedAttention gerencia o cache de chaves e valores da atenção de forma mais eficiente, e o batching contínuo mantém a GPU ocupada ao adicionar e remover requisições em tempo real. Ela oferece suporte a mais de 200 arquiteturas de modelos, incluindo LLMs somente decodificadores, modelos de mistura de especialistas e modelos multimodais.

Na categoria de inferência e servidor, o vLLM fica no lado de servidor de alta vazão. Você aponta para um modelo, e ele cuida do batching, do gerenciamento de memória, do streaming e da interface de API, para que você possa se concentrar na sua aplicação em vez da infraestrutura de servidor.
O que faz
- PagedAttention gerencia a memória de chaves e valores da atenção de forma eficiente, reduzindo desperdício e cabendo mais requisições simultâneas na memória da GPU
- Batching contínuo, prefill em partes e cache de prefixos mantêm a vazão alta sob carga
- Servidor de API compatível com a OpenAI, além de suporte à Anthropic Messages API e ao gRPC
- Amplo suporte a quantização, incluindo FP8, INT8, INT4, GPTQ/AWQ e GGUF
- Paralelismo de tensores, de pipeline, de dados, de especialistas e de contexto para inferência distribuída
- Roda em GPUs NVIDIA e AMD, em CPUs x86/ARM/PowerPC e em outros hardwares por meio de plugins
Primeiros passos
Instale o vLLM e depois gere texto a partir do Python ou inicie um servidor compatível com a OpenAI.
Como instalar o vLLM
Instale com uv (recomendado) ou pip. Uma GPU com a configuração de CUDA correspondente é o alvo mais comum.
uv pip install vllmComo executar inferência offline em lote
Carregue um modelo e gere texto para uma lista de prompts diretamente no Python.
from vllm import LLM, SamplingParams
prompts = [
"Hello, my name is",
"The capital of France is",
]
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
llm = LLM(model="facebook/opt-125m")
outputs = llm.generate(prompts, sampling_params)
for output in outputs:
print(output.prompt, output.outputs[0].text)Como iniciar um servidor compatível com a OpenAI
Sirva um modelo por HTTP em http://localhost:8000 com endpoints de chat e de completion que seguem a API da OpenAI.
vllm serve Qwen/Qwen2.5-1.5B-InstructCommands and code are distilled from the project's own documentation — always check the repositório oficial para as novidades.
Quando usar
- Servir um modelo de chat ou de completion para muitos usuários ao mesmo tempo, por trás de uma API compatível com a OpenAI
- Executar geração em lote offline de alto volume sobre grandes conjuntos de prompts
- Hospedar modelos de pesos abertos do Hugging Face nas suas próprias GPUs, em vez de usar uma API paga
- Escalar um único modelo grande em várias GPUs com paralelismo de tensores ou de pipeline
Histórico de versões
Every verified update to vLLM that AI/TLDR tracked, newest first — each links to our coverage and the official changeset.
- 2026-11-16v0.34.0
The extensible KV cache is on by default, so the cache is sized from memory actually free after warmup and most models get more of it. Model Runner V1 is removed, the default block size moves from 16 to 64, and 10 new models arrive, including Mistral Large 4. 1,061 commits from 412 contributors; release builds are ROCm 10.0 only on AMD.
- 2026-11-01v0.33.0
Block-diffusion drafters (DFlash, DSpark) stop reserving draft slots, an opt-in lossy FLy verifier and a ROCm `--monokernel` decode path speed up generation, and a `/v1/decisions` endpoint lands. 927 commits from 389 contributors; release builds are now CUDA 13.0 only, and Medusa and the MLP speculator are removed.
- 2026-09-22v0.30.0
Fast Start adds a per-GPU weight-cache daemon, so a restarting engine maps post-quantized weights over CUDA IPC via `--load-format ipc_cache` instead of reloading from disk. 762 commits from 315 contributors also bring Gumbel-max watermarking, the HiSparse host-memory KV tier, and DeepSeek-V4.1-Flash and GLM-5.3-Flash support. Scale-out endpoints now need `--enable-scale-out`.
- 2026-09-09v0.29.0
Model Runner V2 becomes the default for all models, and ten deprecated architectures (Arctic, Chameleon, MPT and others) are removed. 594 commits from 277 contributors add Hy4-preview and Qwen3.8-Flash-Next support; `python -m vllm.entrypoints.openai.api_server` is deprecated in favour of `vllm serve`.
- 2026-08-26v0.28.0
vLLM v0.28.0 lands 584 commits from 270 contributors: a Kimi K3 speed push (decode context parallelism, fused kernels, expert sharding saving ~17 GiB per GPU) plus end-to-end sparse MLA for DeepSeek V4.
- 2026-04-27v0.20.0
752 commits from 320 contributors: DeepSeek V4 support, FlashAttention 4 as the default MLA prefill backend, TurboQuant 2-bit KV cache for 4x capacity, and CUDA 13 plus PyTorch 2.11 as defaults.
vLLM in the news
- 2026-11-24GRANDENemotron-Labs-Image-30B-A3B — NVIDIA's open autoregressive image generator
- 2026-11-20NOTÁVELSonge — trains your local model on idle compute
- 2026-11-19NOTÁVELSandboxed models can talk through a shared inference server — a study
- 2026-11-16GRANDEvLLM v0.34.0 — a bigger KV cache by default, and Model Runner V1 is gone
- 2026-11-10NOTÁVELMACaQ — Huawei open-sources a 4-bit quantizer for GGUF, vLLM and Diffusers
- 2026-11-01GRANDEvLLM v0.33.0 — faster speculative decoding, and CUDA 13 builds only
- 2026-10-29GRANDEMistral Large 4 open weights — Le Chonk lands on Hugging Face
- 2026-10-12NOTÁVELIntel GPU D270 — an inference card with up to 480 GB of LPDDR5X
Do Feed de lançamentos do AI/TLDR — cada item é verificado na fonte quando é publicado.
How vLLM compares
vLLM alongside other open-source serving & deployment tools AI/TLDR tracks, ranked by GitHub stars.
| Ferramenta | Estrelas | O que faz |
|---|---|---|
| Transformers | ★ 169k | Hugging Face Transformers is a Python framework that defines and runs state-of-the-art pretrained models for text, vision, audio, and multimodal tasks, for both inference and training. |
| vLLM | ★ 97.9k | Inferência e servidor rápidos e com uso eficiente de memória para grandes modelos de linguagem |
| SGLang | ★ 39.2k | A serving framework for LLMs and multimodal models that boosts throughput by reusing shared prompt prefixes across requests. |
| Modular Platform | ★ 30.2k | Modular's AI platform: the MAX inference framework with an OpenAI-compatible serving endpoint and GPU kernel library, plus the Mojo language and compiler. |
| DeepInfer | ★ 26.5k | DeepSeek's own large-scale inference framework for its models, with expert parallelism, confidence-scheduled speculative decoding and NVIDIA plus Ascend support. |
| TensorRT-LLM | ★ 15.2k | NVIDIA's library that compiles LLMs into optimized engines for the fastest inference on its data-center GPUs. |
| OpenVINO | ★ 13.3k | An open-source toolkit from Intel that converts and optimizes deep learning models, then runs fast inference on CPU, GPU, and NPU hardware. |
| OpenLLM | ★ 12.6k | A tool to run any open-source LLM as an OpenAI-compatible API endpoint locally or in the cloud. |

