Repository navigation
Description
Overview
Track the implementation and validation of Single Controller (SC) support for the AutoModel training backend.
The goal is to bring AutoModel onto the shared SC infrastructure, starting with full-batch text GRPO and progressively expanding sampler support, streaming execution, and additional AutoModel capabilities.
This issue complements #5044, which tracks broader SC parity gaps. Shared controller features should remain tracked there where appropriate; this issue tracks the AutoModel integration, backend-specific changes, and validation required to use them.
1. Core implementation
PR1: Full-batch AutoModel SC
Implementation: #4963
Establish the AutoModel worker lifecycle required by SC while preserving the existing V1 training path.
Initial scope:
- Text GRPO with full-parameter training.
- Dense and MoE models, including expert parallelism.
- FSDP2 training with TP=1 and CP=1.
- Fixed-size microbatches and full-batch dispatch.
- Non-colocated asynchronous vLLM generation.
in_ordersampling.max_weight_version_lookahead=0as the validated baseline.- Basic training checkpoint/resume and weight synchronization.
Implementation and validation:
- Land the AutoModel SC worker lifecycle:
begin_train_step,train_microbatch,finish_train_step, andabort_train_step. - Preserve V1
train()behavior and reuse existing numerical primitives. - Validate worker numerical equivalence using identical training inputs and initial states.
- Validate dense and MoE end-to-end training, including EP>1.
- Provide configuration, documentation, and automated test coverage.
- Qualify lookahead greater than zero for full-batch execution.
Lookahead support may be included in PR1 if correctness and convergence validation complete before landing. It does not require streaming execution. Validation must cover admission and ordering, policy-version bookkeeping, capacity limits, recovery, and training behavior.
PR2: Additional samplers with full-batch execution
Build on PR1 and qualify the shared sampler implementations with AutoModel:
-
weight_fifo. -
ready_first. -
windowed. - The
customsampler contract.
Validate sample selection, policy-version tracking, batch assembly, and interaction with lookahead. Reuse shared sampler implementations rather than introducing AutoModel-specific scheduling logic.
PR3: Streaming AutoModel execution
Build on PR1, initially using in_order sampling.
- Support multiple training dispatches within one optimizer step.
- Preserve accumulated gradients and required model state across dispatches.
- Maintain correct loss normalization and metric aggregation.
- Handle FSDP synchronization and MoE auxiliary state correctly.
- Qualify abort and cleanup behavior.
- Validate numerical behavior and rollout/training overlap.
PR2 and PR3 can proceed in parallel after PR1 lands. Qualify additional sampler × streaming combinations after the respective implementations are available.
2. Additional AutoModel capabilities
These are capability groups, not a requirement to implement them sequentially. Each item should identify whether it needs AutoModel code changes, shared SC changes, validation, or a combination.
A. Parallelism, batching, and memory
- Context parallelism (CP).
- Tensor parallelism (TP).
- Pipeline parallelism with full-batch SC — build on #4960, including compatible generation and weight synchronization.
- Pipeline parallelism with streaming SC — additionally qualify gradient accumulation across streaming dispatches.
- Hybrid sharded data parallelism (HSDP) — lower priority (P3), pending workload demand.
- Dynamic batching — qualify existing token-budget batching with full-batch SC.
- Sequence packing — support unequal per-rank sample counts and qualify packed execution.
- Dynamic batching and sequence packing with streaming — qualify each separately.
- Training with incomplete rollout batches — handle fewer samples than the configured global batch size, including normalization and distributed execution.
- FSDP CPU offload — qualify gradient accumulation, optimizer updates, checkpoint/resume, and weight synchronization; assess streaming separately.
B. Rollout and generation integration
- Text NeMo Gym integration — qualify agent and multiturn rollouts.
- Exact token capture with text NeMo Gym — verify captured tokens, logprobs, masks, and training alignment.
- Router Replay (R3).
- SGLang generation with AutoModel SC.
- TensorRT-LLM generation with AutoModel SC — coordinate with shared SC support.
- Colocated generation — qualify memory transitions, pause/resume, and weight synchronization for each backend.
AutoModel with Megatron Inference is a separate compatibility investigation, rather than an existing V1 capability to bring to SC.
C. Recovery and fault tolerance
- Advanced rollout checkpoint and recovery — beyond PR1’s basic training checkpoint/resume: restore completed but unconsumed rollouts, recover in-flight work, and qualify periodic rollout snapshots and data-plane persistence.
- Rollout retry and replacement — qualify recovery while preserving complete training batches initially. Training with incomplete batches is tracked in A.
- Generation shard failure and rejoin — qualify AutoModel weight synchronization when shards fail, refit groups are rebuilt, and restarted shards rejoin.
Reuse shared SC recovery mechanisms and test their interaction with AutoModel. Training-rank failure recovery is separate; the baseline remains restarting training from a checkpoint.
D. Algorithms and training modes
Algorithms
- PPO — coordinate policy and value-model training; initially target
in_ordersampling without streaming. - DAPO and GSPO — qualify their loss and advantage settings; track dependencies on shared SC features such as dynamic sampling and reward shaping.
- Gym-based MOPD — integrate teacher scoring and distillation advantages, building on text Gym support.
- Standalone on-policy distillation — assess integrating the existing
run_distillation.pyworkflow into SC, separately from MOPD.
Training options
- LoRA — qualify adapter training, checkpoint/resume, and synchronization to generation workers.
- Online draft co-training — coordinate draft-model updates and synchronization with the SC lifecycle.
Quantization is excluded pending AutoModel backend support. SFT, DPO, reward-model training, and off-policy distillation remain outside this rollout-focused SC plan.
E. Multimodal
- VLM training — qualify processor handling, media transport, media/token alignment, and model execution through SC.
3. Validation and completion criteria
A feature is complete when its supported configurations are documented and appropriate automated coverage is available. Existing V1 support or shared SC infrastructure alone does not establish that an AutoModel SC combination is supported.
For each implementation PR:
- Distinguish implementation gaps from configurations awaiting validation.
- Add focused correctness tests and functional coverage appropriate to the change.
- Use identical-input worker comparisons where applicable to isolate numerical correctness from rollout variability.
- Use end-to-end training comparisons to assess convergence and operational behavior.
- Include dense and MoE coverage where the feature affects both.
- Test checkpoint/resume and failure behavior where the feature changes persistent state or recovery.
- Document unsupported combinations and link supporting validation results from the PR.
Feature-specific PRs and results will be linked from this issue as work progresses.
Activity
yuekaizhang commentedon Nov 10, 2026
Opened draft PR #5149 for PR3: Streaming AutoModel execution.
It adds multiple training dispatches per optimizer step, accumulated gradient/model state, deferred normalization and metric aggregation, DP/microbatch-aligned prompt selection, and cancellation/abort cleanup coverage. Initial scope is text GRPO, full-parameter FSDP2, fixed microbatches, and
in_orderlookahead 0; unsupported auxiliary-loss and batching combinations remain guarded.This depends on #4963. The branch was developed on PR1 revision
047d31a7; porting to the current097524718revision is still pending, so the draft currently targetsmainand includes the underlying PR1 changes. The PR description links the PR3-only delta and archived validation evidence.Validation is still in progress: the latest CPU suite has 127 passing tests, 11 two-GPU cases skipped, and 4 Mooncake CPU cases excluded due to a missing CUDA-driver library. Exploratory Qwen LA0 reached 600 steps and Gemma LA0 reached 900 steps, but the original Qwen BF16 1% gradient gate remains failed, Gemma fixed-input update parity is unassessed, and production overlap/throughput qualification is incomplete. The full-batch/streaming normalization difference is explicitly documented in the draft.
PR3 remains in progress; the draft does not mark its numerical/performance validation complete.