Skip to content

Consolidate PRs for docs and typos - #8689

Merged
pengdurice merged 13 commits into
masterfrom
hongwei/docs
Sep 28, 2026
Merged

pengdurice merged 13 commits into
masterfrom
hongwei/docs

Conversation

@hwchen2017

Copy link
Copy Markdown
Contributor

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.

  • Fix broken tutorial links, documentation anchors, and Python API references.
  • Correct parameter names, missing argument documentation, duplicated words, and garbled text in docstrings, comments, and documentation.
  • Simplify identical branches in the checkpoint writer and ZenFlow gradient-copy path, restore the gradient assertion, and remove the checkpoint writer's unconditional debug print.
  • Additionally, repair the remaining ZeRO-3 Offload tutorial link so it points to the current ZeRO-3/ZeRO-Infinity section.

Original PRs

Original PR Change incorporated
#8445 Restore the non-None gradient assertion and remove the duplicated ZenFlow gradient-copy branch.
#8446 Remove identical checkpoint-writer branches and the unconditional constructor debug print.
#8449 Point CONTRIBUTING's installation link to README.md#installation.
#8450 Include only the max_norm documentation; omit the obsolete use_graph entry.
#8545 Both scheduling-docstring corrections are covered by #8599, so they are included only once.
#8546 Correct the "Add a new workflow" anchor in TEST_SELECTION.md.
#8593 Correct the two 1Cycle tutorial links to /tutorials/one-cycle/.
#8594 Retain the two valid URL case corrections in the ZeRO-3 Offload post; handle its final tutorial link separately as described below.
#8595 Correct the Megatron example to use deepspeed.checkpointing.get_cuda_rng_tracker.
#8596 Correct deepspeed.com.log_summary to deepspeed.comm.log_summary.
#8597 Point the AutoTP supported-models link to the correct Read the Docs page and anchor.
#8598 Align the fp_quantize docstring's parameter names with its signature.
#8599 Remove duplicated words and garbled fragments in scheduling docstrings, runtime comments, and documentation.

Integration adjustments

simpleqt and others added 13 commits September 28, 2026 04:09
…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]>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 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).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add a Signed-off-by trailer

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 👍 / 👎.

@delock
delock added this pull request to the merge queue Sep 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 28, 2026
@pengdurice
pengdurice added this pull request to the merge queue Sep 28, 2026
Merged via the queue into master with commit 62faee3 Sep 28, 2026
13 of 17 checks passed
@pengdurice
pengdurice deleted the hongwei/docs branch September 28, 2026 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-gpu-test Requires positive evidence that every changed behavior can be validated without a GPU.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants