Skip to content

[Pytorch] Refactor Existing NVFP4 quantization API and deprecate unfused kernels - #3944

Open
zhongbozhu wants to merge 5 commits into
NVIDIA:mainfrom
zhongbozhu:codex-dev-nvfp4-api-cleanup
Open

zhongbozhu wants to merge 5 commits into
NVIDIA:mainfrom
zhongbozhu:codex-dev-nvfp4-api-cleanup

Conversation

@zhongbozhu

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

@github-actions github-actions Bot added the community-contribution PRs from external contributor outside the core maintainers, representing community-driven work. label Nov 25, 2026
@zhongbozhu
zhongbozhu marked this pull request as ready for review November 25, 2026 18:47
@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no new blocking issue was found.

Summary

Refactors the NVFP4 host-split APIs while keeping the old entry points as compatibility wrappers.

  • NVFP4 split quantization falls back to per-tensor RHT when grouped fusion cannot fit.
  • Grouped NVFP4 APIs name host-provided splits while keeping older entry points available.
  • The NVFP4 quantizer skips amax work when its output does not need it.

Reviews (4) · Last reviewed commit: "[pre-commit.ci] auto fixes from pre-comm..." · Reviewed by Greptile

Comment thread docs/api/c/nvfp4_host_split.rst Outdated

@timmoon10 timmoon10 Dec 5, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These docs aren't really providing much value, especially for a top-level user guide. It's not adding much to what's already in the function docstrings. It focuses too much on documenting the edit history rather than the code itself.

timmoon10 and others added 2 commits December 4, 2026 18:24
Delete unnecessary docs. Handle edge case with NVFP4 quant with no second scaling and pre-RHT amax config.

Signed-off-by: Tim Moon <[email protected]>
@timmoon10

Copy link
Copy Markdown
Member

/te-ci

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

3.0 community-contribution PRs from external contributor outside the core maintainers, representing community-driven work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants