Profile with MMVU Dataset
AIPerf supports benchmarking using the MMVU dataset, an expert-level video understanding benchmark that tests multi-discipline reasoning over video content. Each sample contains a video URL and a question (multiple-choice or open-ended) that requires watching the video to answer.
This guide covers profiling OpenAI-compatible video language models using the MMVU public dataset.
Start a vLLM Server
Launch a vLLM server with a video-capable vision language model:
Video prompts are far larger than text or image prompts: every sampled frame
expands into hundreds of vision placeholder tokens, so a single MMVU request
can exceed 10k input tokens with default frame sampling. The vision encoder
allocates its activations outside the KV-cache pool that vLLM pre-reserves,
so raising --gpu-memory-utilization does not help — on a smaller GPU
(~24 GB) the defaults OOM mid-prefill and kill the engine with
EngineDeadError. The two flags above bound both dimensions:
--media-io-kwargs '{"video": {"num_frames": 16}}' caps frames per video (and
therefore prompt length), and --max-num-seqs 1 keeps a single video prefill
resident at a time. Raise both on larger GPUs.
Verify the server is ready:
Profile with MMVU Dataset
AIPerf loads the MMVU dataset from HuggingFace, combines each question with its multiple-choice options, attaches the video URL, and sends each pair as a single-turn video request. The prompt format matches vLLM’s own MMVU benchmark format.
Sample Output (Successful Run):
Note: High TTFT variance (3s min, 536s max) is expected — the model server fetches each video URL from HuggingFace during inference, and fetch time varies with video size and network conditions.
Notes
- The
videocolumn in MMVU contains HTTPS URLs pointing to.mp4files hosted on HuggingFace. AIPerf passes these URLs directly to the model server, which fetches the video during inference. - For multiple-choice questions, choices are appended to the question in the format
A.option B.option .... Open-ended questions use the question text only. - The dataset has a
validationsplit with samples spanning multiple academic disciplines (Art, Science, Engineering, etc.).