Skip to content

[WIP][Common,pytorch] Add FlexQuantizer for customized quantization via CuTeDSL#3110

Closed
kainzhong wants to merge 2 commits into
NVIDIA:mainfrom
kainzhong:feat/flex_quantization
Closed

[WIP][Common,pytorch] Add FlexQuantizer for customized quantization via CuTeDSL#3110
kainzhong wants to merge 2 commits into
NVIDIA:mainfrom
kainzhong:feat/flex_quantization

Conversation

@kainzhong

Copy link
Copy Markdown
Collaborator

Description

Please include a brief summary of the changes, relevant motivation and context.

Fixes # (issue)

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

Please list the changes introduced in this PR:

  • Change A
  • Change B

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

kainzhong and others added 2 commits June 10, 2026 01:09
Signed-off-by: Kaining Zhong <kainingz@nvidia.com>
NVTE_NVFP4_1D_SCALING = 4,
/*! Flex scaling. The quantization is implemented by users via CuTeDSL.
*/
NVTE_FLEX_1D_SCALING = 5,

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Probably a bad idea. Should take a look at how this is used and figure it out. If row-wise and column-wise quantization is different what should this be then...?

@kainzhong kainzhong closed this Jun 11, 2026
@kainzhong

Copy link
Copy Markdown
Collaborator Author

Closed in favor of #2817 . Looks like I can build flex quantization on top of his HybridQuantizedTensor which will same me lots of trouble integrating with the pytorch ecosystem.

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