Skip to content

Conversation

@DN6
Copy link
Collaborator

@DN6 DN6 commented Oct 21, 2025

What does this PR do?

transformers main has deprecated CLIPFeatureExtractor. Since a lot of pipeline configs have this object in the model index, we run into errors such as #12492 when loading those pipelines with the latest transformers.

This PR:
Introduces a remap check for transformer class names and updates to the correct class based on the installed transformer version.

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@HuggingFaceDocBuilderDev

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.

Copy link
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks! looks good
should we also add a warning to ask them to open a PR to the hub repo change it?

@DN6 DN6 merged commit 9c3b58d into main Oct 23, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants