Skip to content

[Feature Request] Support mxfp/nvfp data types and blockscaled GEMM APIs #1927

@Rachmanino

Description

@Rachmanino

Required prerequisites

  • I have searched the Issue Tracker that this hasn't already been reported. (comment there if it has.)

Motivation

mxfp/nvfp types with group scaling have been widely used in efficient AI training/inference. Currently TileLang support dequantgemm gemm for mxfp/nvfp via storing them in uint8, and requires to perform manual SIMT scaling and T.gemm, which maybe kinda compilcated to upper users. What's more, hardware native blockscaled gemm is supported on modern GPU architecture, e.g. SM100.

Solution

I propose that we may expose a unified T.blockscaled_gemm API in the frontend, which will be lowered to native blockscaled ptx instructions on supported architecture. For older architecture, we can implement this by appending SIMT scaling operations to mma macros.

Alternatives

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions