ZeRO-1/2 gradient accumulation: remaining test coverage
メンテナーはふだん 2 日以内に返信
@sfc-gh-truwase がすでに取り組んでいます。
2026年10月30日 から。
評価
この issue はまだ評価されていません。
説明
Context
Follow-up to the ZeRO-1/2 request-boundary gradient work in #8949.
The local fix keeps non-offload gradients until step(), records norm and overflow for every reduced parameter, mirrors and resets the compact FP32 partition, uses ZenFlow overlap_grad, and clears retained state from zero_grad(). The checks below are still missing. Existing tests either call optimizer helpers on a partial object, set only one accumulation boundary, or compare CPU offload against the non-offload path.
Test gaps
- End-to-end run with several
set_gradient_accumulation_boundary(True)calls before onestep(), compared with an independent summed-loss reference.test_multi_backward_matches_no_offloaduses the sibling path as the oracle and only one boundary. - Two-parameter late first use, with
source_offset > 0and partition padding. - Compact FP32 accumulation (
grad_accum_dtype=fp32) after overflow, then a later finite window, asserting gradient equality. - Clipping and Inf detection for a parameter used only on a non-boundary microbatch.
- Multi-rank split parameters.
- Fractional BF16/FP16 values so the master-dtype conversion is visible. Current fills are integers.
- End-to-end reentrant checkpointing and
managed_gradient_accumulation=false. -
overlap_commstream ordering for the synchronous host copy, and a ZenFlowoverlap_steptraining loop. The current ZenFlow check uses a partial optimizer. - Direct gradient equality in
test_zero_cpu_offload_grad_accum.py. That test only checks that the host-partition norm changes. - GPU run of
test_cuda_oversized_producer_handoff. It is skipped underDS_ACCELERATOR=cpu.
- 主要言語
- Python
- スター
- 43.3k
- フォーク
- 5.1k
- 平均マージ
- 5日 10時間
- マージ済み PR(30日)
- 85
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
deepspeedai/DeepSpeed のほかの issue
-
[Bug] DeepSpeedEngine.step leaves _running_engine_step=True permanently on exception, corrupting is_gradient_accumulation_boundary()対応中かも @its-amann が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
deepspeedai/DeepSpeed#9190 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
[Bug] PipelineEngine._exec_reduce_grads and _exec_optimizer_step leave _force_grad_boundary=True permanently after any exception対応中かも @bantianyue が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
deepspeedai/DeepSpeed#9183 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
deepspeedai/DeepSpeed#9019 · コメント 2 件 ·
メンテナーはふだん 2 日以内に返信
-
fp16 `hysteresis: 0` (or negative) makes DynamicLossScaler never lower the loss scale, so every overflowing step is skipped forever対応中かも @damienen が 26 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
deepspeedai/DeepSpeed#8982 ·
メンテナーはふだん 2 日以内に返信
-
[BUG] OneCycle applies the minimum momentum to the first Adam update対応中かも @ai-yang が 30 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
deepspeedai/DeepSpeed#8951 ·
メンテナーはふだん 2 日以内に返信
deepspeedai/DeepSpeed の issue をすべて見る
似ている issue
-
area/auth comp/agent P3 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NousResearch/hermes-agent#161417 ·
メンテナーはふだん 1 日以内に返信
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
future-agi/future-agi#4737 ·
メンテナーはふだん 1 日以内に返信
-
Fix URL validation, get_version_url, and implement robust parse_url for Launchpad backend対応中かも @patelshivani2283-lab が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
fedora-infra/anitya#2278 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Dao-AILab/flash-attention#3251 ·
メンテナーはふだん 2 日以内に返信