Repository navigation
docs: add low-precision training guide (#4997) - #5037
Conversation
Signed-off-by: nathon-lee <leejianwoo@gmail.com>
Signed-off-by: nathon-lee <leejianwoo@gmail.com>
| offloading. See | ||
| [fine_grained_activation_offloading.md](fine_grained_activation_offloading.md). | ||
| - **Precision-aware optimizer** — `--use-precision-aware-optimizer` enables | ||
| the TE `FusedAdam` path and lets you store optimizer state in lower |
There was a problem hiding this comment.
| the TE `FusedAdam` path and lets you store optimizer state in lower | |
| the TE `FusedAdam` path and lets you store optimizer state and gradients in lower |
Am I right? The name --main-grads-dtype suggests gradients can also be in lower precision.
There was a problem hiding this comment.
Thank you for your review!
|
/claude fix |
Signed-off-by: svcnvidia-nemo-ci <svcnvidia-nemo-ci@nvidia.com>
|
🛠️ Claude fix commit
What changed Files changed by Claude
Why DCO Sanitized and posted by |
|
/ok to test 28c5d9b |
|
✅ Claude fix CI passed after attempt 1. View exact-SHA CI. |
Replace two removed documentation URLs that caused the docs link check in PR NVIDIA#5037 to fail with HTTP 404 responses. Signed-off-by: Jingyue Wu <wujingyue@gmail.com>
|
/ok to test 2e35b16 |
|
Thanks for checking! The remaining failure appears to be unrelated to this docs-only change and comes from existing transformer CUDA graph tests. Could you please rerun the CI when convenient? Thanks! |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA/Megatron-LM/actions/runs/37106358941 |
What does this PR do ?
Adds a new user-guide page
docs/user-guide/features/low_precision_training.mdthat consolidates the FP8/FP4 training story in Megatron Core: recipes (delayed,tensorwise,mxfp8,blockwise,nvfp4,custom), hardware compatibility, numerical-stability and memory knobs, a configuration cookbook, a feature compatibility matrix, end-to-end example links, and troubleshooting. The page is added to index.md toctree. Docs-only change; no code modified.Issue tracking
Addresses the "Low-precision guide" item under the Precision section of the 2026 Q2 Megatron Core Roadmap.
Linked issue: Related to #4997
Contribution process
Pre-checks
Notes for reviewers
docs/user-guide/features/low_precision_training.mdnew; index.md toctree entry added).cd docs && uv run --group docs sphinx-build --keep-going . _build/htmlsucceeds with zero new warnings introduced by this PR.Fp8Recipe,Fp4Recipe), optimizer_config.py (MXFP8 +reuse_grad_buf_for_mxfp8_param_agrecommendation), and arguments.py (recipe-mutual-exclusion / TE version assertions / CPU-offload constraint).nvfp4 >= 2.7.0.dev0constraint that Megatron enforces is stated). Happy to add precise minimums per recipe if a reviewer can confirm them from the TE side.CC @NVIDIA/mcore-oncall for review routing / suggested precision expert reviewer.