Skip to content
Back to skills

Vllm Knowledge Patch

ASecurity

vLLM

  • 25 stars
  • 0 votes
  • 0 copies
  • 12 views
  • Added September 5, 2026
developmentpythonrustnodeexpressapifrontendbackendperformance

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill vllm-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vllm Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vllm Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-vllm-knowledge-patch-nevaberry-plugins/badge)](https://www.skillsdirectory.com/skills/nevaberry-vllm-knowledge-patch-nevaberry-plugins)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vllm-knowledge-patch
description: vLLM
version: "0.32.0"
license: MIT
metadata:
  author: Nevaberry
---


# vLLM knowledge patch

Use this skill when configuring, serving, extending, or upgrading vLLM.
Load the reference for the task at hand; it preserves the applicable release,
platform, frontend, model, and experimental qualifications.

## Reference index

| Reference | Topics |
| --- | --- |
| [Distributed execution and caching](references/distributed-and-caching.md) | Multiprocessing, Ray, data/expert/context parallelism, prefix caching, KV connectors, offload tiers |
| [Engine and runtime](references/engine-and-runtime.md) | Runner selection, scheduling, compilation, attention, device placement, training control, sleep, weight transfer |
| [Models, multimodal processing, and LoRA](references/models-multimodal-and-lora.md) | Model extensions, pooling, diffusion, media preprocessing, video decoders, adapter loading |
| [Operations and migrations](references/operations-and-migrations.md) | Removed interfaces, dependencies, wheels, containers, authentication, logging, metrics, benchmarks |
| [Quantization and hardware](references/quantization-and-hardware.md) | Checkpoint formats, online quantization, KV precision, CPU/ROCm/XPU support, custom methods |
| [Serving APIs](references/serving-apis.md) | Completions, Responses, Messages, tools, structured output, embeddings, speech, rendering, Rust, gRPC |
| [Speculative decoding](references/speculative-decoding.md) | Proposers, drafters, n-gram/suffix/TLI configuration, compatibility, rejection sampling, acceptance metrics |

## Breaking changes and deprecations

### Launch scripts and runtime requirements

Replace `python -m vllm.entrypoints.openai.api_server` with `vllm serve "$MODEL"`.
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.
The PyAV video decoder is removed; switch affected deployments to OpenCV or TorchCodec.
Install the out-of-tree bitsandbytes plugin to continue loading bitsandbytes checkpoints.
GGUF quantization also requires its plugin to be available.

### Removed engine and extension settings

Remove `max_num_partial_prefills`, `max_long_partial_prefills`, and their CLI flags
`--max-num-partial-prefills` and `--max-long-partial-prefills`.
Remove `calculate_kv_scales` and `override_attention_dtype` from configurations.
Remove `PassConfig.enable_sp`, `fuse_gemm_comms`, and `sp_min_token_num`:
the `torch.compile` sequence parallelism and AsyncTP passes have been removed.
Cascade attention is removed. Remove `--disable-cascade-attn`; the flag warns
before its scheduled removal in 0.33.
`--mamba-cache-mode all` fails validation.

For pause calls that used `wait_for_inflight_requests`, pass `mode="wait"`.
Remove calls to `AsyncLLM.pause_generation()`, `IOProcessor.output_to_response`,
`vllm.scripts.main()`, and imports of `vllm._rust_tool_parser`.
Throughput benchmarks must stop using `--dataset` and the `sonnet` dataset.
Update custom integrations from `FusedMoE` to `FusedMoEFactory`.
LoRA loading applies PEFT `rank_pattern` and `alpha_pattern` and rejects unsupported
PEFT features. Migrate LoRA adapters away from Tensorizer, whose LoRA support was removed.

### Backend selectors and cache transfers

Migrate `VLLM_ATTENTION_BACKEND` to `--attention-backend`.
Migrate environment-based kernel selection to `--moe-backend` or `--linear-backend`
where those flags cover the settings.
Replace `VLLM_TEST_FORCE_FP8_MARLIN` with explicit selection through those flags.
Remove `VLLM_ROCM_USE_AITER_FP4_ASM_GEMM` and the retired
`--attention-config.use_prefill_decode_attention` setting.
Deployments using the removed `P2pNcclConnector` must switch connectors.
The KV load failure policy defaults to `fail`; set it to `recompute` explicitly
to rebuild missing KV cache after a transfer fails.
Configure NIXL prefill and decode peers with matching push or pull transfer modes.

### Serving contracts and browser access

CORS defaults to an empty origin allowlist in both frontends.
Configure `--allowed-origins` for browser clients on a separate origin.
`--api-key` protects a subset of endpoints; enforce authentication at ingress
when the deployment requires it for every route.

```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 from `return_mm_kwargs` to `mm_payload`.
On the Rust frontend, `qwen3_xml` aliases `qwen3_coder` for XML;
select `--tool-call-parser qwen3_json` for JSON.
Responses requests reject a user-supplied `chat_template` inside `chat_template_kwargs`.

### Metrics migrations

Update `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 use chunks as their unit.

## Engine configuration and deployment

### Nested settings, devices, and admission

Config objects accept JSON or dotted flags. Numeric suffixes use lowercase
`k/m/g/t` for decimal units and uppercase `K/M/G/T` for binary units.
The engine rejects duplicate CUDA graph capture settings and duplicate backend
selection through `--attention-backend` and `--attention-config.backend`.

```sh
vllm serve "$MODEL" --compilation-config '{"max_cudagraph_capture_size": 1K}'
vllm serve "$MODEL" --max-model-len auto
vllm serve "$MODEL" --max-num-queued-reqs 128 --max-num-queued-tokens 32768
```

Integer `--device-ids` values index the visible set under a GPU visibility mask.
Use distinct integers or distinct UUIDs within one list; use placement groups on Ray.
In the July 28 engine, `--performance-mode throughput` doubles automatic
`max_num_batched_tokens` and `max_num_seqs` where those limits are unset.
The engine respects cgroup memory limits and fails early if `/dev/shm` is too small.
`--shutdown-timeout` defaults to `0`, aborting in-flight requests; a positive value
lets them finish within that many seconds.

### Distributed execution and prefix caching

For native multi-node launches, use matching models, parallel sizes, and `--master-addr`.
Rank 0 serves requests; worker ranks 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
`data_parallel_size * pipeline_parallel_size * tensor_parallel_size`.
For dense models behind an external balancer, launch independent servers.

The initial prefix-cache hash `NONE_HASH` is deterministic by default, so distributed
KV-cache deployments can drop the fixed `PYTHONHASHSEED` used for that purpose.
SWA and SSM retention defaults to `0`; dense retention is automatically restored
on hybrid models using EAGLE or MTP. Use `--prefix-cache-retention-interval 0`
in place of the deprecated retention environment variable.
Requests share cached prefixes only within the same salt. A supplied `cache_salt`
must be nonempty and no longer than 1024 characters.

## Serving features and request controls

Both frontends support the `hf` parser, which reads the checkpoint's `response_template`.
Tool parser compatibility is checked at server startup.

```sh
vllm serve "$MODEL" --tool-call-parser hf --reasoning-parser hf
```

`max_tokens` caps generated tokens; prompt admission budgets the prompt independently.
`X-Vllm-Priority` accepts an integer and overrides JSON `priority` on Completions,
Chat Completions, and Responses. Nonzero priorities require priority scheduling.
`LLM.chat()` also accepts `priority`.
With engine-level watermarking configured, omitting the request watermarking field
enables it; pass `false` to opt out.

`tool_choice="required"` supports streaming. XGrammar supports `propertyNames`,
and schemas nested more than 64 levels return HTTP 400.
With XGrammar, request stop tokens are masked until the grammar terminates;
a terminal grammar can end generation before `min_tokens` is reached.
Idle SSE streams can emit keep-alive comments; clients should skip those lines.
`POST /v1/systemone` is enabled by default for `choice`, `noul`, and `score`
questions over structured state.

## Speculative decoding

Use `--spec-method`, `--spec-model`, and `--spec-tokens` for `method`, `model`, and
`num_speculative_tokens`. Specify each setting only once across shorthand and
`--speculative-config`.

```sh
vllm serve "$MODEL" --spec-method ngram --spec-tokens 4
```

With LoRA and speculation enabled, `max_num_batched_tokens` must be at least
`max_num_seqs * (num_speculative_tokens + 1)` or startup fails.
`rejection_sample_method` defaults to `standard` and supports `standard`, `synthetic`,
and `block`. Synthetic sampling takes either non-increasing unconditional per-position
`synthetic_acceptance_rates` in `[0, 1]`, one per speculative token, or a target mean
length through `synthetic_acceptance_length` in `[1, num_speculative_tokens + 1]`;
the two settings are mutually exclusive.
Adaptive verification currently requires a DSpark drafter and supports logprob requests.
On a server configured for speculation, `--per-request-spec-decode-metrics`
includes acceptance stats in compatible API responses.
Log probabilities and generated output can vary with batch size or numerical precision,
including between runs with and without speculation.

## Quantization, training control, and inspection

`--quantization-config` can configure `linear` and `moe` separately and carry 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.

Training integrations can use `modelexpress`, call `POST /weight_checker`, and release
weight-transfer communicators while serving inference. Rollout outputs can carry
token-level weight-version spans.
Use `--sleep-preserve-parameter-names 'draft.*'` to preserve matching parameters during sleep.
Enable `sleep_mode_offload_cudagraph` to opt in to CUDA graph offloading;
level 2 sleep preserves FP8 KV scales, and invalid sleep levels return HTTP 400.

Run `vllm download-kernels` for precompiled FlashInfer kernels and
`vllm preload --preload-autotune` to preserve the autotune table across restarts.
Inspect loaded modules, attention backends, and quantization with
`VLLM_LOG_MODEL_INSPECTION=1 vllm serve "$MODEL"` or `print(llm)`.

Files in this skill

  • SKILL.md10.3 KB
  • coverage.json1.5 KB
  • references/distributed-and-caching.md6.9 KB
  • references/engine-and-runtime.md10.1 KB
  • references/models-multimodal-and-lora.md6.2 KB
  • references/operations-and-migrations.md8 KB
  • references/quantization-and-hardware.md6.3 KB
  • references/serving-apis.md7 KB
  • references/speculative-decoding.md5.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.