Skip to content

feat(opencode_multimodal_benchmarks): add 4 multimodal benchmarks with opencode - #5135

Merged
cmunley1 merged 95 commits into
NVIDIA-NeMo:mainfrom
katerynaCh:kchumachenko/opencode-multimodal-benchmarks
Nov 13, 2026
Merged

cmunley1 merged 95 commits into
NVIDIA-NeMo:mainfrom
katerynaCh:kchumachenko/opencode-multimodal-benchmarks

Conversation

@katerynaCh

@katerynaCh katerynaCh commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds dataset preparation, verification, reporting, and configurations for VStar, HRBench8K, VTCBench, and ZeroBench, using Gym's existing opencode_agent and single_agent_turn.

No new agent class or custom execution path is introduced. Training and evaluation reuse shared sessions, media staging, and sandbox-provider network enforcement.

  • Implements benchmark-specific scoring: MCQ answer extraction with judge fallback, VTCBench rule matching with judge fallback, and ZeroBench exact matching.
  • Adds optional tool-use rewards owned by the benchmark Resources server. Auxiliary tool rewards are disabled for benchmark evaluation.
  • Provides thin adapters under resources_servers/opencode_multimodal_benchmarks/ that reuse existing math, MCQA, and string-match graders for training.
  • Supports mixed training datasets through per-sample environment routing. Predefined profiles select the grader, network policy, tool permissions, and reward settings.
  • Preserves the original response and records correctness and tool-reward components separately. The Resources server records the final shaped grading result through Gym's existing interfaces.

Shared-code scope

The only shared runtime additions are opt-in execution-evidence forwarding:

  • single_agent_turn.forward_agent_evidence, default false, controls forwarding ng_trajectory and ng_agent_observations to /verify.
  • The separate reverification configuration has the same flag, also default false, for forwarding saved evidence when recomputing execution-dependent rewards.

Neither flag changes evidence saving. Existing workflows retain their verifier payload behavior unless they enable forwarding.

This PR does not change shared judge retries, token capture, grading provenance, recovery classification, or the stock OpenCode agent. Planned-repeat inventory accounting is deferred to a follow-up. Benchmark-local checks for missing samples, masked results, and duplicate measurements remain; metrics do not certify that every requested repeat arrived.

Completed evaluation

An earlier revision completed the Qwen evaluation campaign across all four benchmarks, including recovery of failed attempts:

Benchmark Completed attempts Score
VStar 191/191 92.67% accuracy
HRBench8K 800/800 91.13% accuracy
VTCBench 680/680 61.32% accuracy
ZeroBench 500/500 — 100 tasks × 5 repeats 38.00% pass@5

Validation

Current head: cdc828124.

  • 1,731 tests passed across the relevant suites: 1,371 reverification, single-agent environment, and public-API tests; 38 core grading-health tests with the optional math dependency unavailable; and 322 benchmark component tests.
  • Math grader recovery tests run in the benchmark component suite, whose dependencies include math-verify, rather than requiring it in core CI.
  • Tests cover default-off and enabled evidence forwarding, final tool-shaped grading results, and judge-backed math grading through the existing recovery checks.
  • Available pre-commit run --all-files checks passed. The private guardword catalog was unavailable locally.
  • New commits include DCO sign-offs.

Earlier remote checks passed for 19ad12443 in workflow run 43033206698. Earlier live OpenCode/OpenSandbox checks exercised images, tool execution, final-answer grading, optional tool rewards, and session cleanup. Those checks are not claimed as a full CI or live-training pass for the current head.

Compatibility and provenance

Models, judge endpoints, sandbox images, and credentials are supplied through deployment configuration. Network and tool policies are selected through predefined profiles before sandbox creation. Provider network restrictions apply to whole hosts, including all ports and paths.

Adapted evaluator sources, pinned revisions, affected files, license notices, and deliberate scoring deviations are documented in resources_servers/opencode_multimodal_benchmarks/third-party-notices.md and ATTRIBUTIONS.md.

The MCQ and VTCBench scoring changes are documented; results should not be presented as unchanged reproductions of upstream evaluators. Dataset content is obtained separately, subject to the publishers' access and redistribution terms.

Checklist

☑ I have read the contributing guidelines.
☑ The change is focused; unrelated edits are tracked separately.
☑ Tests added or updated and pass locally within the scope described above.
☑ Documentation added or updated.
☑ Available pre-commit checks pass locally (pre-commit run --all-files); private guardword catalog unavailable.
☑ New source files include the required Apache-2.0 SPDX header.
☑ All contribution commits have DCO sign-off.

@copy-pr-bot

