Skip to content

Support ModelOpt MXFP8 non-gated MoE - #42958

Merged
tomeras91 merged 4 commits into
vllm-project:mainfrom
TomerBN-Nvidia:upstream-mxfp8-nongated-moe
Jun 2, 2026
Merged

tomeras91 merged 4 commits into
vllm-project:mainfrom
TomerBN-Nvidia:upstream-mxfp8-nongated-moe

Conversation

@TomerBN-Nvidia

@TomerBN-Nvidia TomerBN-Nvidia commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

  • FlashInfer now supports TRTLLM-GEN MXFP8 MoE kernels.
  • Allow ModelOpt MXFP8 TRTLLM MoE to run non-gated Relu2 activations through that backend.
  • Forward FlashInfer activation_type into the MXFP8 TRTLLM MoE call.

@mergify

mergify Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Hi @TomerBN-Nvidia, the pre-commit checks have failed. Please run:

uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-files

Then, commit the changes and push to your branch.

For future commits, pre-commit will run automatically on changed files before each commit.

Tip

Is mypy failing?
mypy is run differently in CI. If the failure is related to this check, please use the following command to run it locally:
# For mypy (substitute "3.10" with the failing version if needed)
pre-commit run --hook-stage manual mypy-3.10

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request enables support for the RELU2_NO_MUL activation function within the FlashInfer TRTLLM MXFP8 MoE backend. Key changes include refactoring the activation mapping to utilize a centralized utility function and adding a unit test to verify the new activation path. The reviewer suggested improving the readability of the error message when an unsupported activation is encountered by using the string values of the MoEActivation enum instead of the enum objects themselves.

@TomerBN-Nvidia
TomerBN-Nvidia force-pushed the upstream-mxfp8-nongated-moe branch from bda9dde to 784a2ea Compare May 18, 2026 09:09
@mergify

mergify Bot commented May 18, 2026

Copy link
Copy Markdown
Contributor

Hi @TomerBN-Nvidia, the pre-commit checks have failed. Please run:

uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-files

Then, commit the changes and push to your branch.

For future commits, pre-commit will run automatically on changed files before each commit.

Tip

Is mypy failing?
mypy is run differently in CI. If the failure is related to this check, please use the following command to run it locally:
# For mypy (substitute "3.10" with the failing version if needed)
pre-commit run --hook-stage manual mypy-3.10

@TomerBN-Nvidia
TomerBN-Nvidia force-pushed the upstream-mxfp8-nongated-moe branch 2 times, most recently from 8b05765 to 113b72d Compare May 18, 2026 10:04

@mgoin mgoin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@TomerBN-Nvidia This looks okay for basic enablement, but do you know why this isn't integrated into the vllm/model_executor/layers/fused_moe/oracle/mxfp8.py path? It would be best to standardize all the moe kernels through there to also help with online quant or CT checkpoints

@mgoin mgoin added ready ONLY add when PR is ready to merge/full CI is needed nvidia quantization labels May 20, 2026
@github-project-automation github-project-automation Bot moved this to Ready in NVIDIA May 20, 2026
@mergify

mergify Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

Hi @TomerBN-Nvidia, the pre-commit checks have failed. Please run:

uv pip install pre-commit>=4.5.1
pre-commit install
pre-commit run --all-files

Then, commit the changes and push to your branch.

For future commits, pre-commit will run automatically on changed files before each commit.

Tip

Is mypy failing?
mypy is run differently in CI. If the failure is related to this check, please use the following command to run it locally:
# For mypy (substitute "3.10" with the failing version if needed)
pre-commit run --hook-stage manual mypy-3.10

@TomerBN-Nvidia
TomerBN-Nvidia force-pushed the upstream-mxfp8-nongated-moe branch from af09b58 to 8d59a6e Compare May 24, 2026 12:07
@mgoin mgoin added this to the v0.22.0 milestone May 26, 2026
@mergify

mergify Bot commented May 26, 2026

Copy link
Copy Markdown
Contributor

This pull request has merge conflicts that must be resolved before it can be
merged. Please rebase the PR, @TomerBN-Nvidia.

https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/syncing-a-fork

@mergify mergify Bot added the needs-rebase label May 26, 2026
@TomerBN-Nvidia
TomerBN-Nvidia force-pushed the upstream-mxfp8-nongated-moe branch from bc887a3 to fc8fe72 Compare May 26, 2026 16:28
Signed-off-by: tbarnatan <tbarnatan@nvidia.com>
@TomerBN-Nvidia
TomerBN-Nvidia force-pushed the upstream-mxfp8-nongated-moe branch from fc8fe72 to 48c1e3f Compare May 26, 2026 16:28
@mergify mergify Bot removed the needs-rebase label May 26, 2026
@tomeras91 tomeras91 removed this from the v0.22.0 milestone May 27, 2026
@tomeras91
tomeras91 enabled auto-merge (squash) June 2, 2026 11:22
@tomeras91
tomeras91 merged commit 0cbc48c into vllm-project:main Jun 2, 2026
76 checks passed
@github-project-automation github-project-automation Bot moved this from Ready to Done in NVIDIA Jun 2, 2026
nkzhenhua pushed a commit to nkzhenhua/vllm that referenced this pull request Jun 24, 2026
Signed-off-by: tbarnatan <tbarnatan@nvidia.com>
Co-authored-by: Michael Goin <mgoin64@gmail.com>
philippesic pushed a commit to philippesic/vllm-semantic-cache that referenced this pull request Jul 19, 2026
Signed-off-by: tbarnatan <tbarnatan@nvidia.com>
Co-authored-by: Michael Goin <mgoin64@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

nvidia quantization ready ONLY add when PR is ready to merge/full CI is needed

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants