Skip to content

[TRTLLM-13378][feat] Drop legacy --extra_visual_gen_options CLI alias#15262

Merged
zhenhuaw-me merged 1 commit into
NVIDIA:mainfrom
zhenhuaw-me:drop-legacy-cli
Jun 17, 2026
Merged

[TRTLLM-13378][feat] Drop legacy --extra_visual_gen_options CLI alias#15262
zhenhuaw-me merged 1 commit into
NVIDIA:mainfrom
zhenhuaw-me:drop-legacy-cli

Conversation

@zhenhuaw-me

@zhenhuaw-me zhenhuaw-me commented Jun 11, 2026

Copy link
Copy Markdown
Member

Description

The standard --visual_gen_args flag has stabilized and all in-tree examples, docs, and benchmark scripts use it. This drops the legacy --extra_visual_gen_options click/argparse alias (kept until now as an alias of --visual_gen_args in trtllm-serve, trtllm-bench visual-gen, the standalone visual-gen benchmark script, and the offline example scripts) and updates the remaining doc, README, YAML-comment, and shell-script references to point at the standard flag.

  • CLI definitions: tensorrt_llm/commands/serve.py, tensorrt_llm/bench/benchmark/visual_gen.py, tensorrt_llm/serve/scripts/benchmark_visual_gen.py
  • Docs: docs/source/commands/trtllm-serve/trtllm-serve.rst
  • Examples: examples/visual_gen/serve/README.md, both benchmark_visual_gen*.sh, comment headers in examples/visual_gen/configs/*.yaml, and the argparse aliases in examples/visual_gen/models/*.py
  • Eval: scripts/visualgen_eval/visual_gen_lpips_score_eval.py

After this change, git grep extra_visual_gen_options returns nothing.

Test Coverage

Built TRT-LLM from source on a GB200 dev container and confirmed:

  • trtllm-serve serve --help lists only --visual_gen_args.
  • trtllm-bench visual-gen --help lists only --visual_gen_args.
  • --extra_visual_gen_options is absent from both.

Tracking: TRTLLM-13378 (under epic TRTLLM-10897 — VisualGen API Polish (M2)).

PR Checklist

  • Please check this after reviewing the above items as appropriate for this PR.

Summary by CodeRabbit

  • Documentation
    • Updated visual generation serving documentation, example scripts, and benchmark tools. The configuration flag for visual generation has been renamed to --visual_gen_args across all examples and serving commands.

@zhenhuaw-me zhenhuaw-me marked this pull request as ready for review June 11, 2026 12:10
@zhenhuaw-me zhenhuaw-me requested review from a team as code owners June 11, 2026 12:10
@zhenhuaw-me

Copy link
Copy Markdown
Member Author

/bot run

@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: aec778a9-12f2-4bdb-8ee4-e3509554ee6b

📥 Commits

Reviewing files that changed from the base of the PR and between 835fd61 and cef8084.

📒 Files selected for processing (18)
  • docs/source/commands/trtllm-serve/trtllm-serve.rst
  • examples/visual_gen/configs/ltx2-4gpu.yaml
  • examples/visual_gen/configs/wan2.2-t2v-fp4-1gpu.yaml
  • examples/visual_gen/configs/wan2.2-t2v-fp4-4gpu.yaml
  • examples/visual_gen/configs/wan2.2-t2v-fp8-8gpu.yaml
  • examples/visual_gen/models/cosmos3_ti2v.py
  • examples/visual_gen/models/flux1.py
  • examples/visual_gen/models/flux2.py
  • examples/visual_gen/models/ltx2.py
  • examples/visual_gen/models/wan_i2v.py
  • examples/visual_gen/models/wan_t2v.py
  • examples/visual_gen/serve/README.md
  • examples/visual_gen/serve/benchmark_visual_gen.sh
  • examples/visual_gen/serve/benchmark_visual_gen_mgmn_distributed.sh
  • scripts/visualgen_eval/visual_gen_lpips_score_eval.py
  • tensorrt_llm/bench/benchmark/visual_gen.py
  • tensorrt_llm/commands/serve.py
  • tensorrt_llm/serve/scripts/benchmark_visual_gen.py
💤 Files with no reviewable changes (9)
  • examples/visual_gen/models/ltx2.py
  • examples/visual_gen/models/cosmos3_ti2v.py
  • examples/visual_gen/models/wan_i2v.py
  • tensorrt_llm/commands/serve.py
  • examples/visual_gen/models/flux2.py
  • examples/visual_gen/models/flux1.py
  • examples/visual_gen/models/wan_t2v.py
  • tensorrt_llm/serve/scripts/benchmark_visual_gen.py
  • tensorrt_llm/bench/benchmark/visual_gen.py

📝 Walkthrough

Walkthrough

The PR renames a CLI flag across the TensorRT-LLM visual generation suite from --extra_visual_gen_options to --visual_gen_args. Changes include documentation updates, example script rewiring, core library command definitions, and supporting benchmark/evaluation utilities.

Changes

Visual Generation CLI Flag Rename

Layer / File(s) Summary
Documentation and configuration examples
docs/source/commands/trtllm-serve/trtllm-serve.rst, examples/visual_gen/configs/*.yaml, examples/visual_gen/serve/README.md
User-facing documentation and YAML config headers updated to reference --visual_gen_args instead of --extra_visual_gen_options, with example trtllm-serve commands revised accordingly.
Example model CLI argument wiring
examples/visual_gen/models/cosmos3_ti2v.py, examples/visual_gen/models/flux1.py, examples/visual_gen/models/flux2.py, examples/visual_gen/models/ltx2.py, examples/visual_gen/models/wan_i2v.py, examples/visual_gen/models/wan_t2v.py
Argparse configuration in example scripts updated to remove --extra_visual_gen_options option declarations, consolidating on --visual_gen_args with dest="visual_gen_args" and unchanged downstream YAML loading.
Core library serve and benchmark CLI
tensorrt_llm/commands/serve.py, tensorrt_llm/bench/benchmark/visual_gen.py, tensorrt_llm/serve/scripts/benchmark_visual_gen.py
Click and argparse decorators updated to expose only --visual_gen_args (or --visual-gen-args in hyphenated form) and remove previous flag aliases, preserving YAML path parameter bindings.
Benchmark and evaluation script updates
examples/visual_gen/serve/benchmark_visual_gen.sh, examples/visual_gen/serve/benchmark_visual_gen_mgmn_distributed.sh, scripts/visualgen_eval/visual_gen_lpips_score_eval.py
Bash scripts updated to append --visual_gen_args flag when constructing trtllm-serve commands; Python evaluation utility docstring and help text reference the new flag name.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: removing the legacy CLI alias in favor of the standard flag.
Description check ✅ Passed The description includes all required sections: what was changed, why, test coverage details, and a completed PR checklist.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands and usage tips.

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53565 [ run ] triggered by Bot. Commit: cef8084 Link to invocation

@zhenhuaw-me zhenhuaw-me requested review from QiJune and chang-l June 11, 2026 12:51
@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53565 [ run ] completed with state SUCCESS. Commit: cef8084
/LLM/main/L0_MergeRequest_PR pipeline #42714 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@kaiyux kaiyux left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving on tensorrt_llm/bench changes

The standard --visual_gen_args flag has stabilized and all in-tree
examples, docs, and benchmark scripts now use it. Remove the legacy
--extra_visual_gen_options click/argparse alias from trtllm-serve,
trtllm-bench visual-gen, the standalone visual-gen benchmark script,
and the offline example scripts. Update remaining doc, README, YAML
comment, and shell-script references to point at the standard flag.

Signed-off-by: Zhenhua Wang <zhenhuaw@nvidia.com>
@zhenhuaw-me

Copy link
Copy Markdown
Member Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53773 [ run ] triggered by Bot. Commit: 9fe12e9 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53773 [ run ] completed with state FAILURE. Commit: 9fe12e9
/LLM/main/L0_MergeRequest_PR pipeline #42893 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@zhenhuaw-me

Copy link
Copy Markdown
Member Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53827 [ run ] triggered by Bot. Commit: 9fe12e9 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53827 [ run ] completed with state FAILURE. Commit: 9fe12e9
/LLM/main/L0_MergeRequest_PR pipeline #42942 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@zhenhuaw-me

Copy link
Copy Markdown
Member Author

/bot run

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53848 [ run ] triggered by Bot. Commit: 9fe12e9 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53848 [ run ] completed with state SUCCESS. Commit: 9fe12e9
/LLM/main/L0_MergeRequest_PR pipeline #42957 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@zhenhuaw-me

Copy link
Copy Markdown
Member Author

/bot run --disable-fail-fast

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53885 [ run ] triggered by Bot. Commit: 9fe12e9 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53885 [ run ] completed with state SUCCESS. Commit: 9fe12e9
/LLM/main/L0_MergeRequest_PR pipeline #42985 completed with status: 'FAILURE'

CI Report

⚠️ Action Required:

  • Please check the failed tests and fix your PR
  • If you cannot view the failures, ask the CI triggerer to share details
  • Once fixed, request an NVIDIA team member to trigger CI again

CI Agent Failure Analysis

Link to invocation

@zhenhuaw-me

Copy link
Copy Markdown
Member Author

/bot skip --comment "this is a trivial change and the remaining failures are H100 unrelated"

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53983 [ skip ] triggered by Bot. Commit: 9fe12e9 Link to invocation

@tensorrt-cicd

Copy link
Copy Markdown
Collaborator

PR_Github #53983 [ skip ] completed with state SUCCESS. Commit: 9fe12e9
Skipping testing for commit 9fe12e9

Link to invocation

Comment thread tensorrt_llm/commands/serve.py
Comment thread tensorrt_llm/bench/benchmark/visual_gen.py
Comment thread tensorrt_llm/serve/scripts/benchmark_visual_gen.py
@zhenhuaw-me zhenhuaw-me merged commit 0593968 into NVIDIA:main Jun 17, 2026
7 checks passed
@zhenhuaw-me zhenhuaw-me deleted the drop-legacy-cli branch June 17, 2026 06:14
xinhe-nv pushed a commit to tensorrt-cicd/TensorRT-LLM that referenced this pull request Jun 23, 2026
…NVIDIA#15262)

Signed-off-by: Zhenhua Wang <zhenhuaw@nvidia.com>
Signed-off-by: GitLab CI Bot <gitlab-ci@nvidia.com>
xinhe-nv pushed a commit to tensorrt-cicd/TensorRT-LLM that referenced this pull request Jun 24, 2026
…NVIDIA#15262)

Signed-off-by: Zhenhua Wang <zhenhuaw@nvidia.com>
Signed-off-by: GitLab CI Bot <gitlab-ci@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants