Skip to content

[PyTorch] FP8BS grouped GEMM test reference fix - #3722

Open
denera wants to merge 1 commit into
NVIDIA:mainfrom
denera:pytorch/fp8bs-grouped-gemm-hopper-fix
Open

denera wants to merge 1 commit into
NVIDIA:mainfrom
denera:pytorch/fp8bs-grouped-gemm-hopper-fix

Conversation

@denera

@denera denera commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Description

FP8BS grouped GEMM tests were being compared against a reference with FP32 accumulation. FP8BS on Blackwell via MXFP8 emulation passed these tests because MXFP8 grouped GEMM on Blackwell accumulates at a higher precision than native FP8BS grouped GEMM on Hopper.

This PR changes the reference in the test to the unfused split-grouped GEMM — consistent with how native MXFP8 grouped GEMM is tested.

Redundant zero-token expert and mixed precision rejection tests were removed because these are already covered under different test cases.

Type of change

  • Documentation change (change only to the documentation, either a fix or a new content)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Infra/Build change
  • Code refactoring

Checklist:

  • I have read and followed the contributing guidelines
  • The functionality is complete
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@denera denera self-assigned this Oct 21, 2026
@denera
denera force-pushed the pytorch/fp8bs-grouped-gemm-hopper-fix branch from 0d14e26 to 49df5dd Compare October 21, 2026 16:27
@denera

denera commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

/te-ci pytorch

@greptile-apps

greptile-apps Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no new actionable issue remains.

Summary

Changes the FP8 block-scaling grouped GEMM tests to compare against independently quantized split GEMMs instead of FP32 multiplication.

  • FP8 block-scaling tests compare grouped GEMM with a matching reference.
  • CUDA-graph tests compare changed splits with per-expert GEMM results.
  • Standalone zero-token and mixed-operand tests are removed.

Reviews (2) · Last reviewed commit: "[PyTorch] Test grouped FP8 block-scaling..." · Reviewed by Greptile

Comment thread tests/pytorch/test_grouped_linear.py Outdated
…r path

MXFP8 GEMM on Blackwell accumulates at higher precision than FP8 block-scaling GEMM on Hopper.
The grouped FP8 block-scaling GEMM tests compared against an FP32 reference, so they passed with
the MXFP8 emulation on Blackwell but failed on Hopper.

Compare against the legacy split-tensor grouped GEMM instead, consistent with the existing MXFP8
grouped GEMM tests. Also remove the FP8 block-scaling zero-size-expert and mixed-operand tests,
which no other recipe has.

Signed-off-by: Alp Dener <adener@nvidia.com>
@denera
denera force-pushed the pytorch/fp8bs-grouped-gemm-hopper-fix branch from 49df5dd to 2717644 Compare October 21, 2026 17:17
@denera

denera commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator Author

/te-ci pytorch

This branch has not been deployed

No deployments
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.

1 participant