Skip to content

why nvfp4 2D 2d quantization' s scale has the same shape as 1d quantization's scale #2298

@fy1214

Description

@fy1214

I use the test_nvfp4_quantize_exact.py to checkout the scale of 2d quantization, when i put M, N=256,1024 in the test i found out that the scale's shape are [256, 64]. Also the 1d quantization is the same shape. Is there any reason for that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions