Skip to content

Remove Mega-Gate finite-score device trap - #11

Merged
ZJY0516 merged 1 commit into
vllm-project:devfrom
gau-nernst:thien-codex/mega-gate-drop-finite-check
Sep 16, 2026
Merged

ZJY0516 merged 1 commit into
vllm-project:devfrom
gau-nernst:thien-codex/mega-gate-drop-finite-check

Conversation

@gau-nernst

Copy link
Copy Markdown

vllm-project/vllm#56266

vLLM may pad tokens in a batch to the next CUDA graph capture size. These padded tokens may result in non-finite gate score, which trigger the device-side trap in Mega-Gate kernel.

This PR simply removes the check. A potential regression behavior is that non-padded tokens producing non-finite scores now won't be caught. But in practice, if such cases happen, we wouldn't want the server to crash anyway.

Retain the selected expert ID clamp while allowing non-finite scores to propagate without the combined validation trap.

Co-authored-by: OpenAI Codex <noreply@openai.com>

Signed-off-by: Thien Tran <gau.nernst@yahoo.com.sg>
@ZJY0516
ZJY0516 merged commit 40d109b into vllm-project:dev Sep 16, 2026
1 check passed
@gau-nernst
gau-nernst deleted the thien-codex/mega-gate-drop-finite-check branch September 16, 2026 06:01
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