Repository navigation
feat(osworld): OSWorld v2 SingleController training recipe - #4581
jinglinglingling wants to merge 22 commits into
Conversation
ff3bffa to
e970318
Compare
e970318 to
fb8f729
Compare
|
Rebase/validation update:
|
✅ Submodule Fast-Forward Check ResultsCheck based on commit: fb8f729 (PR #4581 from ✅ Submodules that are properly updated:Gym: ✅ PR branch is ahead of main branch (fast-forward) All submodule changes look good! ✨ |
✅ Submodule Fast-Forward Check ResultsCheck based on commit: 2d8584a (PR #4581 from ✅ Submodules that are properly updated:Gym: ✅ PR branch is ahead of main branch (fast-forward) All submodule changes look good! ✨ |
✅ Submodule Fast-Forward Check ResultsCheck based on commit: c499f19 (PR #4581 from ✅ Submodules that are properly updated:Gym: ✅ PR branch is ahead of main branch (fast-forward) All submodule changes look good! ✨ |
51b1740 to
7411feb
Compare
7411feb to
84ccb5a
Compare
|
Could we reuse I checked 200 isolated CPU cases using the source-extracted implementations; the final masked advantages matched exactly. We’d still need the forest token-count plumbing and configuration guards, but is there another semantic difference that requires a separate class? |
|
Could we validate the new physical-row limits against DP and microbatch alignment? Could we reuse the existing alignment calculation to reject incompatible limits or choose aligned partitions? With an aligned input and partition size, the smaller final partition remains aligned too. A test using the real sharder would help—the current tests mock it and therefore miss these failures. |
|
Linglin, could we split the general framework changes into their own focused PRs and stack the OSWorld integration on top? In particular, the physical-row dispatch limits and chunked packed-media broadcasts are useful beyond OSWorld and have independent correctness and testing requirements. The advantage-estimator/forest token-count changes would also be easier to review separately, incorporating the REINFORCE++ reuse discussion above. Keeping the OSWorld recipes and tooling here would make the scope and dependencies much clearer. |
|
Sounds good @aroshanghias-nvd — agreed that separating the general framework pieces will make each change much easier to review and verify independently. We'll split this into focused PRs and link them back here:
Will follow up here with links as each split PR is opened. |
85c3ba0 to
69d7690
Compare
69d7690 to
9bcf9f5
Compare
Partition SC train and logprob metadata before sharding, respecting DP and static microbatch alignment. Accumulate the partitions into the caller's existing train step and wait for each fanout before materializing more rows. Signed-off-by: Linglin Jing <[email protected]>
Stage CPU packed data through a reusable collective-device buffer, and rebuild CUDA payloads on each follower's own device. Exercise chunk boundaries on the int16 byte wire for Gloo and NCCL. Signed-off-by: Linglin Jing <[email protected]>
9bcf9f5 to
e375e08
Compare
|
/ok to test e375e08 |
|
/ok to test f4ae7c1 |
A rollout without any accepted captured generation is recorded as capture_no_accepted_generations and masked instead of failing the step. Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 29b0855)
…ogical owners Compute the group baseline from one finalized reward per participating owner. Weight global whitening by surviving action tokens, excluding late execution padding. Exercise both Forest penalty scopes through finalization, step padding, and advantage writeback. Signed-off-by: Linglin Jing <[email protected]>
Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 4d9ff02)
Forest training builds the media-token validity mask from the verified embedding spans, so a media token id the model generates stays text. Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 054298d)
Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 2c6dc86)
grpo.val_at_resume runs val_at_start on a restored checkpoint; checkpointing.load_optimizer=false restores policy weights without optimizer state. Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 0740776)
Forest training recipe, checkpoint and evaluation profiles, Slurm launch scripts and data preparation for Nemotron Omni on OSWorld. Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 64b5fbb)
OSWorld capture rows now carry a schema-1 trajectory_identity built from the runtime rollout id, group id, rollout index, and group attempt, and partial legacy context_compaction_* dataset fields are removed. The identity follows rollout ids and attempts replaced on redispatch. Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 924d7d9)
Gym's Nano Omni profile sends truncate_history_thinking=true per request, which overrides the vLLM server default and strips reasoning from replayed assistant turns. Pin the request value to the tokenizer's setting. Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 573bc37)
Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 9d5f85a)
The recipe now carries the OSWorld agent settings it trains with, so composing it outside the Slurm scripts no longer falls back to the Gym profile's defaults. The OSWORLD_* variables still override each value. Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 0c00b3a)
…8 recipe Signed-off-by: Linglin Jing <[email protected]> (cherry picked from commit 69d7690)
Signed-off-by: Linglin Jing <[email protected]>
…masks Signed-off-by: Linglin Jing <[email protected]>
…n key Signed-off-by: Linglin Jing <[email protected]>
Signed-off-by: Linglin Jing <[email protected]>
…trypoint Signed-off-by: Linglin Jing <[email protected]>
Signed-off-by: Linglin Jing <[email protected]>
Signed-off-by: Linglin Jing <[email protected]>
Signed-off-by: Linglin Jing <[email protected]>
f4ae7c1 to
b447d1b
Compare
|
/ok to test b447d1b |
What and why
This is the OSWorld v2 SingleController integration, stacked on bounded physical-row dispatch and packed-media broadcasts and Forest REINFORCE++ with owner action-token counts. Those two framework changes are reviewed independently against
main.The OSWorld layer adds the training, checkpoint and inference recipes, the launch and data-preparation tools, and the rollout handling they depend on: capture failures mask only the affected rollout, media-token masks come from authenticated embedding spans, and rows carry trajectory IDs and episode-end metrics. The Molt recipe uses the existing
reinforce_plus_plusestimator withminus_baseline: true; it does not introduce a separate estimator.Convergence / perf / functionality proof
On
9bcf9f5f3, 9 OSWorld recipe tests and 430 Gym capture, ingestion and media tests passed locally in therl.nightlycontainer with candidate Gym91666f9; Ruff lint and formatting passed across the stack. These tests did not run distributed training or replace hosted CI.Post-bump local checks used official Gym
91666f9: 47 A tests (two GPUs), 310 B tests passed with one inapplicable case skipped, and on the first integrated heade375e0835, all 9 OSWorld recipe plus 7 data-preparation cases passed. Hosted type checking then flagged the type of the resolved config;f4ae7c135follows the SC entrypoint’s typed mapping convention. Onf4ae7c135, the 9 OSWorld recipe tests passed again, and the launcher passed Pyrefly 1.4.0 (the preceding revision reproduced the original error under the same checker). Hosted CI on the earlierf4ae7c135head passed. After integrating upstream Forest terminal attribution and row caps, the baseline is nowb447d1b23: current hosted CI. Targeted local regression on published heads:b447d1b23: 352 capture/Forest boundary and ingestion cases, 8 rollout identity/task-index cases, 9 recipe cases and 7 data cases passed. Framework9e4eefdcc: 310 passed, 1 skipped.Earlier recipe verification
tests/unit, CPU lanes, containerrl.nightly-20261116T1258): no failures beyond those onmainin the same container. OSWorld recipe composition: 7 passed.grpo_nemotron_omni_30ba3b_osworld_v2_cc_molt_b8k8_checkpoint.yamland the agent settings inexamples/nemo_gym/osworld_v2/env.example: 4 x 8 H100, 8 prompts x 8 generations, 16 prompt groups in flight, 128 parallel OpenSandbox sandboxes, 64 steps, containerrl.nightly-20261121T0937Z.Earlier evaluation
osworld-v1sandboxes.Needs upstream changes
The Gym bump has merged. The PR is rebased on RL
mainatd6c70efc3and inherits its official Gym pin91666f9, which containsbenchmarks/osworld/configs/osworld_nemo_rl_opensandbox.yaml. There is no submodule or lockfile change in this PR. The two framework PRs linked above remain separate review dependencies. The earlier OSWorld Gym work was tracked in Gym #4209.