Repository navigation
Conversation
Signed-off-by: Rohit Jena <[email protected]>
Signed-off-by: Rohit Jena <[email protected]>
Co-authored-by: Yi-Fu Wu <[email protected]> Signed-off-by: Rohit Jena <[email protected]>
Signed-off-by: Rohit Jena <[email protected]>
Signed-off-by: Rohit Jena <[email protected]>
Co-authored-by: Yi-Fu Wu <[email protected]> Signed-off-by: Rohit Jena <[email protected]>
Co-authored-by: Yi-Fu Wu <[email protected]> Signed-off-by: Rohit Jena <[email protected]>
Signed-off-by: Rohit Jena <[email protected]>
Signed-off-by: Rohit Jena <[email protected]>
…ion budgets Signed-off-by: Tong Che <[email protected]>
d8bd8f5 to
6540d21
Compare
Signed-off-by: Tong Che <[email protected]>
yfw
left a comment
There was a problem hiding this comment.
HOLD. Two blockers: the generation budget never stops a harness (nemo_gym/models/rollout_budget.py:83-94), and test_harness_configs.py:80 turns the CI Server suite red.
Running one DeepCAD environment through seven stock agents with _copy environment servers is the shape Gym wants for multi-harness work. Routing, configuration keys, /ng-sampling/ and rollout correlation are correct for all seven harnesses. The merge with main kept the prepare_row and lazy-row behavior from #5950. With the budget off, nothing changes for other environments. After the fixes in the comments below, this recipe can be the reference example for one environment run by many harnesses.
Process:
- No merge conflict with main now, so no rebase is needed.
- DCO passes.
- CI ran only DCO and the lock-freshness job. A maintainer needs to comment
/ok to testwith the full 40-character head SHA to start the other jobs.
Local runs (CPU only):
- pre-commit passes with no rewrites.
- deepcad tests in deepcad's own venv: 327 passed, 2 failed (see
test_harness_configs.py:80), 4 skipped. - The PR's core budget tests: 11 of 11 pass. All model tests: 2308 passed.
Notes:
- The comments on
rollout_budget.py:83-94andbase_responses_api_model.py:286are about the budget, so their design advice applies to its core PR. - The test comments on
test_harness_configs.py:41-42andtest_opencode_manifest.py:186-192are small and do not block.
Generated by Claude Code
Signed-off-by: Tong Che <[email protected]>
Signed-off-by: Tong Che <[email protected]>
Signed-off-by: Tong Che <[email protected]>
Signed-off-by: Tong Che <[email protected]>
Carry the optional limit and explicit owning agent through existing correlation URLs. Reuse the shared atomic counter and native rollout stop, with the logical rollout ID shared across attempts. Uncapped episodes on the same model remain unaffected; CAD declares ten calls on its environment configuration. Validation: 600 affected-suite tests passed with three optional skips; final 17 budget tests passed, including 6+4 retry accounting, independent samples, uncapped shared-model calls, sampling preservation and invalid request controls. Native client/runtime qualification remains pending. Signed-off-by: Tong Che <[email protected]>
…-support-for-rl-tasks Signed-off-by: Tong Che <[email protected]>
|
Review fixes are pushed at The current head passes DCO, risk and lock-freshness checks. Copyright, Code linting and Secrets detector workflows report |
yfw
left a comment
There was a problem hiding this comment.
HOLD. This is a follow-up at c573165.
This PR and #6453 now conflict with main in one place. #6410, merged as 290641a, changed the same except in DockerProvider._run (provider.py L366-L373). On main, a cancelled command goes to kill_cancelled_command, which kills its process group and then waits for it with a shielded, bounded wait. Please resolve it in #6453 first. Keep main's two except blocks, and drop the isinstance(e, asyncio.CancelledError) check, which can then never be true:
except asyncio.CancelledError:
await kill_cancelled_command(proc)
raise
except asyncio.TimeoutError as e:
with contextlib.suppress(ProcessLookupError):
os.killpg(os.getpgid(proc.pid), signal.SIGKILL)
with contextlib.suppress(Exception):
await proc.wait()
raise TimeoutError(f"docker command timed out after {timeout_s:g}s: {_redact_argv(argv)}") from eA local merge of main into this head with that change passes ruff and the Docker provider tests. The sandbox, agent, model, server-runtime, client and core unit tests pass and fail in the same places as on this head.
Since the last review, the test imports of Hermes and NOOA, tool-output images on the CAD model, OpenClaw image input, the sampling requirement, the config order in the test and the seed test are fixed. Thank you for the quick and careful fixes.
Still open:
- Every DeepCAD episode fails at the agent seed with HTTP 404, before its first model call (
single_agent_turn/app.py:618). - Tests fail in CI in three places: the Claude Code suite, the Hermes suite and one core sandbox-session test.
- The HLE Pi blend that
OPENCODE.mddescribes changes the CAD Pi agent. - The Hermes and NOOA image paths change shared code, and NOOA runs without the 10-call cap.
- The real-model runs of the five tasks on the seven harnesses, which you track in the open threads.
Merge order: #6453 merges first. Then this PR needs a merge with main, so that its diff shows only the recipe and agent changes. Fixes in files that both PRs share (single_agent_turn/app.py, claude_code_agent/app.py, nooa_agent/app.py and the Docker provider) belong in #6453 first.
Process:
- DCO passes.
- CI ran only DCO, the risk check and the lock-freshness job. A maintainer needs to comment
/ok to testwith the full 40-character head SHA to start the other jobs.
Local runs (CPU only):
- pre-commit passes with no rewrites.
- deepcad tests in deepcad's own venv: 337 passed, 6 skipped. The extra skip is an OSMesa test that this machine cannot run.
- Model tests and the stop test: 2359 passed, 4 skipped.
single_agent_turn: 292 passed. claude_code_agent: 4 failed, 246 passed.hermes_agent: 3 failed, 412 passed. On main alone, both suites pass.
Generated by Claude Code
…nges Drop the per-episode generation budget, stop lifecycle, Docker upload semaphore and the Hermes/NOOA image plumbing. The recipe now only composes the stock agent configs, as the Agentic-MME and collab_intel recipes do, and documents which harnesses deliver images with their existing options. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Tong Che <[email protected]>
|
Thanks, all addressed in 7776f8e.
Still open: the real-model runs on the five tasks. The sandbox pulls a private image and I'm moving it to a registry the cluster can pull. I will not claim seven qualified pairings before those results exist. I'll resolve the stale threads once those results are in. |
…e the target images Remove Hermes and NOOA until each has an image path and a real-model smoke run, restore the Docker image to main, and document that a profile editing a stock agent block must not be blended with CAD. The blend test now compares the whole CAD agent block with its CAD-only resolve. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Tong Che <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Tong Che <[email protected]>
|
/ok to test 6aa9e24 |
…cipe The recipe drives agents through episode sessions, which take the rollout ID from the seed, so the key only changed other benchmarks that load with it. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Signed-off-by: Tong Che <[email protected]>
Head branch was pushed to by a user without write access
|
/ok to test 67e3329 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44773852146 |
What does this PR do?
Adds a CAD recipe composing OpenCode, Pi, Codex, Claude Code and OpenClaw with the shared resources server and final-file geometry verifier from #5950. #5720 is the composition reference. No separate issue is needed for this incremental onboarding work.
The change is confined to
resources_servers/deepcad/. It does not change Gym core, other tasks' agents, or other tasks' policy settings.deepcad_policy_modelreuse the stock agent implementations.build.steps; each harness's own turn limit and the episode'sagent_timeout_secbound a run. Codex, Pi and OpenClaw have no native turn limit, so only the timeout bounds them.image_input: true, Codex sendsinput_image, and Claude Code reads the PNG files itself. Tool-output images are enabled on the CAD model.Validation
Head:
67e3329a7.ruff checkandruff format --checkonresources_servers/deepcad: pass.resources_servers/deepcad/is identical to main.a7706529e; the later commits change docs and remove the unusedrollout_correlationkey fromconfigs/opencode.yaml). All 25 ended with the final file collected and a verifier result.claude_codeopenclawcodexopencodepiOver all 25: mean reward 0.961, standard error 0.027.
Limits of this evidence, also written in
OPENCODE.md:OPENCODE.mdwas written before it ran, so its statement that no comparison was run is superseded by this section.Comparison with the OpenCode inline-image baseline
Baseline: the standalone OpenCode recipe (images inline in the prompt, no file input), same checkpoint, same 5 examples, run after the table above. Three samples per example were requested, but each group stopped at the first sample NeMo RL's capture selection rejected, so one verifier result per example was retained: 5 episodes, rewards 0.5625, 0.4656, 1.0, 0.0 and 1.0, mean 0.606. The 0.0 is a run that never wrote
model.py.Each harness's mean reward against that baseline, paired by example (bootstrap over the 5 examples):
claude_codeopenclawpicodexopencode(file input)No harness is below the baseline's mean, so none is more than 10% under it. This is weak evidence: 5 examples, one baseline sample per example, a baseline that includes one failed run, and wide intervals. It does not show the harnesses are better, only that none is measurably worse on these examples.
Remaining readiness checks
/ok to test; local checks do not replace it.No training-convergence or cross-harness parity claim is made.
Compatibility and benchmark impact
policy_modelbefore the CAD recipe, which createsdeepcad_policy_model.benchmarks/hle/pi.yaml, also changes the CAD agent that inherits that block. CAD also sets the top-levelsandboxblock to Docker. Do not blend CAD with such a profile, or with a recipe that sets anothersandboxprovider. A blend with SWE-bench Verified OpenCode was checked in both orders.INSTRUCTIONStext changes for every OpenCode row, standalone and lazy rows included._ng_model_sampling. A row's output cap then applies as the smaller of the row's cap and the harness's own cap. Before, OpenCode refused a row cap below its own. Lazy rows keep the values in the request as well, so OpenCode still refuses a smaller cap there.--file-inputOpenCode rows have one user message with workspace paths and no system message. Sosystem_prompt_mode: replaceno longer replaces OpenCode's build prompt, and the CAD text becomes user text.target_imagesfield. Lazy file-input conversion requires materialization first.