Repository navigation
feat(video-qa-rubric): MM-Lifelong v1.1 benchmarks, with reference-answer level grading and video media preloaded in the sandbox image - #6460
Conversation
The four video servers and their tests imported the pre-0.8 module paths (nemo_gym.base_resources_server, config_types, global_config, openai_utils, server_utils), which still import with a deprecation warning. They now import each name from its package's public API, as scripts/migrate_imports.py writes it; `migrate_imports.py --check` reports nothing for these folders. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
… Video-MME and LVBench Add answer_policy llm_extraction_v1 to the shared video MCQA scoring. A judge model (any OpenAI-compatible chat model behind a Gym model server, called through call_judge on /v1/chat/completions) reads which option a final answer gives; the verifier scores that option against the gold label. The judge sees the prompt's text (no media) and the final answer (no reasoning), never the gold label. - A "none" reading is the new outcome no_choice (a measured zero); an empty final answer stays no_answer and is not sent. - A failed judge call or a reply that names no option raises a judge failure: Gym's judge failsafe masks the row and keeps it with its answer in the failures file, so the frozen cohort counts the task as missing until it is judged again. - The judged grading, verify response included, runs in observe_llm_judge_grading, so Gym binds the graded response and reward to the judge's reply. - The cohort declares the policy; a server whose cohort uses it refuses to start without judge_model_server. The rule policies stay the default and never call a judge. - prepare_single_turn and prepare.py take a prompt style: boxed (default) or the benchmark's bare-letter prompt (videomme_v2, videomme_v1, lvbench). - New configs <benchmark>_single_turn_llm_extraction.yaml for the three benchmarks: the single-turn config plus an openai_model judge (judge_base_url, judge_api_key, judge_model_name). Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Adds resources_servers/video_mcqa/sandbox_image: a Dockerfile and the video tools it installs in /opt/video-mcqa. - video_tools.mjs: an OpenCode 1.17.11 plugin with watch_video and view_image. It runs `python3 -I -m video_tools.cli` once per call and returns the images as tool attachments. It also caps the tool images that one episode sends (400 MiB of base64 by default): from the result that would pass the cap on, results show a notice in place of their images, the same in every request. The tools take plain JSON Schema arguments, so the plugin imports only Node's standard library. - video_tools: watch_video samples the center of each of num_frames equal bins of [start, end), takes the latest source frame not after each sampling time, resizes by area to the requested long edge rounded down to the model's grid (patch_size / downsample_ratio, 28 px by default) and returns JPEG frames (quality 95, 4:4:4) with "This is a video:" and one "Frame i sampled at t seconds:" line per frame. Per-frame and per-call pixel caps refuse a request instead of shrinking it. view_image returns an image file unchanged. - Dockerfile: OpenCode 1.17.11 and its plugin dependencies with the pins of visual_coding_opencode, the static FFmpeg 7.0.2 build pinned by SHA-256, Python 3.13 with NumPy 2.4.6, Pillow 12.3.0 and Pydantic 2.13.5. Tests cover the sampling, rounding, limits and text, the decode (seek against the sequential reference), the program's JSON replies, and the plugin under Node with a stand-in program. video_mcqa's environment gains NumPy and Pillow for these tests, and Gym's sandbox extra for the lending that follows. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
…ncode_agent Adds an agentic config to each of the three benchmarks. The stock opencode_agent runs each question through a single_agent_turn_legacy Environment Server, in a sandbox that the benchmark's resources server lends the episode, as visual_coding_opencode does. The sandbox image is video_mcqa/sandbox_image, and OpenCode loads its video tools plugin from there. video_mcqa/sandbox.py lends the sandbox for the video_mcqa and videomme_v2 servers (the videomme_v1 and lvbench servers inherit it). At each seed it: - refuses (422) a row whose video_binding.source is not a regular file under the configured video_roots; - starts the sandbox with the video tools' configuration (tools.json, from the server's video_tools settings) and two checksum lists; - uploads the video with nemo_gym.sandbox.upload_path; - runs one command in the sandbox: the image's video tools must have this repository's SHA-256 and the video the row's SHA-256 (422 otherwise), then the video becomes read-only and the tools check their configuration and FFmpeg. A command result with an error_type or the -1 sentinel, and any other failure, stops the sandbox and raises, so the Environment Server runs the episode again. The episode's close stops the sandbox. Grading never reads the sandbox. The verifiers read the stock agent's outcome: in the agentic setting a failed or incomplete response that reaches verify is an execution_failure scored 0, from the response's own status, so a replayed row scores the same. This replaces the video_execution_failure metadata key, which only the removed opencode_video_agent set. Single-turn scoring is unchanged. prepare.py names the video at --sandbox-root/sandbox_path (default /testbed) in agentic prompts. The three servers gain agentic example rows and cohorts, and their environments Gym's sandbox extra. READMEs describe the image, the tools, seeding, the single-upload size limit of the providers and the thinking switch. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
One rollout per agentic example row of the VideoMME-v2, VideoMME-v1 and LVBench servers, from nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16 on one GPU (vLLM 0.32.0rc1.dev190) through the stock opencode_agent, with OpenSandbox sandboxes from the video MCQA sandbox image. The shared README gives the serving flags, the commands and the outcomes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
The Video-MME-v2 annotation gives every question its own level; the first three questions of a logic group can have a level other than the group's last question. The official scorer counts per-level accuracy by each question's own level and scores a group under the level of its last question. validate_metric_cohort no longer requires every task level to equal its group's level. When a cohort lists task_levels, each group's level must be the level of its last question, /L<n>/raw_acc counts questions by their task level, /L<n>/nonlinear_score counts groups by the group level, and the verifier checks a result's level against its task level, so rows that carry their own question level are scored instead of refused. A cohort without task_levels behaves as before: each question takes its group's level. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…awtext, ripgrep and ImageMagick in the image - view_image and watch_video also read regular files under video_tools.scratch_roots, by default /tmp/opencode: OpenCode's bash tool keeps temporary files there, such as frames or contact sheets the model made, and the tools refused them. A relative path still starts at the workspace, a symlink that leads out of these directories is refused, and the text names such a file by its absolute path. The tool descriptions are unchanged. - The image's FFmpeg 7.0.2 is now the static build of mwader/static-ffmpeg, pinned by image digest and by the binaries' SHA-256. watch_video gets the same frames as with the previous 7.0.2 build (identical JPEG bytes on 50 requests over 7 videos); the new build also has libharfbuzz and fontconfig, so the model's drawtext works, with fontconfig and DejaVu for its default font. - ImageMagick for the model's montage and convert, with the URW fonts its labels default to, one thread (MAGICK_THREAD_LIMIT=1). - ripgrep stays (OpenCode's grep and glob run it offline). The build checks drawtext, ripgrep and montage. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
…ile change This reverts commit cc13a8f: view_image and watch_video read files under the workspace only, not OpenCode's /tmp/opencode; the image's FFmpeg 7.0.2 is the johnvansickle.com static build again, without drawtext; and the image has no ImageMagick. The tree is again the one of 2f336e9. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
…'s rubric A resources server for open-ended questions about a video, for RL training. The policy sees the video and the question; a judge model grades the final answer against the question's weighted-points rubric (criteria worth weight_points that add up to 100, and contradictions with a penalty and a score cap). The judge gets the question, the rubric and the final answer (no video, reasoning or reference answer) and returns a strict-JSON judgment; the server accepts it only when its points, applied contradictions and total add up, and the reward is the score / 100. The judge is any OpenAI-compatible chat model with JSON-schema structured output behind a judge ModelServerRef (judge_base_url, judge_api_key, judge_model_name), called through call_judge. A rejected judgment, a timeout and a 408/429/5xx reply are tried again up to judge_max_attempts; when every attempt fails, Gym's judge failsafe masks the row and keeps the answer for judge-only recovery. A failed model call is a masked infrastructure failure; a single-turn tool call or a failed agent run is an execution failure worth 0. empty_answer_reward (training only) sets the reward of an attempt that produced output but no final answer; an empty response stays 0, as Gym's agents require for execution_failure_reward_zero. Single-turn config (simple_agent, single_agent_turn_legacy) with five invented example rows on video_mcqa's synthetic clips, task_data schema, prepare_single_turn, README with the RL setup, tests with a scripted judge, and the component lock. video_mcqa's final_answer_text (the answer after any reasoning block) is now public so this server shares it. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…eo-frames Brings in NVIDIA-NeMo#6290: the questions of one Video-MME v2 group keep their own levels, which the cohort of the agentic Video-MME v2 benchmark lists. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ames Brings in NVIDIA-NeMo#6238: a judge model can read the chosen option (llm_extraction_v1), which the agentic benchmarks use with the benchmarks' own letter prompts. Conflicts in resources_servers/video_mcqa/app.py and videomme_v2/app.py: verify keeps this branch's response_failure (an agentic outcome read from the response's own status) and the lent-sandbox server and config bases, and takes NVIDIA-NeMo#6238's AnswerJudgeConfig and grade_final_answer. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
<benchmark>_agentic_llm_extraction.yaml, listed after <benchmark>_agentic.yaml, gives the agentic resources server the judge model of llm_extraction_v1. The judge server listens on 127.0.0.1: the lent sandbox may reach every port of the policy model server's host and must not reach a judge. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
prepare_agentic and prepare.py --prompt now write an agentic row in a benchmark's own letter wording: a first line that names the video in the sandbox (Video: /testbed/videos/<file>), then the single-turn letter prompt. Read its answers with llm_extraction_v1. The boxed prompt stays the default. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
One rollout per example row from nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16 on one GPU (vLLM 0.32.0rc1.dev190+g3f1bcfd82, the model card's video settings, default sampling), the same served model also judging for this example only. Three answers earn full points, one earns 60 of 100 (the direction but not the square), and on the counter the model runs out of output tokens (empty_answer, 0); the bar's first judgment was rejected by the arithmetic check and the second accepted. example_metrics.json from gym dataset collate (example_validation). The README records the commands. A failed judge attempt is now logged with its reason, never the answer. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…uthors' annotations benchmarks/videomme_v2_agentic and benchmarks/videomme_v1_agentic run the agentic configs of the videomme_v2 and videomme_v1 resources servers with judge-read answers. prepare.py downloads the authors' annotation at a pinned revision and checks its SHA-256 (VIDEOMME_V2_PARQUET / VIDEOMME_V1_PARQUET name a local copy), then binds each question to its video by the SHA-256 that the source directory's FILES.sha256 lists, reading no video; the resources server checks that hash in the sandbox. Rows ask in the benchmark's letter wording after a line that names the video in the sandbox, and a judge model (gpt-6.1-sol at max reasoning effort by default) reads the chosen option. Video-MME v2 rows keep each question's own level and the cohort groups the four questions of each video under the level of the fourth, which the videomme_v2 server accepts with the per-question levels merged from NVIDIA-NeMo#6290. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The policy's model server reads the video URL: http(s) and data URLs, or a file:// URL the server may read (vLLM's --allowed-local-media-path). A vLLM-served judge works through the config's openai_model server, as in the example rollouts. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The server grades open-ended questions about a video and builds on video_mcqa (its row types, final-answer reading and example clips), so its name now says so. Renamed: the folder resources_servers/ video_qa_rubric and configs/video_qa_rubric.yaml with the keys video_qa_rubric, video_qa_rubric_judge, video_qa_rubric_single_turn and video_qa_rubric_single_turn_environment; the VideoQARubric* classes; the project gym-resources-servers-video-qa-rubric (uv.lock differs only in that name); the failure kinds video_qa_rubric:*; the example task IDs video_qa_rubric:example-N; the rows in README.md and the environment list. The example rollouts carry the renamed task IDs, agent and environment names; the model's input and output, the judgments and the rewards are unchanged. What the judge receives is unchanged too: the system and user messages and the structured output's schema and its name. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
nemo_gym.config_types is the path from before 0.8.0; it still imports, with a deprecation warning, until 0.10.0. Server tests import public names from the package's public API, as scripts/migrate_imports.py writes them (its --check is now clean for this server). Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in the video_qa_rubric resources server (open-ended video questions graded against each question's rubric), whose PR comes before this one. Its failure check still reads the metadata key that this branch removed from video_mcqa; the next commit reads failed runs from the response's own status instead, as video_mcqa does. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, as video_mcqa does video_qa_rubric decided an agent run had failed from the video_execution_failure response metadata key, which only the removed opencode_video_agent set; this branch removed the key from video_mcqa, so video_qa_rubric could not even be imported here. It now uses video_mcqa's response_failure, like the Video-MME v2 server: in the agentic setting a failed or incomplete response that reaches verify is an execution_failure scored 0, read from the response's own status, so a replayed row scores the same. In the single-turn setting a failed model call stays a masked infrastructure_failure and a tool call an execution_failure; only the failure reasons now use video_mcqa's wording. The failed-run test covers failed and incomplete runs, and a new test checks that a failed model call is masked only in the single-turn setting. The README's outcome table says the same. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
… frame rows, empty-answer reward Make video_mcqa the shared base that the video multiple-choice benchmarks and other question sets fill with data and configuration. - Each row's verifier_metadata keeps the question as asked: question (its text) and options (the option texts in label order). VerifierMetadata and the task-data schemas require both, and prepare_single_turn, prepare_agentic and prepare.py write them. A row without them is refused: rows prepared before this change are prepared again, and nothing falls back to the request. - The llm_extraction_v1 judge builds its prompt from those two fields and the final answer only. It no longer reads the text of the model's request (scoring.prompt_text is gone), so the video, its frames and anything else in the prompt never reach it. videomme_v2 uses the same judge path. - A cohort may be a question set instead of a benchmark (question_set.py, QuestionSetCohort): two to 26 options, task IDs outside the benchmarks' scopes, no level or group, accuracy under the set's name. A training set runs on the shared verifier this way. The VideoMME-v1 and LVBench servers refuse such a cohort. - prepare_single_turn(..., frames=[(label, image_url), ...]) and task.video_parts send a video as labelled frames (input_image parts) instead of one input_video part. - empty_answer_reward (unset by default, which scores 0): the reward of an attempt that produced output but no final answer, for example a training penalty. Accuracy still counts the attempt as no_answer. - The shared rows take any number of options; VideoMME-v1 and LVBench check their four choices in their own task_data.py. - configs/video_mcqa_single_turn_llm_extraction.yaml: the shared verifier with the answer judge. The committed example rows and rollouts gain the two fields; nothing else in them changes. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in NVIDIA-NeMo#6314's head, which only merged main into it. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ames Brings in NVIDIA-NeMo#6238's new head: video_mcqa as the shared base. Each row keeps its question and options for the answer judge, a cohort may be a question set, a video may come as labelled frames, and empty_answer_reward is optional. Conflicts: the video_mcqa/app.py docstring and imports (both sides kept: the question-set cohort and this branch's lent sandbox); prepare_agentic keeps this branch's letter prompts and writes the row's metadata the shared way; the task_data.py docstring; the root README rows (both sides' rows). Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ptions NVIDIA-NeMo#6238 makes every video_mcqa row keep the question as asked (question, and options in label order) in verifier_metadata. The agentic Video-MME v2, Video-MME and LVBench examples gain the two fields, rebuilt with prepare_agentic from the same questions; nothing else in the rows or in the recorded rollouts changes. The benchmark wrappers write them through prepare_agentic. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…de and the video tools configs/video_qa_rubric_agentic.yaml runs video_qa_rubric's open-ended questions agentically, with the agent, sandbox image, video tools and sandbox settings of the agentic Video-MME v2, Video-MME and LVBench configs: the stock opencode_agent through a single_agent_turn_legacy Environment Server, a sandbox per episode that holds the row's video, and the rubric judge on 127.0.0.1 (the sandbox may reach every port of the policy model's host). - The resources server and its config take video_mcqa's VideoSandboxServer bases: with sandbox_provider set, each agentic episode's seed lends a sandbox with the row's video, checked by SHA-256; without it nothing changes. The sandbox extra joins the server's dependencies (uv.lock regenerated). - task.prepare_agentic(task_id, question, rubric, video_path=...) builds an agentic row's user turn (the question and the video's path in the sandbox, never the rubric); the row adds video_binding, which the task-data schema now declares. - data/example_agentic.jsonl: the five example questions and rubrics, each clip bound by path instead of inlined. - Tests: rows, bindings, the committed examples, the config against the agentic Video-MME v2 config, and the lent sandbox on the local provider. Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Guo Chen <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
/ok to test 504e9b6 |
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
main's NVIDIA-NeMo#6528 upgraded every managed dependency lock. The four uv.lock files this branch also changed (lvbench, video_mcqa, videomme_v1, videomme_v2) take main's version here; a later commit relocks them for this branch's dependencies. Signed-off-by: Guo Chen <[email protected]>
Takes NVIDIA-NeMo#6314's current head (its main merge and component lock refresh). video_qa_rubric/uv.lock takes NVIDIA-NeMo#6314's refreshed lock here; this branch adds the sandbox extra to that server, so a later commit relocks it. Signed-off-by: Guo Chen <[email protected]>
… main Relocked with uv 0.13.4 on top of main's upgraded locks (NVIDIA-NeMo#6528): lvbench, video_mcqa, videomme_v1, videomme_v2 and video_qa_rubric. Each lock only gains the packages of this branch's dependencies (nemo-gym's sandbox extra, and pillow 12.3.0 in video_mcqa); python-dateutil is 2.9.0.post0 again, as in main's other locks with the sandbox extra. Signed-off-by: Guo Chen <[email protected]>
… stops main's NVIDIA-NeMo#6410 gives AsyncSandbox.stop a timeout_s keyword, and lending now passes it. The `stopped` fixture (also used by video_qa_rubric's agentic tests) wraps the real stop, so it takes and forwards the keyword, as main's other session tests do since NVIDIA-NeMo#6410. Signed-off-by: Guo Chen <[email protected]>
Signed-off-by: Guo Chen <[email protected]>
|
/ok to test 65a0395 |
…deo_mcqa server tests The tests import both benchmarks' prepare.py and, through them, the video_mcqa and videomme_v2 server modules, so in the core suite they added those modules to the core coverage measurement. The video_mcqa server tests, which cover those modules, now run them. The tests are unchanged. Signed-off-by: Guo Chen <[email protected]>
Signed-off-by: Guo Chen <[email protected]>
…qa_rubric server tests The tests import the benchmarks' prepare.py and the video_qa_rubric server modules, so in the core suite they added those modules to the core coverage measurement. The video_qa_rubric server tests, which cover those modules, now run them. The tests are unchanged; they keep their repository root at parents[3]. Signed-off-by: Guo Chen <[email protected]>
|
/ok to test 6e1db1d |
yaoyu-33
left a comment
There was a problem hiding this comment.
Reviewed MM-Lifelong task preparation, sandbox media staging, reference-based grading and aggregation. The image build now stages only verified catalog entries, including on the cross-filesystem copy path. The reported overall metric pools all 1,023 questions and keeps the equal-split mean separate.
On this revision, 234 focused workstation tests passed across the rubric suite and shared sandbox and task-data paths. Source CI passed. The author's earlier real-model runs covered 30 single-turn rows and three agentic rows, including frame delivery on the week split. Those runs establish pipeline behavior, not a full benchmark score.
Apply the reviewed MM-Lifelong changes on top of the squash merge of NVIDIA-NeMo#6315. Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test 40e01e5 |
yaoyu-33
left a comment
There was a problem hiding this comment.
Re-reviewed the merge of main after #6315 landed. Compared the resulting 32-file diff to the previously approved MM-Lifelong change. Every added and removed line matches, including the catalog-only media staging and pooled grading changes. The attribution file retains the unrelated entries already on main.
On the resulting tree, all 234 focused rubric, task-data and sandbox tests passed on the workstation, and full pre-commit passed under Python 3.13.14. The author's earlier real-model smoke remains the rollout evidence.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44928187798 |
Stacked on #6315 (and through it on #6314, #6238 and #6290). This branch starts from #6315's head at
9f9d396dfand has #6315's current head (0a563e6c79c117304de754f221d2e2e386225e60, which merges main and rewriteswatch_video's text) merged in, so until those land the diff also shows their changes. This PR's own changes are thetwo commits after
9f9d396df; once the four are merged, merging main again leaves only them.grading protocol to it and uses it for MM-Lifelong.
opencode_agent): its sandbox lending (video_mcqa/sandbox.py) gainsa mode for media that the sandbox image already holds, and the agentic benchmark uses feat(video): agentic Video-MME v2, Video-MME, LVBench and open-ended video QA on stock opencode_agent, with Video-MME v2 / Video-MME agentic benchmarks #6315's agent, tools and image.
What
MM-Lifelong (MIT annotations) asks open-ended questions about a
recorded day (one 23.6 h stream), week (52 h in 6,266 egocentric clips) and month (105.6 h in 23 livestreams). Its
v1.1 release grades each answer with its own grader: the question, a reference answer and a frozen per-question rubric
of level rules go to a judge, which returns an integer score from 0 to 5. This PR runs its 1,023 graded questions
(
month_val623,week_test200,day_test200) onvideo_qa_rubric, single turn and agentic, without a server oftheir own: the two generic additions below carry the dataset's protocol, and the benchmarks only add data and config.
video_qa_rubric(opt-in per row). A row'sverifier_metadata.gradingnames itsprotocol. Without it a row is graded by weighted points exactly as before (same request model, checks, judge
prompt, schema and arithmetic). A
reference_levelsrow carries areference_answerand a rubric that may be anyJSON object; the judge reads the question, the reference answer, the rubric (
json.dumps(rubric, ensure_ascii=False)) and the final answer through the server'sreference_levelssettings, which a question setsupplies in its config (system prompt, user template with
{question},{reference_answer},{rubric_json},{answer}, andmax_level). The reply must be exactly{"score": <0..max_level>, "reason": <text>}; anything elseis retried within
judge_max_attempts, and a judge that fails them all masks the row (judge_failed). Reward =level /
max_level. A server without the settings refuses such rows. Empty answers score 0 without a judge call, asin the weighted protocol.
subset; the metrics then addsubsets/<subset>/rubric_score,subsets/<subset>/countandmean_of_subsets/rubric_score(each subset weighing the same).video_mcqa/sandbox.py). MM-Lifelong's videos are 8.1 GiB (day), 95.7 GiB(week) and 85.3 GiB (month): uploading them for every episode is not feasible (about 79 TB per run, and the
sandbox disk is 30 GiB). An agentic row can instead name media its sandbox image holds:
preloaded_mediagives theimage's name in the server's
sandbox_preloaded_images(deployments map names to their own image references), theabsolute path and SHA-256 of the image's catalog of files, and host files to copy in. The seed starts the sandbox from
that image and uploads nothing; one command in the sandbox checks the video tools (as for uploaded videos), the
catalog's SHA-256 and every listed file's size (422 if any differs; a size check reads no video, so a 100 GB image is
checked in seconds), makes the copied files read-only and moves the catalog out of the model's media root. Each
image lends its own sandboxes; rows with an uploaded video are unchanged, and a server can serve both.
benchmarks/mm_lifelong_v1_1(single turn).prepare.pyreadsSHA256SUMS(its own SHA-256 pinned),manifest.jsonand the annotations of revisionefa197479b25fbcf4f7881f9218d703c57dfc9bb(downloading what ismissing) and checks them. The videos are not redistributed: the model sees each split through the release's 2 fps
JPEG frame cache, which the user downloads (110.5 GB; each shard read is checked against
SHA256SUMS), as one MP4 of256 frames at the centres of equal bins over the split's timeline (H.264 at 1 fps;
<split>.jsonlists each frame'scache index and timeline second), with the question as it is and no system prompt.
grading.yamlis the dataset'sgrader:
v1.1/grading/prompts.jsonwith two template fields renamed (a test rebuilds the file from it byte forbyte), the dataset's grader model
openai/openai/gpt-5.6-lunaon NVIDIA's inference API, no sampling settings, onecompletion. Each split is a subset, so the metrics give the dataset's split scores;
mean/rubric_score× 100 isthe overall of its
summarize_scores.py.benchmarks/mm_lifelong_v1_1_agentic. The same questions answered by feat(video): agentic Video-MME v2, Video-MME, LVBench and open-ended video QA on stock opencode_agent, with Video-MME v2 / Video-MME agentic benchmarks #6315's OpenCode setup in a sandbox whoseimage holds the split's original videos.
sandbox_image/build.pylists the split's files at the pinned revision withthe size and SHA-256 the Hub keeps (no download), checks the user's copy against them, measures each file's
duration as the dataset's agentic runner does (
ffprobe format=duration), writes the image's catalog and therunner's catalog that the model reads (
video_catalog.json: duration and the recording's place in time from therunner's
src/codex_video_timeline.jsonat the next revision,b8a87af), and builds the image on the video tools'image (one read-only layer per file or day folder). Rows pin both catalogs and ask with the runner's description of
the inputs (
VIDEO INPUTS, itsTIME COORDINATESnote,QUESTION). The config keeps feat(video): agentic Video-MME v2, Video-MME, LVBench and open-ended video QA on stock opencode_agent, with Video-MME v2 / Video-MME agentic benchmarks #6315's OpenCode settings(its own tools except
webfetch,shas the shell,doom_loop: ask), raises the first-index decode timeout to900 s for multi-hour recordings and the episode budget to 7,200 s of OpenCode.
Licensing
The annotations, grader and frame cache are MIT; the videos are third-party recordings whose copyrights remain with
their owners. Nothing of the dataset is committed: the annotations are downloaded at preparation time, the frames and
videos stay on the user's machine, and no image is published (each user builds them). Two short texts of the dataset
are retained (the grader's prompt and the runner's time-coordinates note), with the MIT notice in
benchmarks/mm_lifelong_v1_1/third-party-notices.mdand an entry inATTRIBUTIONS.md.Compatibility
video_qa_rubric: rows withoutgradingvalidate and grade as before; the verify response gainsrubric_level(null for weighted-points rows).
TaskDataaccepts the new optional fields.video_mcqa:VideoBindingis now a subclass ofFileBindingwith the same fields and checks; agentic rows maycarry
preloaded_mediainstead ofvideo_binding;sandbox_config.imagemay be unset when only preloaded imagesare used.
Validation (CPU; Python 3.13.14, uv 0.13.4)
At the head (
57bce67fe766e72bb9f3a856b6ee11f96317a7c2: #6315's head0a563e6c7merged intob7107864d, with noconflict; the diff of this PR's two commits is unchanged):
gym env test --resources-server <server> +should_validate_data=truewith FFmpeg 7.0.2 on PATH:video_qa_rubric108 passed,
video_mcqa432 passed, 122 subtests; both "successfully validated".tests/unit_tests/benchmarks/test_mm_lifelong_v1_1*.py: 20 passed with the prepare dependencies installed.gym env validate mm_lifelong_v1_1(1,023 prepared rows) andmm_lifelong_v1_1_agentic(1,023): pass. The coresuite was not rerun for this merge, which brings only feat(video): agentic Video-MME v2, Video-MME, LVBench and open-ended video QA on stock opencode_agent, with Video-MME v2 / Video-MME agentic benchmarks #6315's change to
video_mcqa's video tools.pre-commit run --all-files: pass, no changes.scripts/component_locks.py: 327 projects, 0 failed. CI'ssecrets-detector command on the changed files: exit 0.
sandbox_image/is unchanged; the video tools image offeat(video): agentic Video-MME v2, Video-MME, LVBench and open-ended video QA on stock opencode_agent, with Video-MME v2 / Video-MME agentic benchmarks #6315's head passes the seed check at this head, and images built on an earlier video tools image are refused, so
the split images are built again on the new one (
sandbox_image/build.py, unchanged).At
b7107864d7e57406c373e10bca3555beb478b3f2(#6315's44ba0b105merged intob3b6ae36c, with no conflict):gym env test --resources-server <server> +should_validate_data=truewith FFmpeg 7.0.2 on PATH:video_qa_rubric108 passed,
video_mcqa432 passed, 122 subtests (the 5 skipped atb3b6ae36cneed FFmpeg); both "successfullyvalidated".
tests/unit_tests/benchmarks/test_mm_lifelong_v1_1*.py: 20 passed with the prepare dependencies installed.scripts/ci/core_unit_tests.sh(unsharded, CI's flags): 23,421 passed, 116 skipped, 341 subtests; 2 SIGINTsubtests in
test_super_vllm_launcher.pyfailed because the run was started in the background with SIGINT ignored,and that file passes when rerun normally (52 passed).
gym env validate mm_lifelong_v1_1(1,023 prepared rows) andmm_lifelong_v1_1_agentic(1,023): pass.pre-commit run --all-files: pass, no changes.scripts/component_locks.py: 327 projects, 0 failed. CI'ssecrets-detector command on the changed files: exit 0. The sandbox image files are unchanged, and the video tools
image of feat(video): agentic Video-MME v2, Video-MME, LVBench and open-ended video QA on stock opencode_agent, with Video-MME v2 / Video-MME agentic benchmarks #6315 passes the seed check at this head.
At
b3b6ae36c78918bc5d67c46ca2312c9f058e806d(on #6315's9f9d396df):gym env test --resources-server <server> +should_validate_data=true:video_qa_rubric108 passed,video_mcqa427passed (5 skipped, 122 subtests); both "successfully validated".
tests/unit_tests/benchmarks/test_mm_lifelong_v1_1*.py: 20 passed with the prepare dependencies installed (13passed, 7 skipped without them, as in CI).
scripts/ci/core_unit_tests.sh(unsharded, CI's flags): 23,200 passed,116 skipped, 343 subtests, 0 failed.
gym env validate mm_lifelong_v1_1(1,023 prepared rows) andmm_lifelong_v1_1_agentic: pass.pre-commit runon the 32 changed files: pass.detect-secrets scanon them: no finding in this PR's lines (onein a test placeholder that feat(video-qa-rubric): open-ended video QA graded against each question's rubric #6314 adds,
"judge_api_key": "invented").grading.yamlrebuilds the dataset'sprompts.json(SHA-25670b29a3e…). For the 1,023 answers of a fullsingle-turn run graded earlier with the dataset's protocol, the judge requests built here equal those of the dataset's
grade_predictions.pybyte for byte for all 823 non-empty answers; the 200 empty answers score 0 here without a judgecall and were scored 0 by the grader. 30 of those answers (10 per split, every score level) re-graded through this
config with
gpt-5.6-luna: 28 got the same score, 29 within one level (31 judge calls, about $0.006).gym eval prepare --benchmark mm_lifelong_v1_1gives 1,023 rows and the three MP4s in97 s (all 132 shards checked); the day and month MP4s are byte-identical to ones made independently from the same
cache with the same sampling and encoder settings, the week MP4 has the same 256 frames (mean absolute pixel
difference 0.2 / 255 after re-encoding).
build.pybuilds a "month" image on the video toolsimage built from this head's
sandbox_image/(docker buildx build; files 0444, folders 0555); thevideo_qa_rubricserver lends a sandbox from it (seed check passes, the model's catalog is copied read-only, theimage's catalog moved away),
watch_videoruns on a preloaded file in that sandbox, the close removes the container, and a row pinning anothercatalog is refused (422) with its container removed.
prepare.pyon catalogs of real MM-Lifelong images gives 1,023rows.
build.pylays them out, on the video tools image of this head; about 9, 103 and 92 GB): the first row of eachsplit, with the public model of the Rollouts section below. Each sandbox started from its split's image with nothing
uploaded and passed the seed check; OpenCode read and searched the copied
video_catalog.json,watch_videodecoded a preloaded week clip, and the grader scored the two final answers.
Rollouts
nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16(revisione5e99324, BF16) on one GB200 GPU, served by vLLM0.32.0rc1.dev190+g3f1bcfd82with the model card's flags (--trust-remote-code --video-pruning-rate 0.5 --reasoning-parser nemotron_v3) plus--media-io-kwargs '{"video": {"num_frames": 256}}',--allowed-local-media-pathfor the frame videos, a 262,144-token context and
VLLM_MAX_MEDIA_REQUEST_DECODE_BYTES=4294967296(the week video's256 frames of 1408 x 1408 decode to 1.52 GB, which this build otherwise refuses with HTTP 400); the model's default
sampling and 65,536 output tokens; the first 30 rows (10 per split) through
benchmarks/mm_lifelong_v1_1/config.yamlwith the dataset's grader (
gpt-5.6-luna).video pruning).
reasoning at the 65,536-token limit and scored 0 as empty answers, without a judge call.
subsets/<split>/rubric_scorex 100). This is a smoke of thepipeline, not a benchmark number; the dataset card's results come from the release's own harness (other frame
sampling and prompt) and are not comparable.
Agentic (
benchmarks/mm_lifelong_v1_1_agentic, the first row of each split): the same model on one GPU, served asfor #6315's agentic example rollouts (
--max-model-len 131072 --trust-remote-code --video-pruning-rate 0.5 --reasoning-parser nemotron_v3 --enable-auto-tool-choice --tool-call-parser qwen3_coder --limit-mm-per-prompt '{"image": 256, "video": 0}', the media decode cap as above), OpenCode with a 131,072-token context and at most16,384 output tokens per call, the model's default sampling.
month_val:0grepfor the question's place names in its working folder (no match), then it answeredweek_test:0video_catalog.json, thenwatch_videoon the day-5 clipday_test:0No failure record and no masked row; the week run spent the 16,384 output tokens of its last call on reasoning. Two
judge calls, each accepted at its first attempt. This checks the pipeline, not the model.
🤖 Generated with Claude Code