Skip to content

Re-enable test_qwen3_4B_ckpt.py - #1271

Merged
guapisolo merged 1 commit into
mainfrom
shi/reenable-qwen3-4b-ckpt
Jun 4, 2026
Merged

Re-enable test_qwen3_4B_ckpt.py#1271
guapisolo merged 1 commit into
mainfrom
shi/reenable-qwen3-4b-ckpt

Conversation

@Shi-Dong

@Shi-Dong Shi-Dong commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Re-enables tests/e2e/ckpt/test_qwen3_4B_ckpt.py, which was disabled with disabled="Disabled due to bugs." and a # FIXME: fix this comment.

The test exercises Megatron checkpoint save → load round-trips (sync and async save) for Qwen3-4B under TP2/PP2/CP2 + sequence-parallel, and asserts per-(tp,pp,dp,cp)-rank SHA256 hash-equality of model parameters across the boundary (--ci-save-model-hash on save, --ci-check-model-hash + --low-memory-resume on load). The hash check runs immediately after load, before the load-run's training loop, so the assertion is deterministic w.r.t. rollout non-determinism. No assert logic is touched — only the registration marker is restored.

Test plan

  • Reproduced end-to-end twice on an 8×H200 devbox (image radixark/miles:dev) via the exact CI invocation python3 tests/e2e/ckpt/test_qwen3_4B_ckpt.py (no args).
  • Both runs identical and deterministic: Model hashes match ×4 (two save/load round-trips: sync + async), Saved model hashes ×8 (8 ranks), all 4 Ray jobs succeeded, zero AssertionError / hash mismatch / traceback.
  • --low-memory-resume peak-GPU-memory guard satisfied: 12.37 GB < 20 GB threshold on every rank.

This checkpoint save/load hash-equality test was disabled with
disabled="Disabled due to bugs." It passes today: verified twice on an
8xH200 devbox (image radixark/miles:dev) via the exact CI invocation
`python3 tests/e2e/ckpt/test_qwen3_4B_ckpt.py`, both runs deterministic
(Model hashes match x4, peak GPU 12.37 GB, zero assertion failures).
Removes the FIXME and the disabled marker; no assert logic is touched.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request re-enables the Qwen3 4B checkpoint end-to-end test by removing the disabled parameter and the associated FIXME comment from the register_cuda_ci registration. There are no review comments, so I have no feedback to provide.

@guapisolo guapisolo left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@guapisolo
guapisolo merged commit 067ebff into main Jun 4, 2026
66 of 67 checks passed
@guapisolo
guapisolo deleted the shi/reenable-qwen3-4b-ckpt branch June 4, 2026 00:44
guapisolo added a commit that referenced this pull request Jul 12, 2026
Disabled in #1149 as "Disabled due to bugs" with a FIXME pointing at
Megatron. Since then the Megatron pin picked up the dist-ckpt load fix
for bare BytesIO _extra_state (radixark/Megatron-LM#53, fixes #1293),
and the sibling qwen3_4B ckpt test disabled in the same sweep proved
stale on re-run (#1271). The training config itself (TP2/PP2/CP2/EP4 +
MTP + EAGLE) already runs green in test_glm47_flash/test_r3_mtp; the
save -> load -> async_save -> load roundtrip is the only untested part.
Re-enable and let the run-ci-ckpt CI run on 8xH100 validate it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
guapisolo added a commit that referenced this pull request Jul 14, 2026
Disabled in #1149 as "Disabled due to bugs" with a FIXME pointing at
Megatron. Since then the Megatron pin picked up the dist-ckpt load fix
for bare BytesIO _extra_state (radixark/Megatron-LM#53, fixes #1293),
and the sibling qwen3_4B ckpt test disabled in the same sweep proved
stale on re-run (#1271). The training config itself (TP2/PP2/CP2/EP4 +
MTP + EAGLE) already runs green in test_glm47_flash/test_r3_mtp; the
save -> load -> async_save -> load roundtrip is the only untested part.
Re-enable and let the run-ci-ckpt CI run on 8xH100 validate it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants