Skip to content

feat(video-mcqa): add the agentic config of a question set for training - #6628

Merged
yaoyu-33 merged 1 commit into
NVIDIA-NeMo:mainfrom
cg1177:guoc/video-mcqa-agentic-config
Nov 23, 2026
Merged

yaoyu-33 merged 1 commit into
NVIDIA-NeMo:mainfrom
cg1177:guoc/video-mcqa-agentic-config

Conversation

@cg1177

@cg1177 cg1177 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds resources_servers/video_mcqa/configs/video_mcqa_agentic.yaml, the agentic setting of the shared video_mcqa
resources server for a question set (README "Question sets"), for example a training set. Until now the agentic setting
had configs only for the three benchmarks (#6315), which are for evaluation and whose servers refuse a question set, so
agentic training on a question set needed a config written by hand.

The config is the benchmarks' agentic wiring (videomme_v1_agentic.yaml) with the shared server's names:

  • the stock opencode_agent (OpenCode 1.17.11, the video tools plugin, compaction off, context_window 262,144 and
    max_output_tokens 32,768 per call) through a single_agent_turn_legacy Environment Server;
  • the resources server lends each episode an OpenSandbox sandbox that holds the row's video (image built from
    sandbox_image/Dockerfile, model_only network);
  • the cohort's answer policy grades the final answer (boxed_only_v1 by default); the config names no judge model;
  • rows name the agent video_mcqa_agentic_opencode.

README:

  • New "Training with OpenCode" section: the NeMo RL settings, the sandbox image, the limits the config sets for the
    trainer (sequence length, generation limit, image limit, rollout timeout) and the DSS datasets of our training rows.
  • "Seeding": uploads stream from disk since feat(opencode): per-row sandbox inputs, model id, streamed uploads #5904, so the old 1.5 GiB note is gone. The section now says that the
    provider's connection.request_timeout_s (300 s) bounds each upload, gives our timings, and says when to raise it.

Tests: the composed-config test now also covers the new config. A new test builds the server from the config on an
agentic question set and grades a row by its boxed letter, with no judge call, and checks that a cohort that needs a
judge is refused at start.

No code changes. This PR does not touch vllm_model, opencode_agent, the sandbox package or other shared files.

Issue: none; follow-up to #6315.

Validation

On the final diff (head b4bf23a2c1561b43fca5966989764501baf3822d, on main 591731a0b):

  • ng_test +entrypoint=resources_servers/video_mcqa +should_validate_data=true: 448 passed, 122 subtests passed, data
    validated.
  • Core unit tests as CI runs them (scripts/ci/core_unit_tests.sh i 4 for i = 0..3): 6,371 / 5,329 / 7,467 / 5,163
    passed, 0 failed. Sandbox tests (pytest -m sandbox, CI's flags): 1,895 passed. The 6 errors are all
    tests/unit_tests/sandbox/test_bwrap_integration.py, which cannot create user namespaces on that machine (AppArmor);
    main errs the same there. scripts/ci/combine_core_coverage.py: 95.07% (87,044 statements, 4,287 missed), the same
    as main 591731a0b on the same machine. The PR adds no core code or core tests.
  • pre-commit run --all-files: passed, no files changed (the guardwords hook skipped itself: its private catalog
    is not readable from that machine). scripts/component_locks.py: 331 projects checked, 0 failed. detect-secrets on
    the 3 changed files: clean.
  • tests/unit_tests/benchmarks/test_video_mcqa_task_data.py and tests/unit_tests/config/test_global_config.py
    (which loads every repository config, the new one included): 270 passed.
  • Changing the config to turn compaction on, to bind another agent, or to name a judge model makes the new tests fail.

Rollouts

The config's settings were run as a training smoke test on our cluster. That run's Gym config had the same values;
only the comments and the description text differ.

Uploads: in another training run, 16 episodes uploaded the same 3.5 GiB video at the same time, each in at most 251 s
including the extraction. That run's Gym tree has the same upload path as main (upload_path, _upload_and_extract,
the provider's upload_file).

Compatibility and benchmark impact

None. The change adds a config and documentation and extends tests. The benchmark configs and their results are
unchanged.

Checklist

  • I have read the contributing guidelines.
  • The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs.
  • Tests added or updated and pass locally.
  • Documentation added or updated.
  • Pre-commit checks pass locally (pre-commit run --all-files).
  • New source files include the required Apache-2.0 SPDX header.
  • All commits have DCO sign-off (git commit -s).

Generated with Claude Code

configs/video_mcqa_agentic.yaml wires the benchmarks' agentic setup on
the shared video_mcqa server for a question-set cohort: the stock
opencode_agent (OpenCode 1.17.11, video tools, compaction off, 262,144
tokens of context and 32,768 output tokens per call) through a
single_agent_turn_legacy Environment Server, with the resources server
lending each episode an OpenSandbox sandbox that holds the row's video.
The cohort's answer policy grades the final answer (boxed_only_v1 by
default); the config names no judge model. Rows name the agent
video_mcqa_agentic_opencode.

