Repository navigation
Conversation
Signed-off-by: Lori Ren <lorir@nvidia.com>
Signed-off-by: Lori Ren <lorir@nvidia.com>
c83f3ad to
3c09e8d
Compare
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Engine setup and runner configuration .pre-commit-config.yaml, legacy-files.txt, pyproject.toml, ruff-legacy.toml, tensorrt_llm/_torch/pyexecutor/model_engine.py |
The file was removed from legacy and formatting-exclusion lists. Its initialization, compilation setup, and runner configuration use updated annotations and formatting. |
Runtime methods and multimodal handling tensorrt_llm/_torch/pyexecutor/model_engine.py |
Metadata access, callable registration, warmup, encoder forwarding, and multimodal handling use updated annotations and formatting. Existing checks and outcomes remain unchanged. |
Compilation, refit, and execution lifecycle tensorrt_llm/_torch/pyexecutor/model_engine.py |
Sequence-length inference, graph release, compilation, refit, forward execution, and userbuffer initialization are reformatted. Their existing conditions and behavior remain unchanged. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Refactor
Suggested reviewers: juney-nvidia, chzblych
Merge Risk: 
Minimal · up to ec4ed
-
The typing and formatting changes have no identified merge-blocking risk.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed-
Full details: Description check
-
Explanation
The description explains the change, states the preservation requirements, lists relevant tests and validation steps, and includes a completed checklist. It is sufficiently complete for this refactoring pull request.
-
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 38 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
/bot run |
👎 Promotion blocked, new vulnerability foundVulnerability report
|
brnguyen2
left a comment
There was a problem hiding this comment.
Approving — the comments below are optional touch-ups, not blockers.
Checked the mechanical claim independently: the module AST matches the pre-PR file once annotations and the typing/collections.abc imports are stripped (the one remaining diff is the docstring wrap in get_max_num_sequences), ruff 0.9.4 passes check and format --check, there is no from __future__ import annotations so evaluation stays eager, and scripts/legacy_utils.py check-configs plus ruff-legacy-baseline.json have no leftover reference to the file.
One description fix: the "stacked on #21066, rebase and repeat validation after it merges" paragraph is stale. #21066 is already on the base of this branch and the diff is just these five files. Please drop that paragraph and state whether the H100 test runs listed under Test Coverage were done on the current base.
|
/bot run |
|
PR_Github #81299 [ run ] triggered by Bot. Commit: |
Dev Engineer Review
model_engine.pyadopts standard Ruff formatting and Python 3.10 annotation syntax. The supplied change summary reports no intended behavior changes. Preserve eager annotation evaluation, call signatures, import side effects, and execution and cleanup order.The configuration changes remove
model_engine.pyfrom legacy formatting and file-selection patterns. The author reports that full pre-commit passed and that AST comparison and repeated formatting checks confirmed the intended mechanical changes. The author also reports rerunning the listed tests on H100 after rebasing. These results are author-reported.QA Engineer Review
No test changes.
Per-File QA Perspective
.pre-commit-config.yaml: Removesmodel_engine.pyfrom two hook file patterns. Verify standard hooks select the file as intended.legacy-files.txt: Removesmodel_engine.pyfrom the legacy-file list. Verify legacy handling no longer applies to this file.pyproject.toml: Removes the Ruff formatting exclusion formodel_engine.py. Verify the configured formatter accepts the file.ruff-legacy.toml: Removesmodel_engine.pyfrom the legacy Ruff include list. Verify formatter scope matches the other configuration changes.tensorrt_llm/_torch/pyexecutor/model_engine.py: Updates annotations and formatting. Verify runtime behavior and API compatibility remain unchanged.Description
model_engine.pystill uses the legacy formatting and lint toolchain and older typing aliases. Move it to standard Ruff and Python 3.10 annotation syntax while preserving eager annotation evaluation, call signatures, import side effects, and execution and cleanup order.Test Coverage
Reran
test_pytorch_model_engine.py,test_pytorch_model_engine_warmup.py,engine/test_runners.py, andtest_eager_workspace_engine.pyon H100 after rebasing onto main at0b10da8224(PR head3c09e8dc36).Full pre-commit passed inside the container on this rebased head. AST comparison and repeated formatting checks confirmed the intended mechanical changes.
PR Checklist