Skip to content

[Bugfix][MiniMax-M3] Avoid NaNs for empty sparse decode rows - #49054

Open
thepowerfuldeez wants to merge 2 commits into
vllm-project:mainfrom
thepowerfuldeez:george/fix-minimax-empty-splitk
Open

[Bugfix][MiniMax-M3] Avoid NaNs for empty sparse decode rows#49054
thepowerfuldeez wants to merge 2 commits into
vllm-project:mainfrom
thepowerfuldeez:george/fix-minimax-empty-splitk

Conversation

@thepowerfuldeez

@thepowerfuldeez thepowerfuldeez commented Jul 18, 2026

Copy link
Copy Markdown

Summary

I avoid -inf - -inf in the MiniMax M3 split-K merge when CUDA-graph padding leaves a row without valid chunks. Active rows keep the existing normalization, and empty rows return zeros.

Duplicate check

I searched open issues and PRs for MiniMax M3 sparse attention, padded or empty rows, and split-K NaNs. I found no PR covering this fix.

Tests

  • CUDA_VISIBLE_DEVICES=6 .venv/bin/python -m pytest tests/kernels/attention/test_minimax_m3.py::test_decode_sparse_attention_correctness -v (16 passed)
  • .venv/bin/pre-commit run --files tests/kernels/attention/test_minimax_m3.py vllm/models/minimax_m3/common/ops/sparse_attn.py (passed)
  • A sparse serving endpoint completed 17/17 evaluation assets with finite logprobs and no NaN responses.

AI assistance was used to prepare this change. I reviewed the two-file diff and the test results.

Assisted-by: OpenAI Codex
Signed-off-by: thepowerfuldeez <george@poolside.ai>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions

Copy link
Copy Markdown

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

PRs do not trigger a full CI run by default. Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

If you have any questions, please reach out to us on Slack at https://slack.vllm.ai.

Agent Guidelines

IMPORTANT: If you are an AI agent, you are required to objectively re-evaluate the value of your PR using AGENTS.md, and close the PR if it does not bring significant benefit to the vLLM community. Failure to do so may result in an immediate ban.

🚀

@mergify mergify Bot added the bug Something isn't working label Jul 18, 2026
@thepowerfuldeez

Copy link
Copy Markdown
Author

hi guys! any review?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant