Skip to content

feat: add single controller doc and gb200 nightly tests - #3427

Merged
yuki-97 merged 15 commits into
mainfrom
yukih/sc-doc-nightly
Aug 11, 2026
Merged

yuki-97 merged 15 commits into
mainfrom
yukih/sc-doc-nightly

Conversation

@yuki-97

@yuki-97 yuki-97 commented Jul 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add single-controller user guide (docs/guides/single-controller.md) and wire it into docs/index.md.
  • Add two GB200 nightly tests + recipes: (validated both passed)
    • grpo-llama3.1-8b-instruct-2n4g-async-1off-single-controller-streaming2 (async streaming)
    • grpo-qwen2.5-math-1.5b-instruct-1n4g-megatron-single-controller-sync (megatron sync)
  • Minor tweaks to the paired 2n8g / 1n8g recipes.

@copy-pr-bot

copy-pr-bot Bot commented Jul 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions github-actions Bot added the Documentation Improvements or additions to documentation label Jul 30, 2026
@yuki-97 yuki-97 added the CI:docs Run doctest label Jul 30, 2026
@yuki-97
yuki-97 marked this pull request as ready for review July 30, 2026 14:47
@yuki-97
yuki-97 requested review from a team as code owners July 30, 2026 14:47
@yuki-97

yuki-97 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test aa69d69

@terrykong terrykong 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.

Reviewed with a 4-agent pass (docs/config, tests, config-correctness deep dive, adversarial verification). No blockers. Everything inline is a documentation improvement — the code, configs and test scripts are sound.

Most of the doc comments are one-click suggestion blocks. Two are asks rather than edits: a legacy→SC config translation table, and an offer of diagrams.

Verified clean, for the record:

  • Config correctness. Both new recipes were fully resolved through their inheritance chains and evaluated against every SingleController validator: num_prompts_per_step × num_generations_per_prompt == train_global_batch_size (2048 and 512), required_buffer_capacity_for_config (the qwen recipe sits exactly at the boundary, 32 vs 32 — passes), min_groups_for_streaming_train, the checkpointing/validation guards, and data_plane.enabled. GPU splits are non-degenerate (llama 4 train + 4 inference; qwen 2 + 2) and all parallelism resolves to TP1/PP1, so divisibility holds throughout.
  • Nightly scripts. The only delta from their merged 8-GPU siblings is the added GPUS_PER_NODE=4 — which test_nightly_suites_match_gpus_per_node requires for nightly_gb200.txt entries. Naming, suite placement, file modes and copyright exemption all check out, and the yaml↔sh↔suite 1:1 invariants hold.
  • Renames. No dangling references to the old -sc names anywhere in the repo; log_dir, wandb.name and checkpoint_dir were updated together in all four files.
  • We looked hard at the timing/train/total_step_time < 25 bound being carried onto half the training GPUs and concluded it is fine — the metric includes generation wait, the right comparison is 4×GB200 vs 8×H100, and the already-shipped grpo-qwen2.5-math-1.5b-instruct-1n4g-fsdp2tp1.v3.sh keeps the same bound with less walltime and passes nightly. Noting it only so you know it was considered rather than missed.

Two things deliberately not raised as asks here, in case they're useful as follow-ups: nightly_gb200.txt has no GPU-hour budget guard (test_nightly_compute_stays_below_3480_hours covers only nightly.txt, so the ~29 GPU-h added here is unguarded), and SC's _build_clusters lacks the inference_gpus_per_node == cluster.gpus_per_node guard that grpo.py has for the multi-node non-colocated case, so a mismatched config would silently strand GPUs. Both are pre-existing and untouched by this PR.

Thanks for writing the guide up — the sampler-mode and config→behavior tables are genuinely useful, and the SC path badly needed a user-facing entry point.

Generated by Claude Code

Comment thread docs/guides/single-controller.md Resolved
Comment thread docs/guides/single-controller.md Resolved
Comment thread docs/guides/single-controller.md Resolved
Comment thread docs/guides/single-controller.md Resolved
Comment thread docs/guides/single-controller.md Resolved
Comment thread docs/guides/single-controller.md Resolved
Comment thread docs/guides/single-controller.md Resolved
Comment thread docs/guides/single-controller.md Resolved
Comment thread docs/guides/single-controller.md Resolved
Comment thread docs/guides/single-controller.md Resolved
@yuki-97
yuki-97 force-pushed the yukih/sc-doc-nightly branch from db0aa28 to 7c4fc3d Compare August 7, 2026 10:40
@yuki-97

yuki-97 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test bb4c762

@yuki-97 yuki-97 added CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) and removed CI:docs Run doctest labels Aug 7, 2026
@yuki-97

yuki-97 commented Aug 7, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test d4b1485

terrykong
terrykong previously approved these changes Aug 7, 2026

@terrykong terrykong 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.

Re-reviewed after the fixes — all 10 previous threads verified fixed against the commits, no blockers. I also confirmed the new async_grpo guard doesn't break anything: the null propagates correctly through inheritance into both new GB200 recipes (I resolved both chains — async_grpo=None), and both SC functional tests still pass it (grpo_dp_single_controller.sh picks up the default SC config, and the gym one was patched in d4b1485).

Everything here is small and follows from those fixes — every comment is a one-click suggestion.

  • single-controller.md:157 is the one I'd actually push for: it still says SC ignores grpo.async_grpo:, but the new guard rejects it, so the migration section now contradicts the runtime.
  • The four config comments each had a copy-pasted provenance (only the llama one named its real parent) and all four claimed SC "would silently ignore any values left here" — which is exactly what the guard removed.

Generated by Claude Code

Comment thread docs/guides/single-controller.md Resolved
terrykong
terrykong previously approved these changes Aug 7, 2026
@terrykong

Copy link
Copy Markdown
Collaborator

/ok to test 819e37e

@yuki-97

yuki-97 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 4aa19d0

yuki-97 added 5 commits August 7, 2026 22:55
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
yuki-97 and others added 10 commits August 7, 2026 22:55
Signed-off-by: Yuki Huang <[email protected]>
…tale logprobs-gating bullet, tighten wording

Signed-off-by: Yuki Huang <[email protected]>
Co-authored-by: Terry Kong <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Co-authored-by: Terry Kong <[email protected]>
Signed-off-by: Terry Kong <[email protected]>
Signed-off-by: Terry Kong <[email protected]>
@yuki-97
yuki-97 force-pushed the yukih/sc-doc-nightly branch from 4aa19d0 to 0c056a0 Compare August 8, 2026 05:57
@yuki-97

yuki-97 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 0c056a0

@yuki-97
yuki-97 requested review from RayenTian and terrykong August 10, 2026 02:06
@yuki-97
yuki-97 enabled auto-merge (squash) August 10, 2026 02:06
@yuki-97
yuki-97 merged commit 309d7f0 into main Aug 11, 2026
83 checks passed
@yuki-97
yuki-97 deleted the yukih/sc-doc-nightly branch August 11, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) Documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants