add-cli-arg
Skill98k starsChanged 7 days agoApache-2.0View on GitHub
Recipe for adding or changing a `vllm serve` / `vllm` CLI argument. Use when adding a flag to `EngineArgs` in `vllm/engine/arg_utils.py` or to the frontend args classes (`FrontendArgs`, `BaseFrontendArgs`, `BatchFrontendArgs`), exposing a config field on the command line, or changing an existing arg's type, default, or help text.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Who's talking about vllm-project/vllm
- Fahd Mirza“How-to Install vLLM and Serve AI Models Locally – Step by Step Easy Guide”YouTube · Apr 20, 2025 · 21k views
- Red Hat“Optimize LLM inference with vLLM”YouTube · Jul 22, 2025 · 21k views
- lorvo“What is vLLM and how does it work?”YouTube · Oct 27, 2026 · 5.1k views
- Red Hat“[vLLM Office Hours #35] How to Build and Contribute to vLLM - October 23, 2025”YouTube · Oct 24, 2025 · 2.5k views
- Red Hat“[vLLM Office Hours #37] InferenceMAX & vLLM - November 13, 2025”YouTube · Nov 14, 2025 · 886 views
The biggest 5 of 104 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 104
Talked about on GitHub, YouTube, Bluesky, Hacker News, the web and Stack Overflow (104 times).
On GitHub · 28
- Jul 28, 2025Feature Request: GLM 4.5 MoE support — ggml-org/llama.cpp165 reactions · 5 comments
- Apr 17, 2025[rollout] feat: introduce vLLM AsyncLLM to support multi-turn rollout — verl-project/verl52 reactions · 42 comments
- Apr 1, 2024Ecosystem compatibility with numpy 2.0 — numpy/numpy42 reactions · 167 comments
- Sep 29, 2025Feature Request: DeepSeek V3.2-Exp support — ggml-org/llama.cpp35 reactions · 54 comments
- Jun 20, 2023Add support to vLLM inference engine - to possibly gain x10 speedup in inference — oobabooga/textgen33 reactions · 19 comments
23 more on GitHub
- Dec 26, 20252025 年我提了 500 个 Pull Requests — yihong0618/gitblog32 reactions · 9 comments
- Jul 26, 2024[Feature] Generation Inputs: input_embeds — sgl-project/sglang30 reactions · 13 comments
- Sep 2, 2025Feature Request: Apertus models support — ggml-org/llama.cpp29 reactions · 14 comments
- Feb 7, 2024Development Roadmap (Deprecated) — sgl-project/sglang25 reactions · 17 comments
- Jul 14, 2023vLLM Support — guidance-ai/guidance25 reactions · 5 comments
- Jan 12, 2026[roadmap] verl 26Q1 roadmap — verl-project/verl24 reactions · 13 comments
- Feb 9, 2026model: support GLM MoE DSA arch (NOTE: indexer is not yet supported) — ggml-org/llama.cpp23 reactions · 28 comments
- May 6, 2026Feature Request: MTP (Multi-Token Prediction) Speculative Decoding for Gemma 4 — jundot/omlx20 reactions · 3 comments
- Apr 19, 2024llama3-instruct models not stopping at stop token — ollama/ollama20 reactions · 47 comments
- Feb 17, 2026Feature Request: Add Voxtral Realtime — ggml-org/llama.cpp18 reactions · 2 comments
- Apr 14, 2025kernel: support slightly faster merge_state_v2 cuda kernel — sgl-project/sglang17 reactions · 3 comments
- Nov 22, 2024[Roadmap] veRL Development Roadmap — verl-project/verl17 reactions · 7 comments
- Mar 8, 2026vllm: 0.16.0 -> 0.24.0 — NixOS/nixpkgs16 reactions · 91 comments
- Apr 7, 2025Support MHA with chunked prefix cache for DeepSeek chunked prefill — sgl-project/sglang16 reactions · 7 comments
- Mar 23, 2025[Model] Adding Qwen3 and Qwen3MoE — sgl-project/sglang16 reactions · 14 comments
- Sep 16, 2025fix: Resolve response format corruption due to incorrect encoding — openai/harmony15 reactions · 17 comments
- Sep 2, 2026[recipe] feat: preview DeepSeek-V4 exact 0-diff true-on-policy RL on Megatron and vLLM — verl-project/verl14 reactions · 2 comments
- Apr 25, 2026Support SM120 — deepseek-ai/DeepGEMM12 reactions · 18 comments
- Mar 30, 2025Add DeepSeek V3/R1 shared experts fusion — sgl-project/sglang11 reactions · 14 comments
- Jun 15, 2026Add DFlash support — ikawrakow/ik_llama.cpp9 reactions · 3 comments
- Apr 26, 2026[Quantization] add humming quantization kernel — sgl-project/sglang9 reactions · 17 comments
- Mar 29, 2026feat(kv-cache): Add TurboQuant KV cache quantization (WIP) — sgl-project/sglang8 reactions · 5 comments
- Dec 18, 2025[Draft] [Preview] Support gfx1201 — ROCm/aiter8 reactions · 5 comments
On YouTube · 21
- Apr 20, 2025How-to Install vLLM and Serve AI Models Locally – Step by Step Easy Guide — Fahd Mirza21k views · 13 comments
- Jul 22, 2025Optimize LLM inference with vLLM — Red Hat21k views · 6 comments
- Oct 27, 2026What is vLLM and how does it work? — lorvosays it tested it5.1k views
- Oct 24, 2025[vLLM Office Hours #35] How to Build and Contribute to vLLM - October 23, 2025 — Red Hat2.5k views · 4 comments
- Nov 14, 2025[vLLM Office Hours #37] InferenceMAX & vLLM - November 13, 2025 — Red Hat886 views
16 more on YouTube
- Oct 19, 2026vLLM 0.32: Serve Local AI Across Your Homelab — Scottek476 views · 2 comments
- Aug 5, 2026Stop Using Ollama! (Unless you see these vLLM Benchmarks) 🚀 — Optilatesays it tested it422 views
- Oct 19, 2026vLLM 0.32 Turns Your GPU Into a LAN AI Server — Scottek360 views
- Sep 17, 2026VLLM: Ultra-Fast LLM Serving with PagedAttention for Production AI (LLama/Mistral/Qwen) — Solopreneurs hub355 views
- Dec 3, 2025STOP Paying Cloud Tax: The Ultimate FREE vLLM + LMCache Stack for LLM Deployment — Agentic Economics172 views
- Aug 26, 2026vLLM v0.28.0: Major Performance Updates for LLM Inference — Love More116 views · 1 comment
- Oct 22, 2026How ONE Server Answers 1000s of AI Chats (vLLM Explained) — The Rethinking Machine95 views
- Oct 20, 2026vLLM: phục vụ LLM qua API, nhưng độ ổn định ra sao? | PaperEngineer #shorts — Kỹ sư giấy63 views · 1 comment
- Oct 22, 2026A vLLM advisory: one bad request, a server alive but not serving — Data Engineering With AI55 views
- Oct 30, 2026vLLM vs Jev: What Do the Speed Results Actually Prove? — Tensor Garage48 views
- Nov 3, 2026vLLM 0.33 Is Out: What Changed, and What Breaks? #shorts — Ever Known?46 views
- Nov 1, 2026LLM inference: KV cache, FlashAttention, vLLM, speculative decoding | Evolution Grid — TFM Lab46 views · 1 comment
- Oct 29, 2026Cancel Cloud API Subscriptions: Run 100% Free Self-Hosted vLLM Engine — DailyDev AIsays it tested it22 views
- Oct 2, 2026Why Fast LLMs Feel Slow: Inside the vLLM Scheduler — Tim Lin21 views
- Oct 16, 2026vLLM CVE-2026-105757: Patch Structured-Output Engine DoS — dailytechhackglobal8 views
- Oct 12, 2026vLLM CVE-2026-105757: Patch AI Serving DoS Risk Now — dailytechhackglobal3 views
On Bluesky · 16
- Apr 13, 2025Vllm est un projet de serveur d'inférence pour vos LLM qui se veut performant et efficace en terme de gestion mémoire ⬇️… — @ponceto91.bsky.social17 likes and reposts
- Feb 2, 2025vLLM has been updated to 0.71 with the enhancement to DeepSeek models. github.com/vllm-project... — @sungkim.bsky.social15 likes and reposts · 1 reply
- Jun 24, 2026No uses Ollama si quieres usar IA local con buen rendimiento. No exprime tu GPU al máximo. Mejor usa vLLM: ✓ Mejor eficiencia ✓ Más… — @midu.dev10 likes and reposts · 2 replies
- Jan 31, 2025Paper: R.I.P.: Better Models by Survival of the Fittest Prompts ( arxiv.org/abs/2501.18578 ) They used: - Fairseq2 from FAIR for LLM… — @sungkim.bsky.social4 likes and reposts
- Oct 28, 2026⚡ Serve LLMs faster and cheaper with vLLM's PagedAttention, continuous batching and a drop-in OpenAI-compatible API. 🔗… — @prosperflowio.bsky.social3 likes and reposts
11 more on Bluesky
- May 27, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 vllm-project / vllm ⭐ 48,168 (+100) 🗒 Python A high-throughput and memory-efficient inference and… — @github-trending.bsky.social3 likes and reposts
- Apr 12, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 vllm-project / vllm ⭐ 44,413 (+267) 🗒 Python A high-throughput and memory-efficient inference and… — @github-trending.bsky.social2 likes and reposts
- Jan 21, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 vllm-project / vllm ⭐ 34,172 (+145) 🗒 Python A high-throughput and memory-efficient inference and… — @github-trending.bsky.social2 likes and reposts
- Mar 23, 2026https://github.com/vllm-project/vllm — @tom-doerr.bsky.social1 likes and repost
- Aug 14, 2025A high-throughput and memory-efficient inference and serving engine for LLMs — @midnattssol.bsky.social1 likes and repost
- Apr 30, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 vllm-project / vllm ⭐ 46,215 (+128) 🗒 Python A high-throughput and memory-efficient inference and… — @github-trending.bsky.social1 likes and repost
- Mar 7, 2025🔥 Hot Repo! 🔥 (100+ new stars) 📦 vllm-project / vllm ⭐ 40,586 (+148) 🗒 Python A high-throughput and memory-efficient inference and… — @github-trending.bsky.social1 likes and repost
- Oct 18, 2024📦 vllm-project / vllm ⭐ 28,641 (+85) 🗒 Python A high-throughput and memory-efficient inference and serving engine for LLMs — @github-trending.bsky.social1 likes and repost
- Oct 2, 2024interessante esse vllm, parece ser mais performático em cpus do que o ollama github.com/vllm-project... — @gaucho.dev1 likes and repost
- Dec 12, 2023🚀 Skyrocketing! 🚀 (200+ new stars) 📦 vllm-project / vllm ⭐ 11,193 (+321) 🗒 Python A high-throughput and memory-efficient inference and… — @github-trending.bsky.social1 likes and repost · 1 reply
- Nov 24, 2026→ What it solves: Debugging broken RAG retrieval. 6. vLLM — High-Throughput Self-Hosted Model Serving 🔗 github.com/vllm-projec... → What… — @hrswati.bsky.social0 likes and reposts · 1 reply
On Hacker News · 15
- Aug 29, 2026vLLM v0.28.0108 points · 43 comments
- Apr 4, 2026vLLM introduces memory optimizations for long-context inference5 points
- Apr 7, 2026vLLM IR: A Functional Intermediate Representation for vLLM4 points
- Sep 9, 2026vLLM 0.29.0: Model Runner V2 is now the default3 points
- Sep 10, 2023Vllm: High-throughput and memory-efficient inference and serving engine for LLMs3 points
10 more on Hacker News
- Aug 6, 2023Vllm3 points
- Feb 25, 2026vLLM (high-throughput LLM serving engine)2 points
- Dec 17, 2023Easy, fast, and cheap LLM serving for everyone2 points
- Dec 11, 2023Official PR Reveals the Inference Code for Mixtral 8x7B2 points
- Jun 25, 2023VLLM2 points
- Sep 16, 2026vLLM: Jev-like mode for the DiffusionGemma model1 point
- Jan 22, 2026vLLM multi-turn conversations design1 point
- Jan 24, 2024VLLM Sacrifices Accuracy for Speed1 point
- Dec 15, 2023vllm1 point
- Dec 15, 2023Mixtral Expert Parallelism1 point
On the web · 15
- Nov 20, 2026Building a vLLM Container Image — dev.to
- Nov 19, 2026Five Serving Engines on a Lambda GPU: Gemma 4 E2B Under vLLM, SGLang, llama.cpp, PyTorch and JAX — dev.to
- Nov 16, 2026Inside vLLM: how the serving engine fits together — kaanboke.substack.com
- Sep 27, 2026vLLM: Fast LLM Serving, Scanned | MrTechKing — mrtechking.com
- May 20, 2026vLLM in Production: Ranked Configuration Decisions, Failure Modes, and the Architecture That Makes Them Work — dev.to
10 more on the web
- May 12, 2026What is vLLM? — redhat.com
- Apr 10, 2026vLLM vs Ollama vs SGLang vs TensorRT-LLM Serving 2026 Search — theaiengineer.substack.com
- Jan 19, 2026Getting started with vllm fast and efficient llm inference — medium.com
- Dec 18, 2025Serving LLMs with vLLM: A practical inference guide — nebius.com
- Oct 12, 2025vLLM by Example: Part 1. Kicking the tires of vLLM; an open ... — john-tucker.medium.com
- Sep 5, 2025Vllm a high performance inference engine for llms — medium.com
- Jun 27, 2025Life of an inference request (vLLM V1): How LLMs are served efficiently at ... — ubicloud.com
- Jun 13, 2025Code Review: Deep Dive into vLLM's Architecture and Implementation ... — zerohertz.github.io
- May 27, 2025Performance vs Practicality: A Comparison of vLLM and Ollama — robert-mcdermott.medium.com
- May 5, 2025Run your own AI at scale: Tunning vLLM for Superb LLM Deployment (Vol. 1) — croz1.substack.com
On Stack Overflow · 9
- Apr 16, 2024How to install pip install torch==2.1.2+cu118 in linux?5 votes · 2 answers
- Jul 2, 2024How to set eos_token_id in llama3 in HuggingFaceLLM?2 votes
- May 15, 2024How to Load an Already Instantiated Hugging Face Model into vLLM for Inference?1 vote
- May 12, 2026How to Evaluate my RAG System using Local / free tier API model0 votes
- Mar 14, 2025Max len error when using Huggingface model0 votes
4 more on Stack Overflow
- Apr 27, 2024How does one use vllm with pytorch 2.2.2 and python 3.11?0 votes · 1 answer
- Dec 13, 2023ImportError: libcudart.so.12: cannot open shared object file: No such file or directory0 votes
- Nov 20, 2023How to send data in batches to a LLM0 votes
- Jan 24, 2024OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory-1 votes
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- csrc/AGENTS.mdAGENTS.md
- rust/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- check-api-compatSkill
- ci-fails-buildkiteSkill
- debug-imaSkill
- kernel-microbenchmarkSkill
- model-microbenchmarkSkill
- model-recipesSkill
- pr-checklistSkill
- review-vllm-securitySkill
- transformers-upgradeSkill
- triton-kernel-writingSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Every CLI arg is a field on a dataclass.
- Very specific: line 24
Prefer automatic selection or a better default.
- Very specific: line 43
When the generated kwargs don't fit (wrong parser, missing choices), fix the annotation, or extend _compute_kwargs in arg_utils.py so every …
- Very specific: line 78
Config construction: add foo_bar=self.foo_bar to the XConfig(...) call in create_engine_config or the matching create_x_config method.
- Very specific: line 99
Add a test to tests/engine/test_arg_utils.py only for behaviour beyond the field itself (custom parsing, aliases, cross-field validation).
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Adding a CLI Argument
Every CLI arg is a field on a dataclass. The dataclass owns the type, default,
help text, and validation. get_kwargs(cls) in arg_utils.py derives the
argparse kwargs (type, choices, BooleanOptionalAction, JSON parsing, help)
from the field's annotation and attribute docstring, so a correct field
produces a correct flag with no extra code.
Pick the owner first; it decides the recipe:
| The arg configures | Owner | Recipe |
| The engine (model, cache, parallelism, scheduling, kernels, ...) | A config class in vllm/config/ | Engine args |
| The API server only (HTTP, chat templates, tool parsers, LoRA modules, ...) | BaseFrontendArgs (shared) or FrontendArgs (server only) in vllm/entrypoints/common/cli_args.py | Frontend args |
vllm run-batch only | BatchFrontendArgs (search for class BatchFrontendArgs) | Frontend args |
Decide whether a flag is needed
Prefer automatic selection or a better default. If users must control it,
write down why existing controls are not enough (the pr-checklist skill asks
for this).
Write the field
Same for every owner:
foo_bar: int | None = Field(default=None, ge=0)
"""What it does, how to enable it, and the default behaviour.
This docstring is the `--help` text and the rendered CLI reference."""- The owning classes are pydantic dataclasses, so validation lives on the
field and applies to the Python API as well as the CLI. Express bounds and
lengths as
pydantic.Fieldconstraints (ge,gt,le,min_length); use a validator or__post_init__only for rules that span fields. - Mutable defaults use
Field(default_factory=...). - When the generated kwargs don't fit (wrong parser, missing choices), fix the
annotation, or extend
_compute_kwargsinarg_utils.pyso every class gets the fix.
Engine args
Fields of a config exposed through a JSON arg (search add_cli_args for
--compilation-config, --attention-config, --kernel-config and the other
--*-config args) are already settable as --x-config.field value. Adding
the field to that config class is the whole change. Give such a field its own
flag only when most users will set it, as --attention-backend does for
AttentionConfig.backend; the steps below then apply as for any other field.
Otherwise EngineArgs mirrors the config field, in three places in
arg_utils.py:
EngineArgsfield: the config's annotation verbatim, and the default read from the config class, never a literal, so the two cannot drift.foo_bar: int | None = XConfig.foo_bar foo_list: list[str] = get_field(XConfig, "foo_list") # default_factoryadd_cli_args: in the existing argument group for that config, pass theget_kwargsoutput through untouched.x_group.add_argument("--foo-bar", **x_kwargs["foo_bar"])The flag is the field name with dashes. When the field name is generic, prefix both the flag and the
EngineArgsfield with the config's area (MambaConfig.backendis--mamba-backend/mamba_backend).- Config construction: add
foo_bar=self.foo_barto theXConfig(...)call increate_engine_configor the matchingcreate_x_configmethod.
Frontend args
The field is the whole change: BaseFrontendArgs.add_cli_args registers every
field of the class as --field-name. Read the value from the parsed args
where the server is built.
- Kwargs that
get_kwargscannot express go in the class's_customize_cli_kwargsoverride, which callssuper()first. - The Rust frontend serves the same flags. A flag it does not implement must
fail at startup or be a documented no-op; see
rust/AGENTS.md.
Check it
vllm serve --help=foo-bar # flag, default, and help text render
.venv/bin/python -m pytest tests/engine/test_arg_utils.py -vAdd a test to tests/engine/test_arg_utils.py only for behaviour beyond the
field itself (custom parsing, aliases, cross-field validation). A plain field
is covered by the get_kwargs tests and needs none.
Changing an existing arg
Change the owning field (type, default, docstring) and let the CLI follow.
Renames and removals keep the old flag working with a deprecation warning
that names the removal version; search arg_utils.py for
DEPRECATION_MESSAGE for the existing pattern.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

