Repository navigation
Consolidate PRs for docs and typos - #8689
Conversation
…n gradient copy The ZenFlow fork of async_inplace_copy_grad_to_fp32_buffer_from_gpu mangled the original logic into two byte-identical if/else arms. If grad_accum were ever None, the None branch would itself call grad_accum.view(-1) and raise AttributeError, defeating the check. Restored the upstream assert + single-assignment shape from runtime/zero/stage_1_and_2.py. Signed-off-by: simpleqt <[email protected]> (cherry picked from commit fe0efd5) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
…print in WriterFactory Both arms of the pure_dp conditional computed the same expression (AST-verified), and the constructor unconditionally printed a debug line to stdout of every user process that enables the fast checkpoint writer. Collapsed the conditional and removed the print. Signed-off-by: simpleqt <[email protected]> (cherry picked from commit 9d74c0e) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
CONTRIBUTING.md has no Installation heading, so the in-file anchor went nowhere; the section lives in README.md. Signed-off-by: simpleqt <[email protected]> (cherry picked from commit 6755507) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
The anchor #adding-a-new-workflow matches no heading; the heading is 'Add a new workflow' (slug add-a-new-workflow). Signed-off-by: simpleqt <[email protected]> (cherry picked from commit 912d6fa) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
The tutorial file is docs/_tutorials/one-cycle.md with no custom permalink, so its URL is /tutorials/one-cycle/; /tutorials/1Cycle/ 404s on the case-sensitive GitHub Pages site. Signed-off-by: simpleqt <[email protected]> (cherry picked from commit 7273be4) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
deepspeed.checkpoint has no get_cuda_rng_tracker; the function lives in deepspeed/runtime/activation_checkpointing/checkpointing.py and is exposed as deepspeed.checkpointing.get_cuda_rng_tracker — the same snippet already uses that path two lines above. Signed-off-by: simpleqt <[email protected]> (cherry picked from commit da26749) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
deepspeed.com is not a package; the function exists only at deepspeed.comm.log_summary — the same sentence already uses it once. Signed-off-by: simpleqt <[email protected]> (cherry picked from commit 14c57bf) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
/code-docs/training is excluded from the Jekyll site (_config.yml) and only builds to deepspeed.readthedocs.io, so the tutorial link 404s. Point it at the RTD anchor (autotp-supported-models), which exists. Signed-off-by: simpleqt <[email protected]> (cherry picked from commit e26dd58) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
The parameter is 'input', not 'inputs', and 'max_vlue' was a typo for 'max_value'. Signed-off-by: simpleqt <[email protected]> (cherry picked from commit 33e6bd4) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
- scheduling_utils enum docstrings: 'would would overflow', 'in a single forwardp' -> 'forward pass' - partitioned_param_coordinator TODO: 'if if' - loss_scaler comment: duplicated 'the' before dynamic_loss_args - accelerator-abstraction tutorial: 'is used get get' -> 'is used to get the' - ds-chat release blog: 'in the the ZeRO' Signed-off-by: simpleqt <[email protected]> (cherry picked from commit b9ffff4) Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
Retain the valid max_norm documentation from #8450. Omit use_graph because #8579 removed graph harvesting and that parameter. (cherry picked from commit 3702981) Signed-off-by: simpleqt <[email protected]> Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
Retain the two valid URL case corrections from #8594. Omit its final link replacement, which would send ZeRO-3 readers to the ZeRO-2 Offload tutorial. (cherry picked from commit f361de2) Signed-off-by: simpleqt <[email protected]> Signed-off-by: Hongwei Chen <[email protected]> Co-authored-by: Copilot <[email protected]>
Signed-off-by: Hongwei Chen <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9590219686
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
| It currently drives **`modal-torch-latest`** (which runs `tests/unit/v1/` on | ||
| [modal.com](https://modal.com) GPUs), but is built to drive more workflows from | ||
| one config — see [Adding a workflow](#adding-a-new-workflow). | ||
| one config — see [Adding a workflow](#add-a-new-workflow). |
There was a problem hiding this comment.
This non-merge commit has no Signed-off-by trailer (verified from its full commit message), so it does not meet the repository's mandatory commit policy and must be recreated with git commit --signoff before it can be accepted.
AGENTS.md reference: AGENTS.md:L8-L9
Useful? React with 👍 / 👎.
Consolidate the reviewed documentation fixes, typo corrections, and small runtime cleanups from the original PRs below.
Credit to @simpleqt for the original contributions. The cherry-picked commits preserve the original authorship and sign-offs. This PR combines the valid changes, avoids duplicate edits, and adjusts changes that no longer match the current code or documentation.
Original PRs
README.md#installation.max_normdocumentation; omit the obsoleteuse_graphentry.TEST_SELECTION.md./tutorials/one-cycle/.deepspeed.checkpointing.get_cuda_rng_tracker.deepspeed.com.log_summarytodeepspeed.comm.log_summary.fp_quantizedocstring's parameter names with its signature.Integration adjustments
use_graphwas removed by #8579, so only the still-applicablemax_normdocumentation is retained./tutorials/zero-offload/, teaches ZeRO stage 2 optimizer offloading. Instead, this PR separately updates the ZeRO-3 tutorial link to Training trillion-scale models with ZeRO-Infinity, which documents stage 3 and CPU parameter/optimizer offloading.