Repository navigation
[Frontend] Only show the summary line of config docstrings in --help - #57357
Merged
DarkLight1337 merged 1 commit intoSep 17, 2026
Merged
Conversation
The config group table in `vllm serve --help` printed each config class' full docstring, so `CompilationConfig` dumped 46 lines of prose and mkdocs cross-reference syntax into the terminal. Keep the first paragraph only, and derive the title column from the longest group title. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
DarkLight1337
approved these changes
Sep 17, 2026
Member
|
/ci run |
DarkLight1337
enabled auto-merge (squash)
September 17, 2026 11:25
|
β
Triggered Buildkite CI #89604 for commit |
michael-gpu
pushed a commit
to practical-inference/vllm-ampere-extended
that referenced
this pull request
Oct 20, 2026
vllm-project#57357) Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
vllm serve --helpprints a table of config groups, using each config class' full docstring as the description. Most are one line, butCompilationConfigdumps 46 lines of prose and mkdocs cross-reference syntax straight into the terminal, which pushes everything else off screen and is unreadable without the docs renderer:After:
Only the first paragraph of the docstring is kept, collapsed onto one line and wrapped into the description column. The same summary is used for
--help=<GroupName>.--help=allis untouched (it is the explicit dump-everything path), and the generated CLI docs pages are unaffected because they format the parser throughMarkdownFormatter, bypassing this code path, so the full docstrings still render there.The hard-coded width of the title column is now derived from the longest group title, which happens to be the same 24 columns today.
vllm serve --helpgoes from 297 to 251 lines atCOLUMNS=100.Not a duplicate
Searched the open PRs for this area; nothing else touches the config group table or group descriptions:
The nearest neighbour is #54841 (draft, serves pre-generated CLI help), which does not touch
vllm/utils/argparse_utils.py.Test Plan
New test
test_group_description_is_summary_onlyintests/utils_/test_argparse_utils.pyasserts that a group's summary line survives and the rest of its docstring does not, for both--helpand--help=<GroupName>.Test Result
The new test fails on
mainand passes with this change.pre-commit run --files vllm/utils/argparse_utils.py tests/utils_/test_argparse_utils.pyis clean.No model evaluation: this only changes help text formatting, with no effect on model output, accuracy or serving behaviour.
Note
AI assistance (Claude Code) was used for this change. I reviewed every changed line and ran the tests above.
π€ Generated with Claude Code