Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Vllm Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-vllm-knowledge-patch)
---
name: vllm-knowledge-patch
description: vLLM
version: "0.32.0"
license: MIT
metadata:
author: Nevaberry
---
# vLLM compatibility guidance
Load this skill when upgrading vLLM deployments, changing engine configuration,
integrating serving clients, configuring distributed caches or speculative
decoding, or extending models and quantization methods.
Use the topic references for detailed compatibility conditions and examples.
## Reference index
| Reference | Topics |
| --- | --- |
| [Engine and runtime](references/engine-runtime.md) | Configuration migrations, scheduling, model runners, compilation, attention, installation and dependencies |
| [Distributed execution and caches](references/distributed-cache.md) | Parallelism, Ray and native clusters, disaggregated transfer, offloading, prefix caching, layouts and cache metrics |
| [Models and adapters](references/models-adapters.md) | Model extensions, LoRA, media processing, pooling, weight updates and sleep lifecycle |
| [Quantization and hardware](references/quantization-hardware.md) | Checkpoint formats, backend migrations, hardware compatibility, cache precision and extension contracts |
| [Serving APIs](references/serving-apis.md) | HTTP and gRPC, Python and Rust frontends, generation, tools, scoring, validation, metrics and benchmarks |
| [Speculative decoding](references/speculative-decoding.md) | Proposers, drafters, sampling, parallelism, verification and acceptance metrics |
## Breaking changes and deprecations
### Launch scripts and engine configuration
Replace `python -m vllm.entrypoints.openai.api_server` with `vllm serve "$MODEL"`.
V1 is the only engine after V0 removal. Model Runner V2 is a separate migration:
V2 became the default across model families with feature-dependent V1 runner
fallbacks; ROCm now defaults to V2 with its model-specific V1 exceptions removed.
| Existing setting or interface | Supported change |
| --- | --- |
| `VLLM_ATTENTION_BACKEND` | Migrate to `--attention-backend`. |
| Old `-O.xx` syntax | Use optimization levels `-O0` through `-O3`. |
| `max_num_partial_prefills`, `max_long_partial_prefills` | Remove these settings and their `--max-num-partial-prefills` and `--max-long-partial-prefills` flags. |
| `calculate_kv_scales`, `override_attention_dtype` | Remove these engine settings; runtime KV-scale calculation was removed. |
| `PassConfig.enable_sp`, `fuse_gemm_comms`, `sp_min_token_num` | Remove them; the `torch.compile` sequence parallelism and AsyncTP passes were removed. |
| `--mamba-cache-mode all` | This value now fails validation. |
| `--disable-cascade-attn` | Remove the flag; cascade attention was removed. The flag warns before its scheduled removal in 0.33. |
| Pause calls using `wait_for_inflight_requests` | Pass `mode="wait"`. |
Remove calls to `AsyncLLM.pause_generation()`, `IOProcessor.output_to_response`,
and `vllm.scripts.main()`, and imports of `vllm._rust_tool_parser`.
Throughput benchmarks must stop using `--dataset` and the `sonnet` dataset.
The engine reference retains earlier removals and migration details.
### Client protocols and browser access
CORS defaults to an empty origin allowlist in both frontends. Configure
`--allowed-origins` for browser clients on a separate origin:
```sh
vllm serve "$MODEL" --allowed-origins '["https://app.example.com"]'
```
Update Responses streaming handlers from `response.reasoning_part.added` and
`response.reasoning_part.done` to `response.content_part.added` and
`response.content_part.done`; reasoning parts have `part.type == "reasoning_text"`.
On render requests, migrate `return_mm_kwargs` to `mm_payload`.
Idle SSE streams can emit keep-alive comments; clients should skip those lines.
### Model, adapter, and quantization integrations
Custom model `forward` signatures no longer take `kv_cache` or `attn_metadata`;
the attention backend reads both from `forward_context`.
Custom integrations referencing `FusedMoE` need `FusedMoEFactory`.
LoRA loading applies PEFT `rank_pattern` and `alpha_pattern` and rejects
unsupported PEFT features. Migrate LoRA adapters away from Tensorizer.
Ensure the GGUF quantization plugin is available. Install the out-of-tree
bitsandbytes plugin to continue loading bitsandbytes checkpoints.
The GPTQ backend previously named `gptq_marlin` is consolidated under `auto_gptq`.
Replace `VLLM_TEST_FORCE_FP8_MARLIN` with explicit `--linear-backend` or
`--moe-backend` selection. The PyAV video decoder was removed; switch to
OpenCV or TorchCodec. TorchCodec reports a runtime error if system FFmpeg is missing.
### Cache transfer and monitoring migrations
The default KV load failure policy changed from `recompute` to `fail`.
Set `recompute` explicitly to rebuild missing KV after a failed transfer.
NIXL also applies that policy on handshake failure. Configure prefill and decode
peers with matching push or pull transfer modes. `P2pNcclConnector` was removed.
Update monitoring queries from `vllm:time_per_output_token_seconds` to
`vllm:inter_token_latency_seconds`. Replace `kv_offload_tiering_block_queries`
and `kv_offload_tiering_block_hits` with `kv_offload_tiering_chunk_queries`
and `kv_offload_tiering_chunk_hits`; the counters now measure chunks.
## Runtime and engine configuration
vLLM 0.32 requires Python 3.11–3.14, `transformers>=5.16.1,<5.20.0`, and
`tokenizers>=0.23.2`. CUDA source builds require GCC 13.
Run `vllm download-kernels` to install precompiled FlashInfer kernels;
`vllm preload --preload-autotune` preserves the autotune table across restarts.
The engine reference records platform-specific runtime and wheel requirements.
Pass nested configuration as JSON or use dotted flags. Numeric suffixes use
lowercase `k/m/g/t` for decimal and uppercase `K/M/G/T` for binary units.
Do not duplicate CUDA graph capture limits or the attention backend across
dedicated flags and nested configuration fields; the engine rejects duplicates.
```sh
vllm serve "$MODEL" --compilation-config.max_cudagraph_capture_size=1024
vllm serve "$MODEL" --max-model-len auto
```
`--max-model-len auto` sizes the context limit to available GPU memory at startup.
The default `max_num_batched_tokens` rises from 8192 to 16384 in 0.28.0;
set it explicitly if a deployment depends on the lower cap.
Automatic limits also depend on entry point and configuration; see the engine reference.
Cap the pending queue by request count, token count, or both:
```sh
vllm serve "$MODEL" --max-num-queued-reqs 128 --max-num-queued-tokens 32768
```
`--shutdown-timeout` defaults to `0`, aborting in-flight requests on shutdown.
A positive number of seconds lets requests finish within that window.
The engine respects cgroup memory limits and fails early if `/dev/shm` is too small.
## Serving requests and structured outputs
Both frontends support `hf` tool and reasoning parsers using the checkpoint's
`response_template`. Tool parser compatibility is checked at server startup.
```sh
vllm serve "$MODEL" --tool-call-parser hf --reasoning-parser hf
```
For strict function calling, set `"strict": true` inside `tools[].function` in
Chat Completions, or on the function object in `tools[]` in Responses.
`tool_choice="required"` supports streaming. XGrammar supports `propertyNames`;
schemas nested more than 64 levels return HTTP 400.
A terminal grammar can end generation before `min_tokens` is reached.
`max_tokens` caps generated tokens; prompt admission budgets the prompt
independently of that requested output cap. Responses accept `min_p` and
`stop_token_ids`. Supply `SamplingParams.prompt_logprob_token_ids` per row.
`/inference/v1/generate` accepts `{"output_mode":"text"}`, can return
`stop_reason`, and uses integer token IDs for logprobs.
`X-Vllm-Priority` overrides the JSON `priority` field on Completions, Chat
Completions, and Responses requests. Nonzero priorities require priority scheduling.
With engine-level watermarking configured, omitting the request watermarking
field enables it; pass `false` to opt out.
`--api-key` protects a subset of routes. Enforce authentication at ingress when
every route requires it. Supplied `cache_salt` values must be nonempty and at most
1024 characters; `stop_token_ids` must be in vocabulary.
Chat templates undergo static validation and use `VLLM_CHAT_TEMPLATE_RENDER_TIMEOUT`.
Responses reject user-supplied `chat_template` inside `chat_template_kwargs`.
## Distributed execution and cache topology
Native multi-node launches use matching parallel sizes and `--master-addr`.
Rank 0 serves requests; workers use `--headless`. With `--nnodes` greater than 1,
use `--data-parallel-backend mp` and a zero-based `--node-rank` below `--nnodes`.
The node count must evenly divide the product of data, pipeline, and tensor parallel sizes.
Built-in external data-parallel balancing with more than one replica requires
a MoE model. For dense models behind an external balancer, launch independent servers.
The distributed reference provides native launch, Ray, and Kubernetes examples.
NIXL supports mixed KV-cache block sizes. Its disaggregated MLA path supports
decode context parallelism and prefill context parallelism on prefill producers.
`MultiConnector` merges `kv_transfer_params` from its constituent connectors.
KV offloading supports configurable tiers, per-request filtering, and pluggable
eviction policies; see the connector-specific conditions in the cache reference.
For multi-turn KV reuse, preserve the shared prompt prefix and reuse the same
image; the cache key includes its hash. The initial `NONE_HASH` is deterministic
by default, so distributed caches can drop the fixed `PYTHONHASHSEED` used for it.
## Speculative decoding
Use `--spec-method`, `--spec-model`, and `--spec-tokens` for `method`, `model`,
and `num_speculative_tokens`. Set each once across shorthand and `--speculative-config`.
Custom proposer classes are experimental; their constructor must accept
`VllmConfig`, and they must implement `propose`.
`rejection_sample_method` defaults to `standard` and supports `standard`,
`synthetic`, and `block`. Synthetic verification accepts per-position
`synthetic_acceptance_rates` or a `synthetic_acceptance_length`, mutually exclusively.
Adaptive verification currently requires a DSpark drafter and supports logprobs.
Use `--per-request-spec-decode-metrics` on a server configured for speculation
to include acceptance statistics in compatible API responses.
Combining LoRA and speculation requires `max_num_batched_tokens` to be at least
`max_num_seqs * (num_speculative_tokens + 1)` or startup fails.
TLI uses `use_heterogeneous_vocab` with `method: "draft_model"`; the drafter
proposes shared-vocabulary tokens only and must use greedy draft sampling.
Generated output and log probabilities can vary with batch size or numerical precision,
including between runs with and without speculation.
## Training lifecycle and low-precision execution
Training clients can mark weight synchronization with `/start_weight_update`
and `/finish_weight_update`. The `sharded_rdt` backend lets workers pull their
own tensor- or expert-parallel shards over NIXL or Ray Direct Transport.
The `modelexpress` weight-transfer backend, `POST /weight_checker`, token-level
weight-version spans, and communicator release while serving are also supported.
Use `--sleep-preserve-parameter-names 'draft.*'` to preserve matching parameters.
`sleep_mode_offload_cudagraph` opts in to CUDA graph offloading; level 2 sleep
preserves FP8 KV scales. Invalid sleep levels return HTTP 400.
`--quantization-config` configures `linear` and `moe` separately and carries
ignore patterns. `--quantization-config.linear fp8_per_channel` re-quantizes
linear layers online. Humming is preferred over Marlin on SM90; MXFP4 W4A4
checkpoints fall back to W4A16 with a warning when a W4A4 kernel is unavailable.
Use the hardware reference for the format, accelerator, and extension constraints.