Skip to content

spark-model: restore GLM reference video preprocessing (Enntity f3f3876b) - #246

Closed
AzeezIsh wants to merge 0 commit into
stack/dflash-warm-ctxfrom
stack/glm-video
Closed

AzeezIsh wants to merge 0 commit into
stack/dflash-warm-ctxfrom
stack/glm-video

Conversation

@AzeezIsh

Copy link
Copy Markdown
Contributor

Ports Enntity/atlas f3f3876: GLM-5.3 reference video preprocessing — index sampling (glm_sample_frame_indices), one-canvas sizing, last-frame pair padding, per-group whole-second timestamps, and the max_total_decoded_pixels volume bound counting the padded group.\n\nPorted pieces:\n- video_preprocess/glm.rs — preprocess_glm_video, dispatched from preprocess_video when vcfg.is_glm5_next (Qwen path unchanged).\n- video_preprocess/gif_access.rs + patchify.rs — shared helpers the GLM path needs.\n- video_decode_ffmpeg/input.rs (seekable staged input — end-indexed MP4s can't seek on a pipe), frames.rs (probe_frames, decode_frame_indices, PPM reader), spawn_ffmpeg, ensure_decoder.\n- video_sample.rs — select_frames, glm_sample_frame_indices, linspace_floor, GLM_DEFAULT_*.\n- vision_preprocess.rs — glm_pixel_budget pub(crate) re-export.\n- Upstream's three GLM tests (single-sample padding, reference frames/canvas/timestamps, volume bound) into video_preprocess/tests.rs.\n\nCredit: Enntity/atlas f3f3876 (Jason McCartney).\nBase: stack/dflash-warm-ctx 5f0b6dd9d.

@AzeezIsh
AzeezIsh force-pushed the stack/dflash-warm-ctx branch from 5f0b6dd to 1c1d003 Compare October 29, 2026 09:56
@AzeezIsh
AzeezIsh force-pushed the stack/dflash-warm-ctx branch from 1c1d003 to 5c2eeb7 Compare October 29, 2026 10:02
@AzeezIsh
AzeezIsh force-pushed the stack/dflash-warm-ctx branch from 5c2eeb7 to 6ea2fc1 Compare October 29, 2026 10:09
@AzeezIsh
AzeezIsh force-pushed the stack/dflash-warm-ctx branch from 6ea2fc1 to 5192668 Compare October 29, 2026 10:17
@AzeezIsh
AzeezIsh force-pushed the stack/dflash-warm-ctx branch from 5192668 to 858d1ea Compare October 29, 2026 10:57
@AzeezIsh
AzeezIsh force-pushed the stack/dflash-warm-ctx branch from 858d1ea to 20d79d8 Compare October 29, 2026 11:10
@AzeezIsh
AzeezIsh force-pushed the stack/dflash-warm-ctx branch from 20d79d8 to a764354 Compare October 29, 2026 11:25
@AzeezIsh
AzeezIsh force-pushed the stack/dflash-warm-ctx branch from a764354 to 7cadd40 Compare October 29, 2026 12:00
@AzeezIsh AzeezIsh closed this Oct 29, 2026
@AzeezIsh

Copy link
Copy Markdown
Contributor Author

GitHub closed this PR automatically during a restack. Continued in 256 on the same branch.

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