Repository navigation
feat(nemo-gym): support async SpatialClaw GRPO - #4235
Draft
ehosseiniasl wants to merge 6 commits into
Draft
ehosseiniasl wants to merge 6 commits into
ehosseiniasl wants to merge 6 commits into
Conversation
Contributor
Author
|
/ok to test 1438475 |
Contributor
Author
|
/ok to test b058c94 |
ehosseiniasl
force-pushed
the
ehsan/spatialclaw-async-grpo
branch
2 times, most recently
from
November 24, 2026 20:10
9d80293 to
b2ea09e
Compare
Signed-off-by: Ehsan Hosseini Asl <[email protected]>
Signed-off-by: Ehsan Hosseini Asl <[email protected]>
Signed-off-by: Ehsan Hosseini Asl <[email protected]>
Signed-off-by: Ehsan Hosseini Asl <[email protected]>
Signed-off-by: Ehsan Hosseini Asl <[email protected]>
Signed-off-by: Ehsan Hosseini Asl <[email protected]>
ehosseiniasl
force-pushed
the
ehsan/spatialclaw-async-grpo
branch
from
November 25, 2026 05:09
b2ea09e to
6e22cd0
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
SpatialClaw can introduce images between policy calls. A final response history can lose the media grouping the generation backend used on each call. This PR packs request-prefix token IDs without concatenating media tensors and adds a replay path that restores the processor inputs for each policy call. Replay preserves generation-authored token IDs and keeps video frames grouped separately from independent tool images. Gym agents that omit the new fields keep the existing history-based path.
flowchart LR A[Gym policy call] --> B[Token IDs and per-call media] B --> C[NeMo RL processor replay] C --> D[Async GRPO policy update]The PR also adds a 16-node async SpatialClaw GRPO recipe and documents the replay contract. Training guide
Issues
None.
Convergence / perf / functionality proof
The rebased head passed 71 CPU tests covering the SpatialClaw recipe, the Gym environment and multimodal replay, and request-prefix token IDs. Ruff lint and formatting checks passed on all seven changed Python files.
The OpenCode-to-learner run and convergence measurements remain pending.
Needs upstream changes
The Gym SpatialClaw port uses typed tasksets. This PR's recipe still uses the legacy Resources configuration. The recipe needs the typed OpenCode preset, and Gym needs to supply
prompt_multimodal_contentandprompt_mm_processor_kwargsfor each trainable policy call. Training also needs isolated execution for model-written Python. Gym #5894PR commands and CI
CI:Lfast: the default for most PRs. Runs a fast test subset.CI:L1: dependency or container changes (pyproject.toml,uv.lock,Dockerfile) or broad core changes. Builds a new image and runs unit and functional tests.CI:docs: docs-only changes. Runs doc tests only./ok to test <full-commit-sha>: start CI for that commit. Post again after each push./internal-ci test-case=<job>: run NVIDIA's internal nemo-ci pipeline for the PR head; eligible teams only./review: automated review comments. Addmode=strictfor a stricter review,reset=truefor a fresh full review./resolve-conflict: Autobot mergesmaininto this PR and resolves the conflicts. PRs from forks must allow edits by maintainers./review-pr-team <pr-number>for a team review before you ask for human review.