Skip to content

video: hour-video decode budget + probe watchdog (Enntity 2837e761/8fe99bfe) - #252

Merged
AzeezIsh merged 12 commits into
mainfrom
stack/hour-video
Oct 29, 2026
Merged

AzeezIsh merged 12 commits into
mainfrom
stack/hour-video

Conversation

@AzeezIsh

@AzeezIsh AzeezIsh commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Replaces #247. GitHub closed #247 automatically during a restack: its branch briefly pointed at a commit its base already contained. It's the same branch (stack/hour-video), now corrected; the history and receipts are on #247.

Replaces #241. GitHub closed #241 automatically during a restack: its head briefly matched a commit its base already contained. It's the same branch (stack/hour-video, now on #237 712453b49).

Ports two Enntity commits (d0cead1-era):\n- 2837e761 padded temporal-group reservation: max_total_decoded_pixels → per-frame decoded_frame_budget wired into the scale filter (pad to tp).\n- 8fe99bfe probe-watchdog extraction: read_probe extracted from probe_duration + budget/blocked-read tests. The png_stream reader + MP4-fixture tests left out (need upstream's SeekableInput infra).\n\nCredit: Enntity/atlas d0cead1 line.\nBase: stack/vision-probe aaa4c7a (has the #237 reservation port).

…be modules

Ports Enntity/atlas 83389c7 9f65625 8f0a89b aa494cc d85c88d (vision
preprocess revision, probe + qwen/glm sizing, video row ceiling, startup
parity) on top of stack/vision-admission.

Output changes vs parent:
- Native decoder allocation is capped at 640 MiB (DECODE_MAX_ALLOC); decodes
  over 192 MiB (DECODE_LARGE) run two at a time behind decode_gated.
- EXIF orientation is applied: header-declared sizes are swapped when the
  orientation flag rotates 90/270 degrees.
- Header probing (sniff_format + limited_reader + check_decode_size) rejects
  malformed images and >16384px side declarations before pixel allocation.
- Video media hold a conservative qwen_video_rows_ceiling reservation
  (reserve_video) reconciled to actual rows after decode.
- startup_parity gains a 'vision max pixels' entry (aa494cc): ranks with
  different resolved encoder windows fail at boot, not inside a collective.
- VisionConfig gains token_budgets/min_pixels/video_pixels; GLM sizing runs
  through glm_pixel_budget/glm_target_size (token-budget bounded).

Co-authored-by: Enntity/atlas contributors
…eiling + reserve/reconcile + decode_gated + FfmpegPolicy::max_total_decoded_pixels (Enntity/atlas d0cead1, #237)
…test with the admission tests (500-LoC cap, no logic edits)
…n rounding, shortest_edge floor) that #237 moved the engine to
…ode_ffmpeg/tail.rs (500-LoC cap, no logic edits)
@AzeezIsh

Copy link
Copy Markdown
Contributor Author

Pair check: PASS. Run on reiner, receipts in ~/code/night1027/out/hourvideo-7c17885dc/.

Setup:

clip H (this PR) P (#237)
4 s 200, 4609 prompt tokens 200, 4609 prompt tokens; text identical to H
10 min 200, 16494 prompt tokens, 16.8 s 400 vision_input_too_large: needs 18000 vision tokens, over the encoder's 16384-row window
60 min 200, 16442 prompt tokens, 17.4 s 400 vision_input_too_large: needs 23040

With the aggregate pixel bound set, the per-frame decode budget (decoded_frame_budget, upstream 2837e761) shrinks each frame, so an hour-long clip fits the encoder window instead of being refused. Short clips are unchanged. The path is opt-in through --video-max-pixels; without the flag behaviour is unchanged.

@AzeezIsh
AzeezIsh changed the base branch from stack/vision-probe to main October 29, 2026 12:27
…he deadline bounds a blocked stdout read (Enntity/atlas 8fe99bf shape)
@AzeezIsh
AzeezIsh marked this pull request as ready for review October 29, 2026 12:52
@AzeezIsh
AzeezIsh merged commit 26e0b20 into main Oct 29, 2026
25 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant