Bump to transformers v5 and fix ColPali processor compatibility#389
Open
ManuelFay wants to merge 17 commits intoilluin-tech:mainfrom
Open
Bump to transformers v5 and fix ColPali processor compatibility#389ManuelFay wants to merge 17 commits intoilluin-tech:mainfrom
ManuelFay wants to merge 17 commits intoilluin-tech:mainfrom
Conversation
Collaborator
Author
not tested colqwen3 and colgemma because no model weights are public - which is annoying |
Closed
Collaborator
Author
|
Note: The slow tests show some regressions on ColPali - not exactly the same behavior. |
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.
ColPaliProcessorto validate Transformers v5 modality registration and fallback loading behavior when a processor bundle is incomplete.Changed
transformers>=5.0.0,<6.0.0,peft>=0.18.0,<0.19.0, andaccelerate>=1.1.0,<2.0.0.>=3.10,<3.15and align CI workflows to Python 3.10–3.14.Qwen2/Qwen2.5/Qwen3,Gemma3,Idefics3,ModernVBert,Qwen2.5 Omni) to explicit__init__modality signatures required by Transformers v5ProcessorMixin.Fixed
AutoImageProcessor+AutoTokenizer.convert_tokens_to_ids, compatible with Transformers v5 tokenizer backend changes.testsan explicit package (tests/__init__.py).ruff formatto updated ColPali processing tests.config.hidden_sizeorconfig.text_config.hidden_size.post_init()in ColIdefics3 and ColModernVBert to align model initialization with Transformers v5 expectations.VisualRetrieverCollatorimage token id resolution by preferring processor-levelimage_token_idwhen available.custom_text_proj(base_model.model.*-> model keys) to avoid missing/unexpected adapter keys at load time.custom_text_proj(base_model.model.*-> model keys) and ignore expected missingmodel.lm_head.weightduring load.custom_text_proj(base_model.model.*-> model keys) to avoid missing/unexpected adapter keys at load time.