[None][fix] Fix moe_chunking_tokens during MoE A2A#12929
[None][fix] Fix moe_chunking_tokens during MoE A2A#12929Wanli-Jiang merged 1 commit intoNVIDIA:mainfrom
Conversation
|
/bot run --add-multi-gpu-test --disable-fail-fast |
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@tensorrt_llm/_torch/modules/fused_moe/configurable_moe.py`:
- Around line 357-360: The current condition in configurable_moe (the block
computing num_rows using self.mapping.moe_ep_size and all_rank_num_tokens) uses
"self.comm is not None" which incorrectly applies the A2A-specific max-based
formula to non-A2A communicators; change the conditional to explicitly detect
the All-to-All communicator (A2A) instead of just non-None (e.g., check an
explicit communicator type flag or enum like self.comm.comm_type == "A2A" or
isinstance(self.comm, AllToAllComm) depending on your communicator API) so the
max-based branch runs only for A2A; update the condition guarding the num_rows
computation in the method where self.use_dp, self.comm, mapping.moe_ep_size, and
all_rank_num_tokens are referenced.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 60e4d70f-be3b-4c5d-ba0e-38a70e0ccb8a
📒 Files selected for processing (1)
tensorrt_llm/_torch/modules/fused_moe/configurable_moe.py
|
PR_Github #42697 [ run ] triggered by Bot. Commit: |
|
PR_Github #42697 [ run ] completed with state
|
|
/bot run --add-multi-gpu-test --disable-fail-fast |
|
PR_Github #42959 [ run ] triggered by Bot. Commit: |
|
PR_Github #42959 [ run ] completed with state
|
|
/bot run --disable-fail-fast |
|
PR_Github #43238 [ run ] triggered by Bot. Commit: |
|
PR_Github #43238 [ run ] completed with state |
Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
c20ceb6 to
cf4333e
Compare
|
/bot help |
GitHub Bot Help
Provide a user friendly way for developers to interact with a Jenkins server. Run See details below for each supported subcommand. Details
Launch build/test pipelines. All previously running jobs will be killed.
kill
Kill all running builds associated with pull request. skip
Skip testing for latest commit on pull request. reuse-pipeline
Reuse a previous pipeline to validate current commit. This action will also kill all currently running builds associated with the pull request. IMPORTANT NOTE: This is dangerous since lack of user care and validation can cause top of tree to break. |
|
/bot run --stage-list "DGX_B200-4_GPUs-AutoDeploy-1" |
|
PR_Github #43387 [ run ] triggered by Bot. Commit: |
|
PR_Github #43387 [ run ] completed with state |
|
/bot skip --comment "all runs passed within different CI tests" |
|
PR_Github #43434 [ skip ] triggered by Bot. Commit: |
|
PR_Github #43434 [ skip ] completed with state |
Signed-off-by: Wanli Jiang <35160485+Wanli-Jiang@users.noreply.github.com>
Summary by CodeRabbit
Improvements
Documentation
Description
Test Coverage
PR Checklist
Please review the following before submitting your PR:
PR description clearly explains what and why. If using CodeRabbit's summary, please make sure it makes sense.
PR Follows TRT-LLM CODING GUIDELINES to the best of your knowledge.
Test cases are provided for new code paths (see test instructions)
Any new dependencies have been scanned for license and vulnerabilities
CODEOWNERS updated if ownership changes
Documentation updated as needed
Update tava architecture diagram if there is a significant design change in PR.
The reviewers assigned automatically/manually are appropriate for the PR.
Please check this after reviewing the above items as appropriate for this PR.
GitHub Bot Help
To see a list of available CI bot commands, please comment
/bot help.