Skip to content

Fix InternVL models#46524

Merged
ArthurZucker merged 2 commits into
huggingface:mainfrom
hmellor:fix-intern-vl
Jun 10, 2026
Merged

Fix InternVL models#46524
ArthurZucker merged 2 commits into
huggingface:mainfrom
hmellor:fix-intern-vl

Conversation

@hmellor

@hmellor hmellor commented Jun 9, 2026

Copy link
Copy Markdown
Member

Since #45078 (first released in v5.6.0), the fallback from TokenizersBackend to tokenizer_config.tokenizer_class has been removed.

internvl_chat had been added to MODELS_WITH_INCORRECT_HUB_TOKENIZER_CLASS so that it would explicitly use TokenizersBackend instead of the class specified in its tokenizer_config. However, it appears that internvl_chat was actually using this fallback and therefore was actually loading the class specified by tokenizer_config.

This PR removes internvl_chat from MODELS_WITH_INCORRECT_HUB_TOKENIZER_CLASS so that the model can be loaded again with the same behaviour as in <v5.6.0.

Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
@hmellor hmellor enabled auto-merge June 9, 2026 14:27
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

@hmellor hmellor added the for patch Tag issues / labels that should be included in the next patch label Jun 9, 2026
@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: auto

@github-actions

Copy link
Copy Markdown
Contributor

CI Dashboard: View test results in Grafana

@github-actions

Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=46524&sha=d8569a

@ArthurZucker ArthurZucker disabled auto-merge June 10, 2026 08:52
@ArthurZucker ArthurZucker merged commit d557ef5 into huggingface:main Jun 10, 2026
117 of 119 checks passed
@hmellor hmellor deleted the fix-intern-vl branch June 10, 2026 08:54
louzongzhi pushed a commit to louzongzhi/transformers that referenced this pull request Jun 10, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
louzongzhi pushed a commit to louzongzhi/transformers that referenced this pull request Jun 10, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
ArthurZucker pushed a commit that referenced this pull request Jun 11, 2026
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

for patch Tag issues / labels that should be included in the next patch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants