Skip to content

[Common] NVFP4 grouped swizzle for single weight support - #3948

Draft
zhongbozhu wants to merge 17 commits into
NVIDIA:mainfrom
zhongbozhu:codex-dev-nvfp4-grouped-swizzle
Draft

zhongbozhu wants to merge 17 commits into
NVIDIA:mainfrom
zhongbozhu:codex-dev-nvfp4-grouped-swizzle

Conversation

@zhongbozhu

Copy link
Copy Markdown
Collaborator

Description

Depends on #3944 , and then #3945

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
Extend grouped swizzle to 16-element NVFP4 scaling blocks and the transposed columnwise scale layout. Preserve compact primary-weight storage while providing temporary GEMM-ready scales. Normalize packed FP4 metadata only in scale-only wrappers.

Synchronize shared metadata and persistent tile reuse in the variable-shape kernel. Cover both scale directions, padding, empty groups, graph replay, and primary single-grouped-weight training against discrete weights.

Signed-off-by: Zhongbo Zhu <[email protected]>
@zhongbozhu
zhongbozhu force-pushed the codex-dev-nvfp4-grouped-swizzle branch from 3bfaf7b to 88b0433 Compare November 26, 2026 00:50

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

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.

1 participant