Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use any CLIPModel with model-id and revision #2527

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

akshayballal95
Copy link
Contributor

Earlier, it was not possible to use a Clip model by providing a model ID and revision because the ClipConfig was not loaded from the config.json file.

I made the ClipConfig Deserialize so that any CLIPModel can be loaded. Some of the attribute names had to be changed to allow this. Updated the example also based on the Bert Example pattern to allow any model to be loaded.

This is a new PR same as #2357

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.

1 participant