Repository navigation
feat(video): add single-turn Video-MME v2, Video-MME and LVBench environments - #6071
Conversation
Evaluate Video-MME v2 multiple-choice questions in two settings, each with its own frozen cohort, result directory and metric namespace: - Single-turn (configs/videomme_v2_single_turn.yaml): the stock simple_agent makes one tool-free request with the prepared (VideoAnyRes) video. - Agentic (configs/videomme_v2_agentic.yaml): opencode_video_agent, a subclass of the stock opencode_sandboxed_agent, binds the source video and a SHA256-pinned media-tool runtime (watch_video, view_image) into the sandbox and exports media-preserving transcripts. vllm_video_model keeps images and videos returned by tools as structured parts of the tool message, and nemo_gym.openai_utils accepts video parts in function-call outputs and tool messages. resources_servers/video_mcqa holds the benchmark-independent task contract, which keeps the model-visible question and media apart from the verifier-only gold answer and provenance, and the deterministic grading of the final answer (a boxed letter, optionally a bare letter) with explicit no-answer, format, ambiguity and failure outcomes and fixed-cohort accuracy. videomme_v2.task and videomme_v2.scoring re-export them. The videomme_v2 verifier checks every result against the frozen cohort and reports raw accuracy and the official nonlinear group score, overall and for L1/L2/L3, on a 0-100 scale; mean/Video_MME_v2[_agentic] stays the 0-1 raw accuracy. Four-question groups are validated against the source question order and scored within each repeat. Missing and infrastructure-failed rows stay in the denominators, and coverage and completeness metrics mark partial results. The server venvs install nemo-gym ([dev,sandbox] for the OpenCode video agent). No benchmark data, media, checkpoints, runtime bundles or credentials are included. Signed-off-by: Guo Chen <[email protected]>
Evaluate Video-MME (v1) and THUDM/LVBench in the two Video-MME v2 settings: single-turn VideoAnyRes through simple_agent, and agentic through opencode_video_agent, each with its own frozen cohort and namespace. resources_servers/video_mcqa gains what both benchmarks share: - prepare: CLI that turns the authors' annotations (JSON, JSONL or Parquet) and an explicit media inventory into Gym task rows, a frozen cohort and a receipt with input/output SHA256s; it never downloads data and never overwrites an output directory. - dataset: annotation loaders for both benchmarks. Repeated option texts in the source are kept and flagged outside the model input; the task contract accepts them only when a loader opts in (allow_duplicate_options). - app: VideoMCQAResourcesServer, which verifies results against the cohort and reports question-weighted accuracy on a 0-100 scale, overall and per reporting category (duration, domain, sub-category and task type for v1; capability for LVBench), with mean/<benchmark> as the 0-1 alias. resources_servers/videomme_v1 and resources_servers/lvbench select the benchmark and provide the single-turn and agentic configs; their venvs install nemo-gym. Signed-off-by: Guo Chen <[email protected]>
Adds the OpenCode provider/plugin modules used by opencode_video_agent's runtime bundle: the watch_video and view_image tools, inline media bridging, the per-request media budget, and opt-in private capture of the exact model inputs and outputs. The bundle builder (NeMo-RL tools/video_media) packages these files; the stock opencode_agent is unchanged. Includes node tests. Signed-off-by: Guo Chen <[email protected]>
NeMo-RL Gym rows name local videos by absolute path, which NeMo-RL turns into data URLs before its own vLLM sees them. A standalone vLLM server reads local media only from file:// URLs under --allowed-local-media-path, so the video model server now sends absolute paths that way. Other video sources are unchanged. Signed-off-by: Guo Chen <[email protected]>
Declares the dependencies of lvbench, video_mcqa, videomme_v1, videomme_v2, opencode_video_agent and vllm_video_model in pyproject.toml with the shared uv policy and commits their uv.lock files, replacing requirements.txt. The locked versions equal those of openai_model and opencode_sandboxed_agent. Adds data/example.jsonl with five invented single-turn rows each for Video-MME v2, Video-MME and LVBench; they contain no benchmark questions, answers or media. The OpenCode media tests that import the pinned SDK now skip when NEMOTRON_OPENCODE_DEPENDENCY_ROOT is unset, and two opencode_video_agent tests are reformatted with ruff. Signed-off-by: Guo Chen <[email protected]>
Signed-off-by: Guo Chen <[email protected]>
…e test detect-secrets reports the SHA-256 digest of "abc" in test_media_capture_io.mjs as a high-entropy hex string. It is the published FIPS 180-2 test vector, so mark it with the inline `pragma: allowlist secret` comment used elsewhere in the repository. Signed-off-by: Guo Chen <[email protected]>
|
/ok to test 5e8484d |
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
HOLD
I found three BLOCKERs: the video agent rejects a keyword its parent always supplies, saved execution failures can become correct answers during reverification, and exported video tool results lose model-visible receipt text. The inline findings also cover broken sandbox presets, missing validation contracts/artifacts, and two converter compatibility defects.
RISK — representative real-model evidence is missing. The PR reports CPU-only validation and no model rollouts. The repository quality bar requires representative smoke rollouts for behavior-changing environment and agent work. Could you provide inspected single-turn and agentic runs covering all three adapters, with model/runtime versions, cohort identity, aggregate reward, coverage, and representative trajectories? Confirm that the intended video reaches the model, private answers stay outside its input, media tools execute, and verification/aggregation agree. Retain the separate setting namespaces, evaluation-only restrictions, and verified: false; smoke evidence isn't full benchmark certification. These are missing validation results, not runs I observed failing.
NOTE — add published user documentation. The component READMEs explain the feature, but no Fern documentation accompanies these new user-facing environments. Please add a video-evaluation guide linked from the published environment catalog. Include a minimal preparation/composed-run example, external VideoAnyRes/runtime requirements, and score namespaces. Preserve the licensing and unverified-status caveats in the shared guide. Acceptance is a reachable published page, resolvable example configuration, and passing docs checks.
I completed static inspection across the 85 changed files and affected contracts. Dependency-lock inspection covered resolution policy and component declarations, not every wheel hash. I independently covered the JavaScript topic after its delegated advisory wasn't delivered. I couldn't inspect the external media CLI/runtime bundle or execute tests, GPU inference, or sandbox rollouts here. All suggested patches and acceptance checks below need verification before adoption.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
| await raise_for_status(response) | ||
| return AggregateMetrics.model_validate(await get_response_json(response)) | ||
|
|
||
| async def _create_opencode_config(self, request: Request) -> dict: |
There was a problem hiding this comment.
BLOCKER — retain the parent's image_input keyword
Every agentic run that reaches the native loop fails before model execution. The parent calls this hook with image_input=bool(attachments), including False for these text-only prompts. This override rejects that keyword with TypeError. The setup tests mock out the parent responses(), so they don't exercise the failing call.
Could you replace the override with:
async def _create_opencode_config(self, request: Request, *, image_input: bool = False) -> dict:
return video_config(
await super()._create_opencode_config(request, image_input=image_input),
output_tokens=self.config.max_output_tokens,
model=self.config.opencode_model,
)This retains the parent's attachment handling and the subclass's provider/plugin, output reserve, and optional model rename. Update the delegation assertion to expect the forwarded keyword.
Proposed acceptance: exercise the real parent responses() with sandbox I/O mocked for both a text-only video task and an inline-image task. Both should reach the OpenCode launch without TypeError; the image case should retain attachment.image limits alongside the video modalities/media plugin. Preserve the existing config-immutability and named-model assertions.
| self._validate_metadata(body.verifier_metadata, setting=body.setting) | ||
| failure: Failure | None = None | ||
| reason = None | ||
| if body.response.status == "failed" or body.response.error is not None: |
There was a problem hiding this comment.
BLOCKER — keep execution-failure zeroes stable during reverification
A captured agentic execution failure with a correct final \boxed{B} can score zero initially and one on replay. The inherited run boundary requests forced-zero grading; its helper verifies an empty output, then restores the original response in the saved row. This verifier and the v2 verifier subsequently grade that restored answer without its execution-failure classification. Standard reverification payload construction also doesn't copy opencode_failed from the saved rollout.
Could you carry an explicit classification through initial grading and saved-response replay? A small implementation is to set response.metadata['video_execution_failure'] = 'true' in the video agent before returning a response whose run result has opencode_failed=True, then add an agentic-marker branch in both verifiers that passes failure='execution_failure' to grade_answer. Keep the existing infrastructure-failure branch first. Response metadata survives both the forced-empty copy and reverification, unlike a rollout-only flag. Keep the original transcript for inspection.
Proposed acceptance: through the inherited run path, capture a correct answer followed by execution failure, source mutation, or length-limit failure. Initial grading and replay via _build_verify_payload must both return zero, outcome='execution_failure', no prediction, and an unmasked completed evaluation. Preserve successful correct/wrong answers, single-turn tool rejection, and masked/inconclusive infrastructure failures.
| else: | ||
| if tool_name in {"watch_video", "view_image", "view_video"}: | ||
| raise ValueError("Unsupported visual tool attachment MIME") | ||
| if parts and text and tool_name not in {"watch_video", "view_image", "view_video"}: |
There was a problem hiding this comment.
BLOCKER — preserve video receipt text in exported tool results
For a completed watch_video result with nonempty state.output and a video attachment, this branch exports only the attachment. The model actually receives both: the JavaScript bridge suppresses text only for view_image, and the receipt regression case expects frame counts, visual-token counts, and sampling intervals beside the video. Saved transcripts silently lose those observations, affecting replay and training consumers. The legacy view_video shape has the same mismatch.
Replace this condition with:
| if parts and text and tool_name not in {"watch_video", "view_image", "view_video"}: | |
| if parts and text and tool_name != "view_image": |
This aligns video exports with the live bridge while preserving image-only view_image behavior. Keep original call IDs, attachment order, the compacted-result sentinel, failed-tool error text, and native nonvisual-tool text.
Proposed acceptance: export watch_video and view_video states with output='Frames: 120 total' and one video attachment; each output must contain the text part followed by the unchanged video part. view_image with explanatory output must still export only its image. Retain the current empty-receipt, compacted-result, invalid-attachment, and nonvisual-tool cases.
| workdir: /testbed/work | ||
| resources: | ||
| cpu: 2 | ||
| memory: 8Gi |
There was a problem hiding this comment.
RISK — use the provider-neutral memory field in both presets
With otherwise valid runtime inputs, LVBench and VideoMME-v1 fail before sandbox creation because their presets use memory: 8Gi. The inherited sandbox setup passes this mapping to SandboxResources.from_mapping, which rejects memory as an unknown key. The v1 preset has the same problem; v2 already uses the supported field.
Replace this line in both affected YAML files with:
| memory: 8Gi | |
| memory_mib: 8192 |
Retain cpu: 2, provider selection, image/workdir, TTL, and readiness settings.
Proposed acceptance: extend the composed-config tests to pass every agentic preset's resources mapping through SandboxResources.from_mapping; assert cpu == 2 and memory_mib == 8192. A mocked sandbox-start test should reach creation instead of raising Unknown sandbox resource keys: memory. Preserve the single-turn configuration assertions.
| cohort_manifest: Path | ||
|
|
||
|
|
||
| class VideoMCQAVerifyRequest(BaseVerifyRequest): |
There was a problem hiding this comment.
RISK — provide the required task-data schemas
None of video_mcqa, videomme_v1, videomme_v2, or lvbench ships task_data.py. Adding these applications therefore violates the existing schema-presence gate. Standard collation also skips their task validation, including with task_data_validation=error.
Could you add dependency-light TaskData declarations using the existing normalization contract, with enforcement against the actual request models and agent-consumed binding? The tooling flattens verifier_metadata, so copying the nested request model verbatim isn't sufficient. Mark exclusively nested wire fields with legacy_location, preserve required identity/setting/provenance fields and the current unknown-field policy, and enforce the agentic binding without requiring one for single-turn rows. For a genuinely non-server shared package, moving it outside resources-server discovery is an alternative to inventing a placeholder schema.
Proposed acceptance: the existing schema-presence test passes; committed examples and prepared rows for both settings validate through each concrete owner's TaskDataValidator. Missing required metadata, misplaced nested-only fields, malformed bindings, and runtime/schema drift must fail targeted checks. Preserve allowed duplicate-option annotations and optional v2 level/group metadata.
| @@ -0,0 +1,5 @@ | |||
| {"task_id": "videomme_v2:example-1", "setting": "single_turn", "responses_create_params": {"tools": [], "tool_choice": "none", "input": [{"role": "user", "content": [{"type": "input_video", "video_url": "https://example.invalid/videos/synthetic-1.mp4"}, {"type": "input_text", "text": "Watch the video and answer the question.\nPut the selected option letter in \\boxed{...} as your final answer.\n\nQuestion: Which invented shape moves across the synthetic clip?\nA. Circle\nB. Square\nC. Triangle\nD. Star"}]}]}, "verifier_metadata": {"task_id": "videomme_v2:example-1", "expected_answer": "B", "option_count": 4, "dataset_source": "https://example.invalid/videomme-v2-synthetic-examples", "dataset_revision": "0000000000000000000000000000000000000000", "video_id": "synthetic-1", "video_source": "https://example.invalid/videos/synthetic-1.mp4", "video_sha256": "0000000000000000000000000000000000000000000000000000000000000000", "level": null, "group_id": null}} | |||
There was a problem hiding this comment.
RISK — complete the resources-server example-validation artifacts
The three concrete servers contain five example rows but no example metrics or rollout sidecars; video_mcqa has no example data. Consequently _validate_data_single() rejects all four new components. The full component suite always enables this validation and fails on these results. The PR reports the same failures; they aren't passes or pre-existing upstream failures.
Could you supply runnable invented example media/cohorts and example dataset declarations for the concrete servers, generate their metric sidecars, and record five genuine model rollouts per server? The current example.invalid video URLs aren't runnable media. For video_mcqa, satisfy the component contract or move the shared package outside server discovery and update its imports/tests. Keep restricted benchmark content out of the repository; invented media is sufficient.
Acceptance: ng_test +entrypoint=resources_servers/<component> +should_validate_data=true succeeds for every retained component. Each concrete metric sidecar reports Number of examples == 5, each rollout file has five measured rows, and the example cohort matches their IDs, setting, and revision. Preserve the existing parser and frozen-denominator assertions. I confirmed the missing artifacts statically, not by executing these commands.
| """The stock vLLM model server, with ToolMediaConverter as its converter.""" | ||
|
|
||
| def get_converter(self) -> ToolMediaConverter: | ||
| return ToolMediaConverter( |
There was a problem hiding this comment.
RISK — forward the configured custom-tool strategy
This model inherits and accepts custom_tool_strategy='function_bridge', but its converter silently falls back to passthrough. A custom exec declaration is therefore converted to a chat custom tool rather than the requested function bridge, and replaying its custom_tool_call raises NotImplementedError. The parent get_converter() forwards this setting.
Add this constructor argument:
custom_tool_strategy=self.config.custom_tool_strategy,Retain token-information/reasoning settings, default passthrough behavior, and structured image/video transport. Give the existing mocked config a concrete strategy value.
Proposed acceptance: exercise the existing bridge declaration and replay expectations through VideoVLLMModel.get_converter(): a custom exec tool and its history must become function-shaped with one string input parameter and unchanged call identity. A matching backend call must lift back to a custom call with the original payload. With passthrough, declarations must remain custom and unsupported replay must still fail explicitly. Retain mixed-media conversion tests.
| if isinstance(output, list) and any(part["type"] in {"input_image", "input_video"} for part in output): | ||
| # The message formatter maps each structured media part and | ||
| # flushes the preceding assistant tool calls. It does not sort calls. | ||
| self._format_message( |
There was a problem hiding this comment.
RISK — retain the supported tool-image original detail mapping
This branch sends tool images through the user-message formatter, bypassing the shared tool-image helper. A tool output such as {'type': 'input_image', 'image_url': url, 'detail': 'original'} therefore raises NotImplementedError, even when tool-image inlining is enabled. The shared helper deliberately maps tool-image original to chat high, and an existing regression test pins that behavior.
Before this _format_message call, normalize only tool-image original parts:
output = [
{**part, "detail": "high"}
if part["type"] == "input_image" and part.get("detail") == "original"
else part
for part in output
]Keep this inside _format_function_call_output: user-image original must remain explicitly unsupported. Preserve ordinary image details, surrounding text/media order, local-video URL conversion, and call IDs.
Proposed acceptance: convert image-only and mixed text/video/image tool outputs with original; assert chat detail high and unchanged order/identity. auto, low, and high must remain unchanged. A user image with original, and a tool image carrying only file_id, must still fail explicitly. Retain the existing mixed-media round-trip cases.
Signed-off-by: Guo Chen <[email protected]>
…d mark failed runs OpenCodeSandboxedAgent.responses() calls _create_opencode_config(request, image_input=...), so the override now takes and forwards that keyword; it previously raised TypeError before any model call. A test drives the real parent responses() with only sandbox I/O mocked, for a text-only turn and for an inline image, and checks the launched OpenCode config. Exported watch_video and view_video results keep their text receipt before the media, as media_bridge.mjs replays them to the model; only view_image drops its text beside the image. When execution_failure_reward_zero applies to a failed run (a failed or length-limited OpenCode run, or a modified source video), the response carries metadata video_execution_failure="true", so the verifier grades the saved answer as an execution failure when the row is replayed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
…rified A failed agent run is graded on an emptied copy of its response, and the saved row keeps the original response. Replaying that row (rollout reverification) graded the original final answer, so a failed run with a correct boxed letter could turn from 0 into 1. The VideoMME-v1/LVBench and VideoMME-v2 verifiers now treat an agentic response whose metadata carries video_execution_failure="true" as an execution failure: reward 0, no prediction, completed and unmasked. Failed model calls stay inconclusive. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
…sets SandboxResources.from_mapping() rejects the "memory" key, so these presets failed before sandbox creation. They now use memory_mib: 8192, as the VideoMME-v2 preset does, and the composed-config test parses each agentic preset's resources. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
video_mcqa, videomme_v1, lvbench and videomme_v2 now ship task_data.py, as every resources server must. The shared schema mirrors the verify requests (task_id and setting top-level, VerifierMetadata fields marked as read from verifier_metadata) and requires the video_binding that the OpenCode video agent reads on agentic rows. VideoMME-v1 and LVBench rows have four choices and no level or group; VideoMME-v2 rows may have any option count, a level and a group. Tests check the committed examples and prepared rows of both settings against each server's schema and the runtime request models, and that rows the runtime refuses fail validation. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
…e original detail The tool-media converter now receives the configured custom_tool_strategy, so function_bridge lowers custom tools to function tools and lifts their calls back, as the stock vLLM model server does. Tool-output images with detail "original", which chat lacks, are sent as "high", as the shared tool-image path sends them; a user image with "original" stays unsupported. 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]> Signed-off-by: Guo Chen <[email protected]>
tests/unit_tests/data/test_task_data.py imports every server's task_data.py, so the core coverage gate measures resources_servers/video_mcqa/task_data.py, while the servers' own tests do not run in that job. Core-suite tests now exercise the schema's validators on synthetic rows, as tests/unit_tests/benchmarks does for other servers' schemas. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
yfw
left a comment
There was a problem hiding this comment.
HOLD. The agentic setting cannot run from public code (opencode_video_agent/app.py:270). Landing the single-turn setting first is the suggested path.
Thank you for three benchmarks with careful grading. The Video-MME v2 group score matched the official scorer in all 96 cases run against it, and the frozen denominators report coverage. Each fix for the automated review has a test that fails without it.
CI unit and server tests have not run at this head. The last CI trigger was for 5e8484df28, so a maintainer needs to trigger CI again for edbb3e6cd8. DCO passes on every commit, and pre-commit passes. Even after the split, the single-turn half fails CI's data validation: the three servers have no data/example_metrics.json or data/example_rollouts.jsonl, and video_mcqa has no example data. That is the automated review's open point on example.jsonl, and the split does not fix it.
The PR description still reads as a draft: "N/A for this draft", "Follow-ups before ready for review", and validation at 158bebdb7. Please refresh the validation at the final head, and add labels (feature, area:environment). Please also drop "for RL training" from Why. The Video-MME, LVBench and video_mcqa READMEs, the catalog rows and all three dataset terms say evaluation only or noncommercial use. The follow-up that the description lists for the pre-0.8 import paths is still open.
Two open PRs also add Video-MME and Video-MME v2. PR #5894 runs Video-MME and Video-MME v2 through stock opencode_agent sessions, with media as images through tools. PR #3996 scores Video-MME v2 groups with a different rule. It drops a group with a masked or missing member, but this PR counts that member as wrong and reports group coverage. This PR and #5894 do not name each other.
The single-turn VideoAnyRes preparation is also not public. It is data preparation, not code on the run path, so it is a note (videomme_v2/README.md:55-58) and not part of the blocker.
Agentic training needs NeMo-RL work beyond video_media_cli, and the description does not list it. It needs a vLLM loader for the fixed-video payload and tool-video media in the trainer. The NeMo-RL media capture also refuses prompts that mix images and video (captured_media.py L429-L432), and this agent offers both view_image and watch_video. This can wait for the follow-up.
With execution_failure_reward_zero: true, the parent opencode_sandboxed_agent also scores a model-server outage inside an OpenCode run as 0 (opencode_sandboxed_agent/app.py L1823-L1826). This is not new in this PR.
Generated by Claude Code
Land Video-MME v2, Video-MME and LVBench as single-turn environments; the agentic setting moves to a separate change. - Remove responses_api_agents/opencode_video_agent, the OpenCode media modules and their Node tests in responses_api_agents/opencode_agent, the three agentic configs and responses_api_models/vllm_video_model, and restore the core Responses types. Single-turn rows run on the stock vllm_model. - Run the single-turn configs through single_agent_turn_legacy Environment Servers. - Skip rows without a verifier outcome, such as Gym's counted-zero rows, when aggregating fixed-cohort metrics. - Serve the shared video_mcqa verifier directly with configs/video_mcqa_single_turn.yaml; the cohort names the benchmark. - Add five synthetic example clips, inline them as MP4 data URLs in the example rows, and add example cohorts and example datasets. - Move the shared scorer and task tests to video_mcqa/tests. - Document the single-turn inputs, the dataset terms and the parser difference from the official scripts. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
Add data/example_rollouts.jsonl and data/example_metrics.json for the videomme_v2, videomme_v1, lvbench and video_mcqa resources servers, which the legacy data validator requires. The five rollouts per server come from nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16 served by vLLM with the model card's video settings, collected through the stock vllm_model, simple_agent and single_agent_turn_legacy servers on the synthetic example clips. The example metrics come from gym dataset collate with +mode=example_validation. 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]> Signed-off-by: Guo Chen <[email protected]>
|
@yfw Thanks for the detailed review. I followed the suggested path: this PR now lands only the single-turn setting, and the
Validation at Inline threads
|
|
/ok to test 5977f7f |
|
/review |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
I verified that the earlier blocking failures are fixed or removed from this single-turn change. Both verifiers handle the execution-failure marker, and the replay regression helper exercises forced-zero grading and saved-response reverification. The task-data schemas and example sidecars are present. Removing the video-specific agent, model adapter and agentic presets makes their earlier findings inapplicable.
The committed rollout artifacts and documented model setup address the earlier absence of smoke evidence for the narrower single-turn scope. One prior NOTE remains: the published catalog has entries, but no published preparation/run guide.
I completed this follow-up against the previous reviewed tree, checking the earlier findings, subsequent changes and directly affected integration paths. I found no new regression eligible above the historical moderate-impact threshold. I did not execute tests, GPU inference or Fern checks, and I did not independently reproduce the reported accuracy or coverage. Some earlier converter comments were truncated; their implementation is absent from the current tree.
Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.
| | [wmt_translation](https://github.com/NVIDIA-NeMo/Gym/tree/main/resources_servers/wmt_translation) | Machine translation with BLEU and xCOMET-XXL | Execution (COMET metrics) | ✓ | | ||
| | [longmt_eval](https://github.com/NVIDIA-NeMo/Gym/tree/main/resources_servers/longmt_eval) | Document-level translation (SEGALE pipeline + COMETKiwi) | Execution (neural QE) | ✓ | | ||
| | [vlm_eval_kit](https://github.com/NVIDIA-NeMo/Gym/tree/main/resources_servers/vlm_eval_kit) | VLM benchmarks: MMBench, OCRBench, and others | Execution (VLMEvalKit) | ✓ | | ||
| | [videomme_v2](https://github.com/NVIDIA-NeMo/Gym/tree/main/resources_servers/videomme_v2) | Video-MME v2 single-turn video multiple-choice QA (evaluation only) | Boxed letter; fixed-cohort accuracy and grouped nonlinear score | | |
There was a problem hiding this comment.
NOTE — finish the published video-evaluation guide
The documentation finding in review 5884933909 is partly addressed. These catalog entries link to GitHub directories, but a reader still has no published walkthrough for preparing the required cohort and running a single-turn evaluation. The runnable examples and media requirements are only in the shared README.
Could you add a short guide under the evaluation docs and link it here? Reuse the existing preparation example and composed vllm_model run, name each benchmark's cohort variable, and explain the Video_MME, Video_MME_v2 and LVBench namespaces. The invariant is that a reader can prepare inputs and run a shipped single-turn config from the published docs without depending on the removed agentic components.
Keep the distinctions between inline data: media and host-local file:// media, and between vLLM sampling and the unavailable VideoAnyRes preparation. Preserve the evaluation-only restrictions, parser-comparability caveats and verified: false status. Document agentic execution as a follow-up, not an available preset.
Proposed acceptance: the catalog link reaches the guide in the Fern preview; its composed configuration resolves with a committed example cohort and all required variables supplied; make docs-check and pytest tests/unit_tests/test_fern_docs_links.py pass. The walkthrough must reference only shipped single-turn components. I have not run these checks.
yfw
left a comment
There was a problem hiding this comment.
Approving. CI still has to pass after you merge main to fix the README table conflict.
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Guo Chen <[email protected]>
|
@yfw Thanks for the approval! I merged main to resolve the README environment-table conflict; only this PR's four rows were added and nothing else changed. The new commit dismissed your approval automatically, so could you please re-approve? |
|
/ok to test 5fcb983 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/43840208618 |
What
Single-turn video multiple-choice evaluation for Video-MME v2, Video-MME (v1) and LVBench, with a shared verifier:
resources_servers/video_mcqa: the shared task contract, boxed-letter parser (boxed_only_v1, opt-inboxed_or_letter_v1), fixed-cohort accuracy verifier, task-data schema and theprepareCLI for the authors'Video-MME and LVBench annotations. It also runs on its own (
configs/video_mcqa_single_turn.yaml), scoring thebenchmark its cohort names.
resources_servers/videomme_v2: raw accuracy plus the official four-question group (nonlinear) score, overall and bylevel.
resources_servers/videomme_v1andresources_servers/lvbench: thin servers on the shared verifier, withper-category breakdowns.
Each config runs the stock
simple_agentfor one tool-free step through asingle_agent_turn_legacyEnvironmentServer, against the stock
vllm_model. A row carries its video as aninput_videopart with adata:orfile://URL. A run declares its cohort (pinned dataset revision, expected task IDs, setting, answer policy, repeats) before
inference; missing and masked rows stay in the denominator, and coverage and completeness are reported. Gym's
counted-zero rows are skipped in aggregation, so they count as missing.
The PR changes nothing in
nemo_gym/. Each server ships five invented questions about five synthetic 4-second clips(
resources_servers/video_mcqa/data/example_videos/, inlined in the rows as MP4data:URLs), an example cohort,example_metrics.jsonand real-modelexample_rollouts.jsonl. No benchmark questions, answers, videos, checkpoints orcredentials are included. The configs are
verified: false.Why
Makes Video-MME v2, Video-MME and LVBench evaluation available from Gym main. No issue: new environments. The
dataset terms allow evaluation-only or noncommercial use (Video-MME and Video-MME v2: academic research only, with
restricted redistribution; LVBench: CC-BY-NC-SA-4.0), and the READMEs say so.
Scoring notes
boxed_only_v1scores an unboxed or conflicting answer as 0. The officialscripts ask for a bare letter, so these scores are not comparable to official results.
28fc3bcf). A groupwith a missing or masked member counts that member as wrong, and
/group_coverageand/nonlinear_completereportthe gap.
data:/file://runs usevLLM's own frame sampling (32 frames unless
--media-io-kwargssets another count) and are not that protocol.Related PRs
spatialclawresourcesserver with its own agent, which passes extracted frames to the SpatialClaw workflow. Its Video-MME v2 aggregation
drops a group with a masked or missing member and reports evaluated and dropped group counts. This PR keeps such a
group, counts the member as wrong and reports group coverage.
opencode_agentsession presets for them (with changes to that agent in thesame PR), where tools return the frames as images.
Agentic setting: follow-up PR
The sandboxed OpenCode video agent was removed from this PR after review; its code stays in this branch's history.
The follow-up will be ready when it has:
nemo_rl.environments.video_media_clipublic in NeMo-RL;.mjsmodules;It will also check
error_typeand-1on the post-run hash step and importEXECUTION_FAILURE_METADATA_KEYfromresources_servers.video_mcqa.scoring. Running it on stockopencode_agentundersingle_agent_turn_legacyisbeing considered. Agentic training additionally needs NeMo-RL work: a vLLM loader for the tool-video payload, tool
video in the trainer, and mixed image and video prompts in NeMo-RL's media capture.
Validation (head
5977f7f11, CPU; Python 3.13.14, uv 0.13.4)The head is itself the merge with main
951ee9ec8. Checks on its tree, on CPU, with CI's commands:scripts/ci/server_test_workers.py 7 8 +fail_on_total_and_test_mismatch=true +delete_venvs_after_each_test=true(shard 7: 36 modules, includinglvbenchandopencode_agent) passes. The fourvideo resources servers (shards 2, 3, 4 and 7) pass
ng_test +should_validate_data=true:videomme_v2136 tests,videomme_v11,lvbench1,video_mcqa257 (plus 118 subtests). Each one reports "The data for ... has beensuccessfully validated!". Shards 2, 3 and 4 were also run in full before the example-data commit. Outside the video
servers, they failed only in modules this PR does not touch, and only because of the local machine:
interactive_browser: its Playwright tests need CI's browser dependencies;terminal_bench_4andminiswe_sandboxed_agent: both pass when rerun with CI's umask 022.scripts/ci/core_unit_tests.sh, unsharded, so a superset of the four core shards: 22,390 passed, 103 skipped, 0 failed (plus 343 subtests).pre-commit run --all-filespasses.scripts/component_locks.pychecks 307 projects with 0 failures.uv lock --checkpasses for the root and the four servers.tests/unit_tests/test_fern_docs_links.pypasses.scripts/add_legacy_agent_environment_servers.py --switch-simple-agent --checkleavesnothing to switch in these configs.
merged tree, a local run against a stub OpenAI-compatible endpoint starts the 13 servers of the four configs,
completes all 20 example rows, and every model request carries the MP4
data:URL before the question text.<think>, dividing accuracyby the returned rows, removing the counted-zero skip from either verifier, making the shared server ignore its
cohort's benchmark, and altering an example clip. Each change makes its suite fail.
Rollout evidence
Model:
nvidia/Nemotron-3-Nano-Omni-30B-A3B-Reasoning-BF16, BF16 on one H200. Serving: vLLM0.30.1rc1.dev143+g29468dde8with the model card's video flags (--video-pruning-rate 0.5,--media-io-kwargs '{"video": {"fps": 2, "num_frames": 256}}',--reasoning-parser nemotron_v3,--max-model-len 131072) and the model's default sampling (temperature 0.6, top-p 0.95, at most 16,384 outputtokens). Gym ran the stock
vllm_model,simple_agentandsingle_agent_turn_legacyservers from these configs. Therollouts are the committed
data/example_rollouts.jsonlfiles.videomme_v2videomme_v1lvbenchvideo_mcqaEach cell is the parsed answer and the reward. Each server reports raw accuracy 80, coverage 1.0 and a complete
cohort; the misses are labelled
incorrectandno_answer. The model sees the video: each request carries 683-687input tokens, and a direct probe of the same vLLM server gives 643 prompt tokens with the clip and 27 without. With the
blue-background clip it answers "A yellow diamond moves from the left side to the right side of a blue background";
without a clip it says it cannot view the video, or describes an unrelated scene. On the counter, its reasoning reads
one frame as 5 and the last frames as 9.
Follow-ups
nemo_gym.server_utils,nemo_gym.base_resources_server),which
_moved_pathsmaps with aDeprecationWarninguntil 0.10.0.python scripts/migrate_imports.py --checklistseight files in these four servers; a follow-up PR runs the script on them (no behavior change).
prepareCLI; until then the README showsprepare_single_turn().