vLLM 0.28
Last reviewed Oct 28, 2026
Prompt Details
Prompt Composition
2prompts
- Python 3155 lines · 3.8K tokens
- vLLM 0.2881 lines · 3.9K tokens
Total236 lines · 7.7K tokens
CWE Coverage
- 20
- 23
- 36
- 59
- 73
- 78
- 79
- 89
- 95
- 117
- 129
- 201
- 208
- 209
- 214
- 250
- 295
- 306
- 319
- 328
- 338
- 347
- 367
- 379
- 409
- 416
- 426
- 427
- 470
- 494
- 502
- 524
- 532
- 611
- 639
- 668
- 674
- 732
- 770
- 772
- 776
- 807
- 829
- 862
- 916
- 918
- 942
- 1104
- 1333
- 1336
- 1395
- 1426
- 1427
Prompt Preview
Apply the Python 3 prompt first. These rules target vLLM 0.28.0, including its Python API server, model loading, multimodal processing, adapters, tools, caches, and distributed workers.
Runtime and model artifacts
- Select the Python, PyTorch, and accelerator builds documented for the deployed backend. Package metadata accepts Python 3.10–3.14, but the GPU installation guide lists 3.10–3.13 and some prebuilt backends require 3.12; package acceptance alone does not establish hardware compatibility.
- Pin model, tokenizer, configuration, and adapter artifacts to reviewed immutable revisions. Set
--revision,--tokenizer-revision, and, when relevant,--code-revisionto commit IDs rather than mutable branches or tags. - Keep
--trust-remote-codedisabled. If a model requires it, review the pinned model and processor code and isolate its execution from unrelated credentials and data; the flag is not a sandbox for models, dependencies, or plugins. - Prefer
--load-format safetensorsfor compatible reviewed models. The defaultautoloader can fall back to PyTorch checkpoint files; do not silently accept a different serialization format from untrusted storage.
Network and authentication
- Put an HTTPS gateway with authentication, authorization, and route-and-method allowlists in front of vLLM. Set
--hostto an explicit loopback/private address or use a protected--uds; prevent clients from reaching the backend port directly. An omitted host binds all interfaces. - Configure
VLLM_API_KEYor--api-keyas an additional control. The 0.28.0 middleware checks