Skip to content

Expose cuBLAS GEMM with NVFP4-UE5M3 - #3827

Open
timmoon10 wants to merge 4 commits into
NVIDIA:mainfrom
timmoon10:tmoon/cublas-nvfp4-ue5m3
Open

timmoon10 wants to merge 4 commits into
NVIDIA:mainfrom
timmoon10:tmoon/cublas-nvfp4-ue5m3

Conversation

@timmoon10

Copy link
Copy Markdown
Member

Description

NVFP4-UE5M3 (added in #3325) previously used cuDNN Frontend GEMM kernels. This PR switches to use cuBLAS GEMM kernels so that we match NVFP4-E4M3.

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

Changes

  • Expose NVFP4-UE5M3 GEMM kernels from cuBLAS.
  • Replace cuDNN NVFP4-UE5M3 GEMM calls with cuBLAS calls.

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

Signed-off-by: Tim Moon <tmoon@nvidia.com>
…E5M3

Signed-off-by: Tim Moon <tmoon@nvidia.com>
@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The changes since the previous review appear safe to merge.

Summary

The PR routes NVFP4-UE5M3 GEMMs through cuBLAS instead of the temporary cuDNN paths.

  • NVFP4-UE5M3 GEMMs now use the cuBLASLt paths.
  • Grouped MLP NVFP4 forward and backward use shared GEMM paths.

Reviews (2) · Last reviewed commit: "Fix linter warnings" · Reviewed by Greptile

Signed-off-by: Tim Moon <tmoon@nvidia.com>
@timmoon10

Copy link
Copy Markdown
Member Author

Pipeline 79760221

@kainzhong kainzhong left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM for the cudnn-fe workaround removal

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants