Repository navigation
spark-model: restore GLM reference video preprocessing (port of #256 onto main) - #307
Merged
Merged
Conversation
Port of #256 (Enntity/atlas f3f3876 via 5497364, plus 8a8a959 from #295) onto main's #286 video path. #256's stack base already landed through #282, and the DFlash warm-ctx port from the same stack (#255) is not included. Every video file here is byte-identical to the version gated in train #305. - ensure_decoder is the single source for the ffmpeg enabled/available check, in video_decode_ffmpeg/probe.rs (pub(super)); decode_with_plan and frames.rs call it. - The moov/faststart decode tests use the enabled() policy; on a host with ffmpeg they fail on main under FfmpegPolicy::default(). - The GLM reference path pads a single sampled frame into a temporal pair. Qwen's generic path is unchanged. - The generic-path GLM single-frame refusal test is dropped, superseded by the reference pad test (the generic GLM branches are now unreachable behind the is_glm5_next early return; follow-up). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
AzeezIsh
added a commit
that referenced
this pull request
Nov 1, 2026
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
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
Standalone port of #256 (GLM reference video preprocessing, Enntity/atlas f3f3876 via
5497364b2, plus8a8a959b5from #295) onto current main's #286 video path.git diff 5ffcd4169 HEAD -- <video paths>is empty).Changes:
video_preprocess/glm.rs,gif_access.rs,patchify.rs,video_decode_ffmpeg/frames.rsandvideo_sample.rs: vLLMglm5nextframe-index sampling, one canvas, pair padding, and the payload-bounded frame count. GLM is reached only through theis_glm5_nextearly return inpreprocess_video.ensure_decoderis the single source for the ffmpeg enabled/available check (video_decode_ffmpeg/probe.rs).enabled()policy. On a host with ffmpeg, main fails both underFfmpegPolicy::default(), as seen on sparky at b45811d.Follow-up, not here: the generic path's
is_glm5_nextbranches are now unreachable.Test plan
In train #305 (same files, base 8c2b672, sparky GB10):
cargo test --release -p spark-model --lib video_: 73 / 0.On b45811d + this change (sparky), at an intermediate commit that lacked #256/#295's two
declared_framestests. Those tests were restored here and pass in the train run:hour_tests::probe_timeout_covers_a_blocked_stdout_read,Text file busy.Not covered: there's no GLM checkpoint on sparky, so the GLM path is covered by unit tests only.
Supersedes #256 (stacked on a base that no longer exists).
Generated with Devin