Skip to content

feat(claweval): run original ClawEval evaluations through Gym - #3997

Open
ehosseiniasl wants to merge 14 commits into
NVIDIA-NeMo:mainfrom
ehosseiniasl:ehsan/claweval-native-eval
Open

ehosseiniasl wants to merge 14 commits into
NVIDIA-NeMo:mainfrom
ehosseiniasl:ehsan/claweval-native-eval

Conversation

@ehosseiniasl

@ehosseiniasl ehosseiniasl commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Run ClawEval through Gym with its original agent loop, tools, multimodal inputs, sandbox lifecycle, mock services and graders. Bindings cover general (161 tasks), multimodal (101) and multi-turn (38) evaluation. This is requested benchmark onboarding; no separate issue is needed.

Published head: 882b2c1af6015b17873fed6f82afe52d4689086e. It includes the previously unpublished fixes and merges main at acb67734cc37d201e1350395ae422a771582ac21. The branch is mergeable.

All six inline review findings are addressed and resolved:

  • A shared TaskData schema declares verifier metadata and is imported by the agent.
  • The agent explicitly declares ray_enabled = False.
  • Preparation emits each task once; collection owns repetition. Requests and aggregation reject trial indices outside 0–2, and tests check task/seed expansion.
  • Infrastructure failures return masked responses with a reason; task, prompt, digest, trace and score contract mismatches still raise.
  • Null driver containers are limited to Slurm, with mount validation, a Kubernetes guard and configuration documentation.
  • The README records an enduring validation protocol and links here for run-specific results.

Generic host-driver support is split into prerequisite #4878, updated to 59f0654fd5e9e768761f3714dae08f2d1c87d7f4. This PR retains those changes until the prerequisite merges. The current update also preserves streaming-provider options through Gym's model-capture refactor, migrates imports to the current public APIs, reuses the private uv bootstrap, and fixes resumable admission checks for host execution.

Pinned native harness revisions now require a clean checkout, including tracked, staged and untracked source files. Dirty pins fail before execution; development runs without a revision pin continue to retain content hashes. This addresses the paired Factory review's reproducibility finding.

The upstream Claw-Eval MIT license backs the dataset metadata; the supplied fork retains it.

November 9 validation

  • Current head: 75 ClawEval tests passed, including all 300 task exports and real-Git clean/modified/staged/untracked checkout regressions. Full pre-commit completed; the private guardword catalogue was unavailable locally. Commits include DCO sign-off.
  • A fresh real-model general-task smoke used the current Gym head and a clean native checkout at the configured revision. Gym/native reward 0.715 / 0.715; 1 healthy / 0 unhealthy / 0 unobserved; standard P0 fulfilled, including sandbox evidence. The allocation completed successfully and the validation bundle is retained. This one-task smoke does not establish Nano full-suite parity.
  • Prior head 1900699b8: 357 orchestration/Slurm/Kubernetes tests passed (one skipped), 1,713 core/schema/Ray/public-API/import-compatibility tests passed, and Fern validation reported zero errors and one warning.
  • Maintainer-authorized target test CI remains required separately from the GitHub lint, copyright, secrets and DCO checks.

Nano comparison — incomplete

Run Valid attempts Mean /100 Pass@1 Pass@3 Pass³
Historical native reference 303/303 30.95 5.61% 9.90% 2.97%
Historical Gym observed subset 298/303 29.18 4.36% Incomplete Incomplete

Threshold: 75/100. Pass@3 means at least one passing trial; Pass³ means all three. The Gym values describe the 298 valid attempts only. Five earlier video attempts failed because the worker lacked ffprobe; the worker PATH fix is published and regression-tested. A later five-task Nano smoke completed all five executions with matching native/Gym grades and no masked attempts; standard P0 fulfilled for four, while the fifth independently recorded a direct answer with no tool calls. That limitation remains recorded.

The provenance audit checked 101 task definitions and Python files against 303 historical attempt contracts across 17 manifests. Current task YAML/Python matches the later baseline snapshot. Two historical first-trial records use earlier video regraders, so the historical native reference has heterogeneous grader provenance and is not a single fixed-grader parity reference.

Three full-suite Nano configs are prepared, pinned to the published head, and validated against the current Gym schema and Bash syntax. Their combined plan has exactly 303 distinct task/seed pairs, using seeds 1001/1002/1003. They have not been submitted because GPU execution access is not currently available to this session.

Remaining merge/onboarding gates: maintainer-authorized target CI; a complete 303-attempt comparison with a consistent grader reference and retained configuration; remaining Nano P0/capability qualification; exact-leaf Super 3.5 references; Frontier Eval/SWQA score bands and Evergreen certification. The paired Factory work remains pending until Gym merges and its development pin can be replaced with a full main SHA. No full-suite parity or certification is claimed.

@copy-pr-bot

copy-pr-bot Bot commented Oct 4, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ehosseiniasl
ehosseiniasl marked this pull request as ready for review October 5, 2026 05:24
@ehosseiniasl ehosseiniasl self-assigned this Oct 5, 2026
@yaoyu-33 yaoyu-33 added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers complexity:high Cross-component or shared-contract change with a large review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer labels Oct 5, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 6, 2026
…claweval-native-eval

Signed-off-by: Ehsan Hosseini Asl <[email protected]>

# Conflicts:
#	nemo_gym/orchestration/api.py
#	nemo_gym/orchestration/executors/slurm_script.py
@ehosseiniasl
ehosseiniasl marked this pull request as draft October 14, 2026 04:48
@github-actions github-actions Bot removed the sla:triage-overdue Review assignment is over the one-business-day SLA label Oct 14, 2026

