Skip to content

fix(fsdp): keep hybrid shard CI always enabled - #101

Merged
Rockdu merged 3 commits into
radixark:mainfrom
Rockdu:fix/hybrid-shard-ci
Aug 7, 2026
Merged

fix(fsdp): keep hybrid shard CI always enabled#101
Rockdu merged 3 commits into
radixark:mainfrom
Rockdu:fix/hybrid-shard-ci

Conversation

@Rockdu

@Rockdu Rockdu commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

What

  • Run the Hybrid Shard regression in stage-b-5-gpu-h200 on every PR instead of gating it behind run-ci-fsdp.
  • Update the worker to use broadcast_full_state_to_fsdp after the state-loading helper moved out of actor.py.

Why

Hybrid Shard validates foundational FSDP topology, gradient scaling, weight synchronization, and checkpoint behavior, so it should not depend on an opt-in domain label. The previous label filtering hid a stale import introduced by the backend refactor.

Validation

  • PYTHONPATH=/tmp/miles_hybrid_fix_20260807 python tests/fast-gpu/backends/fsdp_utils/test_hybrid_shard.py
  • All four 4-GPU configurations passed on H200: flat DP4, DP2+SP2, HSDP 2x2, and HSDP 2x1+SP2.

Files

  • tests/fast-gpu/backends/fsdp_utils/test_hybrid_shard.py: move the suite to stage B and make it unconditional.
  • tests/fast-gpu/backends/fsdp_utils/_hybrid_shard_worker.py: use the current state broadcast helper.

Checklist

  • pre-commit run --all-files passes — not run locally.
  • Added/updated tests for new behaviour.
  • pytest -x is green — full suite not run; the targeted four-case GPU suite passes.
  • If launch flags changed, python3 train.py --help still parses — not applicable.
  • If a public flag was added, it appears in the CLI reference docs — not applicable.
  • If an example was added, it has a real walkthrough — not applicable.

This PR was authored with Claude.

Made with Cursor

Rockdu and others added 3 commits August 7, 2026 00:27
Run this foundational regression on every PR and update its state-loading helper after the backend refactor moved that API.

Authored with Claude.

Co-authored-by: Cursor <cursoragent@cursor.com>
Match the repository isort configuration so the always-on regression can reach GPU validation.

Authored with Claude.

Co-authored-by: Cursor <cursoragent@cursor.com>
Keep this foundational four-GPU regression in the earlier five-GPU suite so failures surface before stage C end-to-end jobs.

Authored with Claude.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Rockdu
Rockdu merged commit 6de4302 into radixark:main Aug 7, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant