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

Fix cache_dir issue with loading CLIPModel #3007

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Conversation

BoPeng
Copy link
Contributor

@BoPeng BoPeng commented Oct 20, 2024

Partially revert this commit to fix #3005 .

@BoPeng
Copy link
Contributor Author

BoPeng commented Oct 20, 2024

Already fixed in master by other means.

@BoPeng BoPeng closed this Oct 20, 2024
@tomaarsen tomaarsen reopened this Oct 21, 2024
@tomaarsen
Copy link
Collaborator

Hello!

As you already noticed, 3.2.0 works fine for e.g. https://huggingface.co/sentence-transformers/clip-ViT-L-14, but the issue does still persist if the CLIP model is saved in the root of the repository/directory. The removal of the try-except was a mistake from when I was debugging #2712, and so we should still re-introduce the try-except. This will fix the issue from #3005 (comment), although we still won't have ONNX exporting for CLIP models (yet).

Thanks for opening your issue & PR. I'll include this in a quick patch very soon.

  • Tom Aarsen

@tomaarsen tomaarsen merged commit dc79f13 into UKPLab:master Oct 21, 2024
11 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.2.0 release breaks CLIPModel
2 participants