Repository navigation
feat: add single controller doc and gb200 nightly tests - #3427
Conversation
|
/ok to test aa69d69 |
terrykong
left a comment
There was a problem hiding this comment.
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, anddata_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— whichtest_nightly_suites_match_gpus_per_noderequires fornightly_gb200.txtentries. 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
-scnames anywhere in the repo;log_dir,wandb.nameandcheckpoint_dirwere updated together in all four files. - We looked hard at the
timing/train/total_step_time < 25bound 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-shippedgrpo-qwen2.5-math-1.5b-instruct-1n4g-fsdp2tp1.v3.shkeeps 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
db0aa28 to
7c4fc3d
Compare
|
/ok to test bb4c762 |
|
/ok to test d4b1485 |
terrykong
left a comment
There was a problem hiding this comment.
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:157is the one I'd actually push for: it still says SC ignoresgrpo.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
9b4f56b to
819e37e
Compare
|
/ok to test 819e37e |
|
/ok to test 4aa19d0 |
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]>
Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
…herited async_grpo block Signed-off-by: Yuki Huang <[email protected]>
…tale logprobs-gating bullet, tighten wording Signed-off-by: Yuki Huang <[email protected]>
Signed-off-by: Yuki Huang <[email protected]>
Co-authored-by: Terry Kong <[email protected]> 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]>
…c_grpo Signed-off-by: Yuki Huang <[email protected]>
4aa19d0 to
0c056a0
Compare
|
/ok to test 0c056a0 |
Summary
docs/guides/single-controller.md) and wire it intodocs/index.md.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)