@yaoyu-33 yaoyu-33 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the detailed onboarding write-up. Wrapping the native ClawEval loop and graders so they report through Gym metrics is a nice approach, and the stdin credential handoff, digest checks and process-group cleanup on timeout are careful touches.

A few things to sort out before this is reviewable for merge:

  • The pushed head isn't the validated code. The description and Factory MR !2018 both refer to 4d342451…, which isn't on GitHub (in this repo or the fork). The capture proxy, masking of failed executions, null token details and the prepare fix aren't in 4317cc40. Could you push that commit so CI and the smoke evidence refer to the same SHA? Factory can then pin an NVIDIA-NeMo/Gym SHA instead of the personal fork.
  • Rebase: the branch is conflicting with main (nemo_gym/orchestration/api.py, executors/slurm_script.py).
  • CI: two existing unit tests fail at this head (inline comments 1 and 2). Copy-pr-bot vetting is still pending; it's best requested on the final head.
  • Baselining: the native 101×3 baseline is recorded, but the Gym side has only a 3-task smoke run on the unpublished commit. Could you add the full Gym mean score / Pass@1 / Pass@3 / Pass³ next to the native numbers once those jobs finish?
  • Scope question: the host-driver change (driver.container: null) is generic and touches a shared config contract. Would you consider splitting it into a small core PR with its docs and the Kubernetes guard? Also, could you point to the upstream Claw-Eval license backing license: MIT, given the harness comes from an internal fork?

Comment thread benchmarks/claweval/multimodal.yaml Resolved
Comment thread nemo_gym/orchestration/api.py Resolved
Comment thread benchmarks/claweval/README.md Resolved
@oyilmaz-nvidia

Copy link
Copy Markdown
Contributor

@ehosseiniasl Can you please address the reviews?

@ehosseiniasl

Copy link
Copy Markdown
Contributor Author

@yaoyu-33 @oyilmaz-nvidia The six inline findings are fixed and resolved on published head 7f38fce66c0cbb6ce2e4cf65b5412825f35b78a7. The branch includes the previously unpublished 4d342451... fixes, merges current main, and is mergeable. Factory now pins this fetchable NVIDIA-NeMo/Gym SHA.

The final head passed 805 tests, full pre-commit, and a fresh live Slurm/Pyxis smoke (job 7529038): native and Gym score 0.715, 1 healthy / 0 unhealthy / 0 unobserved, zero model-call errors, matching token totals, and standard gym-p0/v1 fulfilled including sandbox evidence. Fern validation completed with zero errors and one warning. Both PR descriptions now include the evidence and correctly mark the older full run as 298/303 valid attempts, with no full Pass@3/Pass³ claim.

For the scope question, I kept host-driver support here because native ClawEval needs to launch Pyxis scheduler steps from the allocated host; Slurm-only validation, mount checks, the Kubernetes regression and Fern docs bound the shared contract change. The README now links the upstream MIT license, retained by the supplied fork.

Please vet this published head for copy-pr-bot and the normal target CI. Full Nano parity, remaining Nano P0/capability qualification, the post-merge Factory main-SHA pin, and SWQA/Evergreen certification remain draft gates.

@ehosseiniasl
ehosseiniasl marked this pull request as ready for review November 9, 2026 18:48
Merge current main while retaining provider extension forwarding, task schemas, exact trial expansion and masked execution failures. Use private uv for host bootstrap and keep resumable admission checks on the host as well.

Signed-off-by: Ehsan Hosseini Asl <[email protected]>
@ehosseiniasl
ehosseiniasl marked this pull request as draft November 9, 2026 19:17
@ehosseiniasl

Copy link
Copy Markdown
Contributor Author

@yaoyu-33 @oyilmaz-nvidia Follow-up to the review:

  • Published code and rebase: the tested changes are pushed at 1900699b8683175670b98781d8497d155b547fd4, including the previously unpublished fixes. The branch merges current main (acb67734cc37d201e1350395ae422a771582ac21) and is mergeable.
  • Inline findings: all six remain fixed and resolved: shared task schema, explicit Ray opt-out, one repetition layer with index validation, masked infrastructure failures, Slurm-only host execution with Kubernetes validation/docs, and an enduring README validation protocol. The update also reconciles the current Gym public APIs/model-capture refactor and fixes host execution for resumable admission checks.
  • Validation/CI: 72 ClawEval, 357 orchestration, and 1,713 core/schema/import tests passed (one orchestration skip). Full pre-commit passed on both branches; Fern has zero errors and one warning. GitHub lint, copyright, secrets and DCO checks pass. A fresh real-model smoke on the published SHA returned matching Gym/native reward 0.715, healthy evidence and standard P0 fulfilled, including the sandbox check. Please vet 1900699b8683175670b98781d8497d155b547fd4 for copy-pr-bot and normal target test CI.
  • Baseline request remains incomplete: the historical Gym run has 298/303 valid attempts; full Pass@3/Pass³ are not claimed. A provenance audit found two first-trial video results in the historical native reference that used earlier regraders. The current 101 task definitions/Python files match the later baseline snapshot. Three pinned launch configs now validate against the current schema/Bash renderer and plan exactly 303 distinct task/seed pairs; they await GPU execution access. A new complete comparison needs a consistent grader reference.
  • Scope and license: generic host-driver support is split into #4878, also updated against main at 59f0654fd5e9e768761f3714dae08f2d1c87d7f4. The upstream Claw-Eval MIT license backs the metadata.

The PR description now reflects the current head, validation and outstanding gates. I have returned #3997 to draft while full baselining and target CI remain incomplete.

@ehosseiniasl
ehosseiniasl marked this pull request as ready for review November 9, 2026 19:28

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers complexity:high Cross-component or shared-contract change with a large review surface feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants