You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### PR Category
<!-- One of [ Train | Inference | Compress | Serve | RL | Core |
Hardware | CICD | Tools | Others ] -->
[Train] Most of codes are copied from Megatron-LM Dev branch. The dev
branch is different with main branch or release version.
Megatron LM PR:
DeepSeek-V4:
NVIDIA#4458NVIDIA#4481NVIDIA#4518
mHC:
NVIDIA#2943
### PR Types
<!-- One of [ User Experience | New Features | Bug Fixes | Improvements
| Performance | Breaking Change| Deprecations | Test Case | Docs |
Others ] -->
[New features]
### PR Description
<!-- Describe what you’ve done -->
Add DeepSeek V4 model into FlagScale and Megatron-FL
Supported:
1. CSA and HCA
2. Hash Router
3. mHC
4. Engram(optional)
Unsupported:
1. Sqrtsoftpuls router score function. ✅
2. mHC recompute. ✅
3. Overlap_grad_reduce and overlap_param_gather when Zero 1. ✅
4. Any infra optimizations.
### NOTE: This is only a draft pr, please reivew to give more
suggestions.
such as:
1. File structure.
- All modules are moved into Megatron-FL
### Next plan:
1. Distributed training. ✅
3. Muon optimizer with Zero 1 adaptation. 🚧
4. Low precision is out of scope of this pr, limited by resource.
5. Maybe context parallel for sparse attention.
6. Welcome to give more suggestions.
---------
Co-authored-by: Hongxiao Bai <hongxiaob@nvidia.com>
Co-authored-by: Yuzhong Wang <yuzhongw@nvidia.com>
0 commit comments