Repository navigation
feat(nemo-gym): preserve multi-harness routing and pooled rollout metrics - #4521
ehosseiniasl wants to merge 8 commits into
Conversation
Current multi-harness validationThis comment supersedes the earlier choose-one Current PR head: The implemented training mode is now
Every source task is expanded once per harness before dataloader batching and shard routing. Four source tasks therefore produce 16 independent GRPO prompt groups; sibling generations within one group stay on the same harness. Validation completed:
Full Nemotron Super 3.5 Omni runs are submitted: 16-node async job |
c64f9a3 to
c27f065
Compare
0593faf to
874f27b
Compare
Signed-off-by: Ehsan Hosseini Asl <[email protected]>
…t step Signed-off-by: Ehsan Hosseini Asl <[email protected]>
…anup Signed-off-by: Ehsan Hosseini Asl <[email protected]>
…atistics Signed-off-by: Ehsan Hosseini Asl <[email protected]>
…APIs Signed-off-by: Ehsan Hosseini Asl <[email protected]>
83ca06a to
b9167c3
Compare
|
/ok to test b9167c3 |
Keep TORCH_SAVE tensors transient while preserving SAFETENSORS metadata and payloads. Apply the source-verified PyTorch fix during container environment construction using atomic replacements so uv hardlinks remain safe. Validation: seven compatibility checks passed using the exact PyTorch 2.13 writer source with real Torch 2.9 CPU DCP, including tensor lifetime bounds, roundtrip and safetensors offsets. Native 2.13/2.14 runtime and a full container rebuild remain unverified. Signed-off-by: ehosseiniasl <[email protected]>
Park configured BF16 optimizer moments during non-colocated accumulation and restore them after gradient finalization. Reuse logits for the joint sampled/head scoring backward only under the validated packed sole-consumer contract. Keep explicitly frozen expert biases frozen outside autograd. Validation: focused CPU qualification passed84 cases covering real selected production methods with Gloo/autograd and resumed Adam state parity, plus the full timer suite. GPU-dependent whole-module and model-backed integration remain separate. Signed-off-by: ehosseiniasl <[email protected]>
Reserve the longest observed iteration before the checkpoint deadline so uneven agentic batches do not exhaust the save window after a short-batch average. Keep the existing one-shot deadline signal and job-start epoch behavior. Validation: full CPU timer suite passed, including deterministic long-then-short iteration deadline coverage, as part of84 passing focused checks. Signed-off-by: ehosseiniasl <[email protected]>
|
/ok to test 4a03617 |
What and why
Uneven rollout groups need pooled counters, and harness identity must survive capture and recovery to attribute results correctly.
fan_out(every harness) andagent_pool(one harness) before shard dispatch, with prompt-group affinity and a Qwen example. Keep native taskset routing intact.current_stepcheckpoint retention. Reward computation and training masks retain their existing behavior.Issues
None.
Convergence / perf / functionality proof
Earlier public-head native CPU focused run: 1,038 cases passed. Model-backed integration remains unverified locally: three existing vLLM setups could not load their Qwen tokenizer from the offline cache.
The retained Qwen recipe validates against the current SingleController schema.
Ruff lint, import order, and formatting pass for all 31 changed Python files; syntax and dependency-manifest consistency checks pass.
The corrected optimizer-policy suite adds 16 passing cases. Two TQ publication cases were not reached because the standalone runner initialized Ray twice; CI must cover those cases.
New runtime fixes: 84 focused CPU checks passed using Torch 2.9 CPU: the complete timer suite plus isolated actual production methods for Gloo/autograd, storage reuse, residency guards and resumed Adam state parity. GPU-dependent whole-module/model integration remains unverified.
Native checkpoint writer: seven compatibility checks passed using exact PyTorch 2.13 writer source on Torch 2.9 CPU DCP, covering bounded tensor lifetimes, roundtrip, safetensors offsets, source guards and atomic hardlink-safe installation. Native 2.13/2.14 execution and a full container rebuild remain unverified.
No full-model training claim is made for this public head. Historical runs below used an earlier private runtime; they support the development history only.
Needs upstream changes
Supported container builds apply the included source-verified PyTorch writer fix. Source-only installs require the equivalent dependency fix. The pinned public Megatron-Core already uses synchronous saves; its source is not replaced.
Companion execution metadata: NVIDIA-NeMo/Gym#6607. Legacy AnyTerminal profile: NVIDIA-NeMo/Gym#4082.
W&B references (historical; not public-head validation):