Repository navigation
feat(video-mcqa): add the agentic config of a question set for training - #6628
Conversation
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]>
|
/ok to test b4bf23a |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
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.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/45206402355 |
What does this PR do?
Adds
resources_servers/video_mcqa/configs/video_mcqa_agentic.yaml, the agentic setting of the sharedvideo_mcqaresources 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:opencode_agent(OpenCode 1.17.11, the video tools plugin, compaction off,context_window262,144 andmax_output_tokens32,768 per call) through asingle_agent_turn_legacyEnvironment Server;sandbox_image/Dockerfile,model_onlynetwork);boxed_only_v1by default); the config names no judge model;video_mcqa_agentic_opencode.README:
trainer (sequence length, generation limit, image limit, rollout timeout) and the DSS datasets of our training rows.
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 main591731a0b):ng_test +entrypoint=resources_servers/video_mcqa +should_validate_data=true: 448 passed, 122 subtests passed, datavalidated.
scripts/ci/core_unit_tests.sh i 4for i = 0..3): 6,371 / 5,329 / 7,467 / 5,163passed, 0 failed. Sandbox tests (
pytest -m sandbox, CI's flags): 1,895 passed. The 6 errors are alltests/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 sameas main
591731a0bon 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 catalogis not readable from that machine).
scripts/component_locks.py: 331 projects checked, 0 failed. detect-secrets onthe 3 changed files: clean.
tests/unit_tests/benchmarks/test_video_mcqa_task_data.pyandtests/unit_tests/config/test_global_config.py(which loads every repository config, the new one included): 270 passed.
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.
b069f414e) with Gym main77197ce55,unpatched. OpenSandbox sandboxes from an image built from
sandbox_image/Dockerfile.the upload.
context.
boxed_only_v1grade of the final answer, re-graded with the server'sgrade_answer.77197ce55and main591731a0b,video_mcqa,vllm_model,single_agent_turn_legacyand the sandboxpackage are unchanged.
opencode_agentgained checkpointing (feat(opencode): pause at checkpoints and resume after a crash #5268, feat(swe): checkpoint the episode sessions of the repository-task servers #5331) and Harbor-style opt-ins (feat(agents): Pi, OpenCode and Claude Code opt-ins for Harbor-style sandbox runs #5458), alloff by default.
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
pre-commit run --all-files).git commit -s).Generated with Claude Code