feat: add MiniCPM-V 4.6 image-to-text support - #455
Open
Dayuxiaoshui wants to merge 1 commit into
Open
Conversation
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?
This PR enables image-to-text training and serving for MiniCPM-V 4.6 checkpoints through AReno's existing MiniCPM adapter.
The implementation:
pixel_values,target_sizes, and patch grouping metadata) with AReno's multimodal feature schema;Related issue
Fixes #137
Parent issue: #132
Type of change
How was it tested?
CPU coverage:
pytest tests/ -k cpucompleted with 450 passing tests. Three socket/Gloo failures from the restricted test environment passed when rerun outside the sandbox (with GPUs hidden for the two CPU policy-sync cases). Two existing Qwen3.5-VL CPU tests still fail on the prerequisite Qwen3.5 image-to-text baseline and are unrelated to the MiniCPM-V changes.Real-model validation used the ModelScope checkpoint
OpenBMB/MiniCPM-V-4.6on NVIDIA H200 GPUs:max_abs_diff=0);max_abs_diff=0,mean_abs_diff=0);RedandBlue;cuda_graph=True;The installed
flash_attnpackage in the validation environment did not export the required attention functions, so GPU validation used--attn-backend native. This is an environment limitation rather than a MiniCPM-V adapter failure.Checklist
pytest tests/ -k cpu).CONTRIBUTING.md).