The README gains "Training with OpenCode": the NeMo RL settings, the
sandbox image, the limits the config sets for the trainer and the DSS
datasets of our training rows. The "Seeding" section now says that
uploads stream from disk (NVIDIA-NeMo#5904) and that the provider's
request_timeout_s bounds each upload, with the timings of 16 concurrent
3.5 GiB uploads.

The composed-config test covers the new config, and a new test starts
the server from it on an agentic question set and grades a row by its
boxed letter without a judge.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Guo Chen <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 22, 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.

@cg1177

cg1177 commented Nov 22, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test b4bf23a

@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 22, 2026 18:16
@svcnvidia-nemo-ci svcnvidia-nemo-ci added risk:mid Autobot PR risk: mid feature New capabilities, enhancements, or enablement work area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer labels Nov 22, 2026

@svcnvidia-nemo-ci svcnvidia-nemo-ci 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.

SHIP

LGTM — no concerns found.

Reviewed all three changed files and traced the configuration through question-set validation, boxed-answer grading, OpenCode sessions, Environment Server routing, sandbox seeding and streamed uploads. The new tests cover configuration composition, correct and incorrect rewards without a judge, and startup rejection for a judge-dependent policy.

CI on b4bf23a2: all four core-test shards, sandbox tests, changed-server tests, combined coverage, lint and component-lock checks passed. The video MCQA suite reported 447 passed, 122 subtests passed and one Node-dependent plugin test skipped. Both new configuration cases passed.

Local evidence: a shell differential on the Ubuntu 24.04 bootstrap workstation confirmed that all 76 operational YAML lines match the existing benchmark configuration after server-name substitution. I did not repeat CI suites or run a live rollout: implementation paths are unchanged, and CI exercised the new composition and grading paths. The representative training rollout evidence is author-reported in the PR description, not independently reproduced.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@yaoyu-33
yaoyu-33 requested a review from Glorf November 22, 2026 19:38

@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 question-set preset against the existing VideoMME agentic configuration and traced final-answer grading. The new tests confirm correct and incorrect boxed answers without a judge call, and reject a judge-dependent cohort at startup.

All 13 config and plugin tests passed on the reviewed commit on the workstation, including the Node media-budget test. Required source CI passed. The author also reports a 192-episode GRPO smoke using equivalent settings on an earlier Gym revision.

Minor README correction for a follow-up: connection.request_timeout_s governs the video upload. Sandbox creation uses its own create.request_timeout_s when configured.

@yaoyu-33 yaoyu-33 added ready-to-merge PR is approved, current, and waiting for final CI or merge and removed needs-review PR is ready for code review and waiting on a reviewer labels Nov 23, 2026
@yaoyu-33
yaoyu-33 added this pull request to the merge queue Nov 23, 2026
@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/45206402355

Merged via the queue into NVIDIA-NeMo:main with commit 4556c2e Nov 23, 2026
67 checks passed
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 feature New capabilities, enhancements, or enablement work ready-to-merge PR is approved, current, and waiting for final CI or merge risk:mid Autobot PR risk: mid

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants