feat: add Physical AI Understanding task#1353
Merged
kcz358 merged 1 commit intoMay 28, 2026
Merged
Conversation
A 1,214-item video MCQ benchmark from NVIDIA's Cosmos PhysicalAI
family covering embodied / AV / robotics reasoning, with structured
4-option choices ({"A": ..., "B": ..., "C": ..., "D": ...}).
Dataset: shi-labs/physical-ai-bench-understanding (parquet QA at
data/test-*.parquet + 1,027 source videos at videos/<subset>/<id>.mp4
in the same HF repo). The videos are fetched once with
snapshot_download and cached on disk for subsequent doc_to_visual
lookups.
Metric: exact_match (flexible-extract) on the MCQ letter — the filter
first tries a leading uppercase letter, falls back to substring-match
against the index2ans choice texts, and handles common reasoning
wrappers (<think>...</think>, <answer>...</answer>).
kcz358
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Physical AI Understanding, a 1,214-item video MCQ benchmark from NVIDIA's Cosmos PhysicalAI family covering embodied / autonomous-vehicle / robotics reasoning.
Each item carries a structured
index2ansmapping ({"A": ..., "B": ..., "C": ..., "D": ...}) and a target letter, so we don't need to re-parse choices from the prompt.Dataset: `shi-labs/physical-ai-bench-understanding` — parquet QA at `data/test-*.parquet` and 1,027 source videos at `videos//.mp4` in the same HF repo. Videos are fetched once via `snapshot_download` and cached on disk for subsequent `doc_to_visual` lookups.
Files
Parity vs. local fork
Qwen3-VL-2B-Instruct, full `test` split (1,214 items).
Different inference backends (vllm vs HF simple) account for the small per-doc divergence; this is in line with the drift we've seen on prior video-MCQ ports (egotaskqa, metavqa).
Notes on short videos
A handful of clips have only ~6 frames. The upstream `simple/qwen3_vl` model defaults to strict `nframes=32` via `qwen_vl_utils`, which errors on these. Running with `model_args=fps=2.0,max_num_frames=32` flips it to lenient `max_frames` mode and the task runs end-to-end. (No code changes needed — just a model-args note for reproducibility.)
Test plan