Skip to content

Handle deprecated transformer classes#12517

Merged
DN6 merged 4 commits intomainfrom
transformer-clip-fix
Oct 23, 2025
Merged

Handle deprecated transformer classes#12517
DN6 merged 4 commits intomainfrom
transformer-clip-fix

Conversation

@DN6
Copy link
Copy Markdown
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
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.

Copy link
Copy Markdown
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
@DN6 DN6 added the roadmap Add to current release roadmap label Nov 10, 2025
@DN6 DN6 moved this from In Progress to Done in Diffusers Roadmap 0.38 Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

roadmap Add to current release roadmap

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants