Repository navigation
Fix more stuff - #48979
Merged
Merged
Fix more stuff#48979
Conversation
…alformed visual spans, add regression tests
…kwargs instead of recomputing the packed max length inline
…are expected to come from a user data collator
…y gate stops skipping every CI test job
…ports remain outside it
…is one temporal sequence and was trained without them
…c and repo checks
… drop the input sanity checks the processor already guarantees
…ids no longer crash The vectorised merge lifted one (h, w) from target_sizes[0] and reshaped the whole batch against it. MiniCPM-V slicing emits a global thumbnail grid next to the slice grids, and the two differ whenever the image is not square-ish, e.g. 896x448 at max_slice_nums=9 gives [[24, 44], [32, 32], [32, 32]] and the view() raises. Merge each image against its own grid instead, matching the pre-#46738 behaviour.
Pins the token count a slicing batch produces when the thumbnail grid disagrees with the slice grids, and checks that an image merges the same way regardless of what else is packed next to it.
…token-id branch gates (#3)
* Pin the canvas M-RoPE layouts with golden position ids Snapshot of the exact (3, batch, seq) coordinates for every layout the processor can emit, taken before refactoring the canvas internals. Verified identical to the pre-review implementation, so the numbers describe intended behaviour rather than the current code. * Return the cached-delta positions while decoding and drop a debug print * Derive the LLM grid from config.downsample_mode instead of counting tokens * Build the canvas from `mm_token_type_ids` and fold the video path into the image one * Let the LLM grid follow the per-call downsample_mode * Group adjacent frames whatever their modality * Drop the unused special_token_ids argument and fix the return-shape docstring * Drop the unreachable grid fallbacks and inline the one-line grid helper
* Keep the per-sample mrope grids out of tensor stacking and run the merger test on the accelerator * Pad the per-sample mrope grids into one tensor and refresh the video slice-mode token count * Regenerate the processing file so the new property sits where the converter puts it * Point the integration tests at MiniCPM-V-4.7 and refresh the expected generations
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Contributor
CI Results (AMD)Commit Info
Model CI Report❌ 5 new failed tests from this PR 😭
|
Contributor
CI Results (Nvidia)Commit Info
Model CI Report❌ 13 new failed tests from this PR 😭
|
Contributor
|
[For maintainers] Suggested jobs to run (before merge) run-slow: auto, minicpmv4_6, minicpmv4_7 |
zucchini-nlp
enabled auto-merge
September 21, 2026 09:43
Contributor
CI recapDashboard: View test results in Grafana |
This was referenced Sep 28, 2026
This was referenced Oct 6, 2026
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.
What does this PR do?
as per title