[NPU] fix normal DeepEP mode num_tokens_per_rdma_rank error caused by none#22972
Open
ZeyuanChen2000 wants to merge 2 commits into
Open
[NPU] fix normal DeepEP mode num_tokens_per_rdma_rank error caused by none#22972ZeyuanChen2000 wants to merge 2 commits into
ZeyuanChen2000 wants to merge 2 commits into
Conversation
… None in per_token expert recorder case
sglang-npu-bot
approved these changes
Apr 16, 2026
Collaborator
|
/tag-and-rerun-ci |
Contributor
Author
|
/rerun-failed-ci |
2 similar comments
Contributor
Author
|
/rerun-failed-ci |
Contributor
Author
|
/rerun-failed-ci |
2 tasks
Contributor
Author
|
/rerun-failed-ci |
1 similar comment
Contributor
Author
|
/rerun-failed-ci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
If

expert_distribution_recorder_mode = "per_token", attributeError is reported in theon_deepep_dispatch_normalmethod of the expert distribution recorder when the NPU is deployed on a single server.Modifications
A check for the
Nonevalue ofnum_tokens_per_rdma_rankis added to ensure that the RDMA parameter is correctly processed in the single-node environment.Accuracy Tests
Speed Tests and Profiling
Checklist
Review and Merge Process
/tag-and-rerun-ci,/tag-run-ci-label,/rerun-failed-ci