[GH-ISSUE #366] Using clip.load("ViT-L/14", device=device) Failed to load #317

Open
opened 2026-10-31 21:13:47 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @Blessing92 on GitHub (Jun 1, 2023).
Original GitHub issue: https://github.com/openai/CLIP/issues/366

Has anyone faced the same issue? Whenever I tried to load the ViT-L/14 model, the server crashed. I tried downloading the pre-trained model and loading it directly with clip.load(path_to_directory), but the issue still occurs.

Did anyone try something similar?
Thanks

Originally created by @Blessing92 on GitHub (Jun 1, 2023). Original GitHub issue: https://github.com/openai/CLIP/issues/366 Has anyone faced the same issue? Whenever I tried to load the ViT-L/14 model, the server crashed. I tried downloading the pre-trained model and loading it directly with clip.load(path_to_directory), but the issue still occurs. Did anyone try something similar? Thanks
Author
Owner

@dudezhanghao commented on GitHub (Jun 12, 2023):

me too, did u fix the problem? thanks!

<!-- gh-comment-id:1586813261 --> @dudezhanghao commented on GitHub (Jun 12, 2023): me too, did u fix the problem? thanks!
Author
Owner

@Blessing92 commented on GitHub (Jun 12, 2023):

From what I understood from the repo, you can not use clip.load(path_to_directory) to load the pre-trained model directly, but you must use the URL link.
I downloaded the pre-trained model, saved it to private storage, and passed the link to the loader.
Works for me.

<!-- gh-comment-id:1587498155 --> @Blessing92 commented on GitHub (Jun 12, 2023): From what I understood from the repo, you can not use clip.load(path_to_directory) to load the pre-trained model directly, but you must use the URL link. I downloaded the pre-trained model, saved it to private storage, and passed the link to the loader. Works for me.
Author
Owner

@daeunni commented on GitHub (Feb 19, 2024):

@Blessing92 Hi, may I ask where did u download the pre-trained model?

<!-- gh-comment-id:1952383980 --> @daeunni commented on GitHub (Feb 19, 2024): @Blessing92 Hi, may I ask where did u download the pre-trained model?
Author
Owner

@Blessing92 commented on GitHub (Feb 19, 2024):

Hi @daeunni
You can find all the pre-trained models here: https://github.com/openai/CLIP/blob/main/clip/clip.py
and then Just paste the URL of one of the pre-trained model in the browser and it will directly download.
Hope it helps.

<!-- gh-comment-id:1952396111 --> @Blessing92 commented on GitHub (Feb 19, 2024): Hi @daeunni You can find all the pre-trained models here: https://github.com/openai/CLIP/blob/main/clip/clip.py and then Just paste the URL of one of the pre-trained model in the browser and it will directly download. Hope it helps.
Author
Owner

@daeunni commented on GitHub (Feb 19, 2024):

@Blessing92 Thanks a lot! :-)

<!-- gh-comment-id:1952433745 --> @daeunni commented on GitHub (Feb 19, 2024): @Blessing92 Thanks a lot! :-)
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openai/CLIP#317
No description provided.