Skip to content

Fix EAGLE deployment tests with current TensorRT-LLM - #3553

Merged
yingguo-trt merged 1 commit into
NVIDIA:mainfrom
yingguo-trt:fix/trtllm-eagle-deploy-config
Nov 24, 2026
Merged

yingguo-trt merged 1 commit into
NVIDIA:mainfrom
yingguo-trt:fix/trtllm-eagle-deploy-config

Conversation

@yingguo-trt

@yingguo-trt yingguo-trt commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

HF checkpoint deployment tests pass eagle3_one_model to TensorRT-LLM when constructing an EAGLE config. TensorRT-LLM 1.4.0rc3 and current main reject that keyword before loading weights.

Check the installed EagleDecodingConfig.model_fields before passing the flag. Older versions keep the mode requested by each case. On versions that only implement one-model execution, the test uses the engine default and logs that mode for cases that requested two-model execution. The target and draft checkpoints are still passed separately. Upstream fallback · Upstream removal

Testing

  • Ran the deployment adapter’s configuration and engine-construction path in the official nvcr.io/nvidia/tensorrt-llm/release:1.4.0rc3 image. The original code raised extra_forbidden for both legacy values. The change constructed EagleDecodingConfig in EAGLE3_ONE_MODEL mode for both, preserving the separate target and draft arguments. The probe stopped at the LLM constructor before loading weights.
  • Checked the arguments produced for all 12 existing test_eagle TRT-LLM cases against the published configuration schemas at v1.4.0rc3 and main at 3de72b9. All 12 failed on the extra field before the change and passed after it.
  • Constructed all 12 configs using the Pydantic class definitions from TRT-LLM v1.2.0. The six true and six false values were preserved.
  • Ruff, mypy and the applicable pre-commit checks passed. These checks cover configuration before model loading. End-to-end token generation was not rerun.

Contributor checklist

  • Backward compatibility: preserved on TRT-LLM versions exposing the flag.
  • Tests: exercised existing deployment cases at the configuration boundary.
  • New dependencies, copied code and user-facing changelog: N/A.
  • Claude review: pending.

Tracking

NVBug 7143111

Pass eagle3_one_model only when the installed EagleDecodingConfig exposes it. Qualify legacy two-model requests in the test output when the engine implements only one-model execution.

Signed-off-by: yingguo-trt <[email protected]>
@yingguo-trt
yingguo-trt requested a review from a team as a code owner November 24, 2026 07:48
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The EAGLE deployment utility checks whether EagleDecodingConfig supports eagle3_one_model. It passes the option only when supported and prints a compatibility message when it is unsupported and false. The copyright year also changes to 2026.

Changes: EAGLE deployment compatibility

Layer / File(s) Summary
EAGLE configuration compatibility
tests/_test_utils/deploy_utils.py
The utility passes eagle3_one_model only when EagleDecodingConfig.model_fields contains that field. If the field is unavailable and the value is false, it prints a compatibility message and constructs the configuration without the option. The copyright year changes to 2026.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Suggested reviewers: noeyy-mino, kevalmorabia97

Merge Risk: Minimal · up to 1dc23

This updates a test helper so EAGLE deployment tests work with TensorRT-LLM versions whose config no longer accepts the one-model option. No production code is affected, and no merge-blocking risk was found.

Security architecture risk: Minimal · up to 1dc23

The fix lets existing deployment tests proceed when the installed dependency no longer accepts an option. It does not change production interfaces, deployment settings, or permissions.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title states the main change: EAGLE deployment tests are fixed so they work with the current TensorRT-LLM. The objectives confirm the PR checks the installed EagleDecodingConfig model_fields befor…
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.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Security Anti-Patterns Passed The check applies to modelopt package and examples Python changes. The reviewed range changes one file: tests/_test_utils/deploy_utils.py. That file sits under tests/, so the check does not cover it. …
Full details: Title check

Explanation

The title states the main change: EAGLE deployment tests are fixed so they work with the current TensorRT-LLM. The objectives confirm the PR checks the installed EagleDecodingConfig model_fields before passing eagle3_one_model, which the title's fix-and-compatibility wording covers. The title is specific and short, and it does not describe anything absent from the changeset.

Full details: Security Anti-Patterns

Explanation

The check applies to modelopt package and examples Python changes. The reviewed range changes one file: tests/_test_utils/deploy_utils.py. That file sits under tests/, so the check does not cover it. The check is inapplicable. The diff also matches none of the six listed patterns: - It adds no torch.load(..., weights_only=False). - It adds no numpy.load(..., allow_pickle=True). - It adds no hardcoded trust_remote_code=True. - It adds no eval() or exec(). - It adds no # nosec comment. - It changes no pyproject.toml or requirements.txt dependencies. The substantive change is a copyright year bump and a guard. The guard passes eagle3_one_model to EagleDecodingConfig only when model_fields lists it. The EagleDecodingConfig call is in the test helper, and no security-sensitive pattern appears in the patch.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7db3ef5 and 1dc2335.

Files selected for processing: 1

  • tests/_test_utils/deploy_utils.py

Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 11 remain after this review.

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 81.58%. Comparing base (7db3ef5) to head (1dc2335).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3553      +/-   ##
==========================================
- Coverage   82.31%   81.58%   -0.73%     
==========================================
  Files         730      730              
  Lines       82231    82231              
==========================================
- Hits        67689    67090     -599     
- Misses      14542    15141     +599     
Flag Coverage Δ
examples-diffusers 19.82% <ø> (+0.01%) ⬆️
examples-gpt-oss 13.54% <ø> (+0.01%) ⬆️
examples-hf_ptq 24.43% <ø> (-0.82%) ⬇️
examples-llm_distill 13.61% <ø> (+0.01%) ⬆️
examples-llm_eval 17.46% <ø> (+0.01%) ⬆️
examples-llm_qat 17.40% <ø> (-0.02%) ⬇️
examples-llm_sparsity 16.82% <ø> (+0.01%) ⬆️
examples-megatron_bridge 25.96% <ø> (-0.25%) ⬇️
examples-specdec_bench 13.33% <ø> (+0.01%) ⬆️
examples-speculative_decoding 17.71% <ø> (-0.05%) ⬇️
examples-torch_onnx 20.94% <ø> (-0.01%) ⬇️
examples-torch_trt 15.23% <ø> (+0.01%) ⬆️
examples-vllm_serve 17.69% <ø> (+0.01%) ⬆️
gpu 59.72% <ø> (-4.16%) ⬇️
regression 15.01% <ø> (-0.05%) ⬇️
unit 64.74% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@shengliangxu shengliangxu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Bot review (gpt-6.2-sol) — DM the bot to share feedback.

Nudge: the schema guard is sound, but the cases that requested two-model execution haven't been validated with real checkpoints in one-model mode.

Needs action:

  • Run the existing Qwen3-30B EAGLE3 test_eagle case with --run-release on TensorRT-LLM 1.4.0rc3. Confirm that the separate draft checkpoint loads and generation succeeds in one-model mode.

No action needed:

  • The harness edit preserves both flag values on schemas that accept them, keeps target and draft paths separate, and removes no cases or assertions.
  • No new test was added. The existing release test requires local draft weights, and the example workflow doesn't pass --run-release. This was a source review against main; the exact base SHA and live CI results were unavailable.

@yingguo-trt
yingguo-trt enabled auto-merge (squash) November 24, 2026 08:19
@yingguo-trt

Copy link
Copy Markdown
Contributor Author

I ran the existing Qwen3-30B EAGLE3 test_eagle case with --run-release at 1dc233566a on one B100 (TP1), using nvcr.io/nvidia/tensorrt-llm/release:1.4.0rc3. TRT-LLM loaded Qwen/Qwen3-30B-A3B-Thinking-2507 as the target and nvidia/Qwen3-30B-A3B-Thinking-2507-Eagle3 from a separate local checkpoint in one-model EAGLE3 mode. All four prompts produced non-empty text.

Jenkins modelopt_release_testing build #4282 recorded 1 passed, 0 skipped for the requested case. This covers the end-to-end run requested in the review.

@shengliangxu

Copy link
Copy Markdown
Collaborator

Bot review (gpt-6.2-sol) — DM the bot to share feedback.

Approve: the reported Qwen3-30B EAGLE3 release run closes the end-to-end validation gap.

No action needed:

  • ✔️ The case requests two-model execution. The author reports that Jenkins build #4282 passed it at 1dc2335 on TensorRT-LLM 1.4.0rc3 (1 passed, 0 skipped), loading the separate draft checkpoint in one-model mode and generating non-empty text for all four prompts.

Complex PR: 1 existing test file modified or removed. Looping in a human for approval.

@noeyy-mino noeyy-mino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@yingguo-trt
yingguo-trt merged commit 0882957 into NVIDIA:main Nov 24, 2026
69 of 70 checks passed
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.

3 participants