Skip to content

fix(vlm): preserve cached video source timing - #4310

Draft
ehosseiniasl wants to merge 1 commit into
ehsan/main-video-mopd-vllm029from
ehsan/main-video-cached-timing-vllm029
Draft

ehosseiniasl wants to merge 1 commit into
ehsan/main-video-mopd-vllm029from
ehsan/main-video-cached-timing-vllm029

Conversation

@ehosseiniasl

Copy link
Copy Markdown
Contributor

Summary

  • preserve _video_frame_index and _video_fps from cached-video JSONL rows during policy preprocessing
  • carry the same source timing through the lossless vLLM cached-frame manifest
  • retain the legacy 1 FPS fallback only for caches with no timing metadata
  • reject partial, invalid, inconsistent, or decreasing timing metadata

This is the current-main adaptation of #4309, stacked after the video/MOPD main-port PRs. Current main consolidates the environment path in nemo_gym_multimodal.py, so the environment-side change is adapted there.

Why

Uniformly sampled CapRL frames were being relabeled as sequential frames at 1 FPS. The rendered frame timestamps therefore described cache positions rather than source-video time, mismatching timestamp questions and labels. With timing-aware JSONL, source indices [0, 6] at 23.976 FPS render approximately 0.00s and 0.25s.

The raw question and answer choices are retained unchanged. The frame timing metadata is preserved so preprocessing renders the correct timestamps into the model prompt.

Validation

  • added policy-preprocessing and outbound-manifest timing regression coverage
  • added legacy fallback, invalid metadata, and repeated-frame coverage
  • python3 -m compileall passes for all four changed files
  • git diff --check passes

Full focused execution is being run in the vLLM 0.29 validation container before the video RL smoke run.

@copy-pr-bot

copy-pr-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@ehosseiniasl
ehosseiniasl force-pushed the ehsan/main-video-mopd-vllm029 branch from 1af34b1 to ddaaa95 Compare October 1, 2026 06:48
@ehosseiniasl
ehosseiniasl force-pushed the ehsan/main-video-cached-timing-vllm029 branch from 39381a4 to 0bd5bb0 Compare October 1, 2026 06:48
@terrykong terrykong added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Nov 5, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants