FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Update topkgating probability-mask test expectation by tohtana · Pull Request #8007 · deepspeedai/DeepSpeed · GitHub

Update topkgating probability-mask test expectation - #8007

Merged
tohtana merged 1 commit into
deepspeedai:masterfrom
tohtana:tohtana/fix-topkgating-test-expected
May 13, 2026
Merged

Update topkgating probability-mask test expectation#8007
tohtana merged 1 commit into
deepspeedai:masterfrom
tohtana:tohtana/fix-topkgating-test-expected

Conversation

tohtana commented May 12, 2026

Copy link
Copy Markdown
Collaborator

After #7986, tests/unit/moe/test_moe.py::TestTopkGate::test started failing because the expected mask changed. This was caught by the full CI run (log).

This PR updates TestTopkGate's drop_policy='probs' expected mask for the logits2 case to match the probability-based capacity selection introduced by #7986.

Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
tohtana requested review from loadams and tjruwase as code owners May 12, 2026 23:27
tohtana merged commit 5be4c70 into deepspeedai:master May 13, 2026
10 of 13 checks passed
nathon-lee pushed a commit to nathon-lee/DeepSpeed_woo that referenced this pull request Jul 1, 2026
After deepspeedai#7986, `tests/unit/moe/test_moe.py::TestTopkGate::test` started
failing because the expected mask changed. This was caught by the full
CI run
([log](https://github.com/deepspeedai/DeepSpeed/actions/runs/25724245746)).

This PR updates `TestTopkGate`'s `drop_policy='probs'` expected mask for
the `logits2` case to match the probability-based capacity selection
introduced by deepspeedai#7986.

Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
Signed-off-by: nathon-lee <leejianwoo@gmail.com>
nathon-lee pushed a commit to nathon-lee/DeepSpeed_woo that referenced this pull request Jul 1, 2026
After deepspeedai#7986, `tests/unit/moe/test_moe.py::TestTopkGate::test` started
failing because the expected mask changed. This was caught by the full
CI run
([log](https://github.com/deepspeedai/DeepSpeed/actions/runs/25724245746)).

This PR updates `TestTopkGate`'s `drop_policy='probs'` expected mask for
the `logits2` case to match the probability-based capacity selection
introduced by deepspeedai#7986.

Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL