Skip to content

cp: NVFP4 native weights for DDP (4005) into core_r0.17.0 - #4290

Merged
ko3n1g merged 1 commit into
core_r0.17.0from
cherry-pick-4005-core_r0.17.0
Apr 16, 2026
Merged

ko3n1g merged 1 commit into
core_r0.17.0from
cherry-pick-4005-core_r0.17.0

Conversation

@ko3n1g

@ko3n1g ko3n1g commented Apr 14, 2026

Copy link
Copy Markdown
Contributor

beep boop [🤖]: Hi @WanZzzzzz 👋,

we've cherry picked #4005 into  for you! 🚀

Please review and approve this cherry pick by your convenience!

Signed-off-by: qiyuw <qiyuw@nvidia.com>
Signed-off-by: NeMo Bot <nemo-bot@nvidia.com>
@ko3n1g
ko3n1g requested review from a team as code owners April 14, 2026 05:18
@ko3n1g
ko3n1g requested a review from WanZzzzzz April 14, 2026 05:18
@ko3n1g

ko3n1g commented Apr 14, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 66c8892

@copy-pr-bot

copy-pr-bot Bot commented Apr 14, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added this to the Core 0.16 milestone Apr 14, 2026
@ko3n1g
ko3n1g marked this pull request as draft April 16, 2026 14:29
@ko3n1g
ko3n1g marked this pull request as ready for review April 16, 2026 23:15
@ko3n1g
ko3n1g merged commit d6b1813 into core_r0.17.0 Apr 16, 2026
60 of 63 checks passed
@ko3n1g
ko3n1g deleted the cherry-pick-4005-core_r0.17.0 branch April 16, 2026 23:15
lxd-cumt added a commit to lxd-cumt/Megatron-LM-FL that referenced this pull request Apr 22, 2026
Upstream changes (10 commits since d1c2e49):
- Bump mfsdp to 0.4.0
- Add NVFP4 native weights support for DDP (NVIDIA#4290)
- Documentation updates (version picker, project.json)
- Various bug fixes and improvements

Key changes merged:
- megatron/core/distributed/param_and_grad_buffer.py: NVFP4 dual-buffer support
- megatron/core/optimizer/distrib_optimizer.py: FP4 param handling
- megatron/core/fp4_utils.py: New FP4 utilities
- megatron/core/distributed/fsdp/: Version bump to 0.4.0
- tests/unit_tests/test_fp4_param.py: New FP4 unit tests

FlagScale-specific handling:
- Preserved all cur_platform patches (torch.cuda → cur_platform)
- Kept full kitchen.py implementation (upstream stubbed it out)
- Excluded megatron/training/arguments.py (managed by FlagScale)
- All megatron/plugin/ files remain intact (FlagScale-specific)

Conflicts resolved:
- megatron/core/distributed/fsdp/src/megatron_fsdp/package_info.py: version 0.4.0

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
lxd-cumt added a commit to lxd-cumt/Megatron-LM-FL that referenced this pull request Apr 22, 2026
Upstream changes (10 commits since 9539a12):
- NVFP4 native weights support for DDP (NVIDIA#4290)
- Bump mfsdp to 0.4.0
- Documentation and version updates

Overlapping files (upstream + cur_platform patches preserved):
- distributed_data_parallel.py: added NVFP4 support
- param_and_grad_buffer.py: NVFP4 dual-buffer layout
- distrib_optimizer.py: FP4 param handling

New upstream files taken as-is:
- fp4_utils.py, test_fp4_param.py, distributed_data_parallel_config.py

Excluded: megatron/training/arguments.py (managed by FlagScale)

This branch was previously deployed

1 inactive deployment
test — 66c88923 Deployed Apr 14, 2026 by copy-pr-bot[bot] via cicd-wait-in-queue #11425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants