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

Ability to use any CLIPModel with model-id and revision #2357

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

Conversation

akshayballal95
Copy link

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.

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