copy-pr-bot Bot commented Oct 27, 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.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Oct 27, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work labels Oct 27, 2026
Register the multimodal harness and configure its conformance episodes.
Provision the pinned OpenCode runtime, image dependencies, and Bubblewrap
sandbox in CI so the checks run without manual environment setup.

Signed-off-by: Kateryna Chumachenko <[email protected]>
Provide an opt-in verifier entrypoint that removes trailing EOS markers before answer extraction. Preserve standard matching rules and the original response, with coverage for suffixes and case-sensitive comparisons.

Signed-off-by: Kateryna Chumachenko <[email protected]>
@katerynaCh
katerynaCh force-pushed the kchumachenko/opencode-multimodal-benchmarks branch from 8478252 to 039c584 Compare October 27, 2026 18:26
Preserve failed-rollout capture invalidation alongside typed upstream outcomes. Reuse upstream capture identity compatibility and adapt multimodal conformance to the endpoint map API.

Signed-off-by: Kateryna Chumachenko <[email protected]>
@katerynaCh katerynaCh changed the title Kchumachenko/opencode multimodal benchmarks kchumachenko/opencode multimodal benchmarks Nov 4, 2026
@katerynaCh
katerynaCh marked this pull request as ready for review November 4, 2026 12:02
@katerynaCh
katerynaCh requested a review from a team as a code owner November 4, 2026 12:02
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Nov 4, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Nov 5, 2026
Adapt multimodal component dependency locks and judge failure retries to upstream contracts. Preserve the training capture and failed-rollout handling.

Signed-off-by: Kateryna Chumachenko <[email protected]>
…-onboarding-compliance

Signed-off-by: Kateryna Chumachenko <[email protected]>
…ce command denies

Signed-off-by: Kateryna Chumachenko <[email protected]>
Reuse the shared OpenSandbox policy helper while retaining namespace enforcement for local and Enroot execution. Translate multimodal network modes without changing the shared agent defaults, and preserve both harness conformance registrations.

Signed-off-by: Kateryna Chumachenko <[email protected]>
@katerynaCh

Copy link
Copy Markdown
Contributor Author

/ok to test 1cad010

@katerynaCh

Copy link
Copy Markdown
Contributor Author

/ok to test 593bc11

@katerynaCh

Copy link
Copy Markdown
Contributor Author

/ok to test 86a9cc3

@katerynaCh

Copy link
Copy Markdown
Contributor Author

/ok to test 6828748

@katerynaCh

Copy link
Copy Markdown
Contributor Author

/ok to test 3311f86

yaoyu-33
yaoyu-33 previously approved these changes Nov 12, 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.

Resolved the conflict by merging main at 33a4989. The README retains opt-in evidence forwarding and main's performance-only aggregation behavior when verification is skipped. Rechecked the latest shared-code and training-adapter changes with independent review; no blocking issue found.

Validated the exact merged source tree on the workstation with Python 3.13.14:

  • 864 tests passed across single_agent_turn, rollout reverification, environment grading health, visual catalog composition, multimodal benchmarks, and the three tool-reward adapters.
  • pre-commit run --all-files passed; source remained unchanged.
  • Merge commit includes DCO sign-off.

Fresh CI is pending. This conflict resolution does not introduce new runtime behavior, so no new model rollout was run; historical benchmark scores and the previously noted current-scorer profiling gap remain revision-scoped. Non-blocking documentation follow-up: the benchmark README's planned-repeat inventory paragraph should match the inventory work explicitly deferred in the PR description.

@yaoyu-33

Copy link
Copy Markdown
Contributor

/ok to test 6021d28

katerynaCh and others added 2 commits November 12, 2026 21:06
…ontrols-20261112

test(eval): cover saved artifact and transport failure guards
Merge main 330c461 into source 9763612 without rewriting published history. Retain all 1,278 baseline records and parent settings, and close the malformed HealthBench JSON entry inherited from main. Preserve the automatic code, documentation and test merges, including checkpoint ABI and default-off evidence forwarding.

Signed-off-by: Martyna Patelka <[email protected]>
@katerynaCh

Copy link
Copy Markdown
Contributor Author

/ok to test fe0181c

@yaoyu-33

Copy link
Copy Markdown
Contributor

/ok to test 8f60ff1

@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.

Reviewed the benchmark verifiers, tool-reward adapters, opt-in execution-evidence forwarding, and the final main merge, with independent static review. No blocking issue found. The secrets-baseline conflict resolution preserves findings from both parents; imported model fixes match main. On the exact merged source, workstation validation passed 836 selected tests and pre-commit run --all-files; the worktree remained clean. Current CI is still running. Current-scorer benchmark profiling remains a documented limitation, and no new model rollout was run for this baseline-only conflict resolution.

@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43395357790

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 ready-to-merge PR is approved, current, and waiting for final CI or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants