Skip to content

[Frontend] Only show the summary line of config docstrings in --help - #57357

Merged
DarkLight1337 merged 1 commit into
vllm-project:mainfrom
hmellor:help-config-group-summary
Sep 17, 2026
Merged

DarkLight1337 merged 1 commit into
vllm-project:mainfrom
hmellor:help-config-group-summary

Conversation

@hmellor

@hmellor hmellor commented Sep 17, 2026

Copy link
Copy Markdown
Member

Purpose

vllm serve --help prints a table of config groups, using each config class' full docstring as the description. Most are one line, but CompilationConfig dumps 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:

  SchedulerConfig         Scheduler configuration.
  CompilationConfig       Configuration for compilation.

  You must pass CompilationConfig to VLLMConfig constructor.
  VLLMConfig's post_init does further initialization. If used outside of the
  VLLMConfig, some fields will be left in an improper state.
  ...
  - Top-level Compilation control:
      - [`mode`][vllm.config.CompilationConfig.mode]
      - [`debug_dump_path`][vllm.config.CompilationConfig.debug_dump_path]
  ...
  KernelConfig            Configuration for kernel selection and warmup behavior.
  VllmConfig              Dataclass which contains all vllm-related configuration. This
  simplifies passing around the distinct configurations in the codebase.

After:

  SchedulerConfig         Scheduler configuration.
  CompilationConfig       Configuration for compilation.
  KernelConfig            Configuration for kernel selection and warmup behavior.
  VllmConfig              Dataclass which contains all vllm-related configuration. This simplifies
                          passing around the distinct configurations in the codebase.

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=all is untouched (it is the explicit dump-everything path), and the generated CLI docs pages are unaffected because they format the parser through MarkdownFormatter, 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 --help goes from 297 to 251 lines at COLUMNS=100.

Not a duplicate

Searched the open PRs for this area; nothing else touches the config group table or group descriptions:

gh pr list --repo vllm-project/vllm --state open --search "argparse help summary docstring"
gh pr list --repo vllm-project/vllm --state open --search "Config Groups help"
gh pr list --repo vllm-project/vllm --state open --search "argparse_utils in:title,body"

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_only in tests/utils_/test_argparse_utils.py asserts that a group's summary line survives and the rest of its docstring does not, for both --help and --help=<GroupName>.

Test Result

$ python -m pytest tests/utils_/test_argparse_utils.py -q
23 passed, 14 warnings in 4.53s

The new test fails on main and passes with this change. pre-commit run --files vllm/utils/argparse_utils.py tests/utils_/test_argparse_utils.py is 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

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>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork β€” automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@DarkLight1337

Copy link
Copy Markdown
Member

/ci run

@DarkLight1337
DarkLight1337 enabled auto-merge (squash) September 17, 2026 11:25
@github-actions

Copy link
Copy Markdown

βœ… Triggered Buildkite CI #89604 for commit 19630962030e.

@github-actions github-actions Bot added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 17, 2026
@DarkLight1337
DarkLight1337 merged commit 0ef8366 into vllm-project:main Sep 17, 2026
124 checks passed
@hmellor
hmellor deleted the help-config-group-summary branch September 17, 2026 12:58
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants