Skip to content

Conversation

@Xiaoming-AMD
Copy link
Collaborator

Feat(fsdp): patch Megatron torch_FSDP2 with Primus implementation

  • Monkey-patched TorchTorchFullyShardedDataParallel in Megatron with custom PrimusTorchFullyShardedDataParallel
  • Ensured robust patching with try/except and clearer logging
  • Wrapped PrimusTorchFullyShardedDataParallel to use safe default for sub_modules_to_wrap

Copy link
Contributor

@wenxie-amd wenxie-amd left a comment

Choose a reason for hiding this comment

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

LGTM

@wenxie-amd wenxie-amd merged commit 734caea into main Apr 24, 2025
2 checks passed
@Xiaoming-AMD Xiaoming-AMD deleted the dev/xiaoming/fix_torch-fsdp_init branch April 28, 2025 05:27
@Xiaoming-AMD Xiaoming-AMD changed the title [Feat(fsdp)] patch Megatron torch_FSDP2 with Primus implementation feature(fsdp): patch Megatron torch_FSDP2 with Primus implementation Jun 4, 2025
@Xiaoming-AMD Xiaoming-AMD changed the title feature(fsdp): patch Megatron torch_FSDP2 with Primus implementation feat(fsdp): patch Megatron torch_FSDP2 with Primus implementation Jun 25, 2025
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.

3 participants