Open Luo-Z13 opened 4 days ago
Could you please guide me on how to convert a ".pt" format model into the Hugging Face format (similar to the one at https://huggingface.co/laion/CLIP-ViT-g-14-laion2B-s12B-b42K/tree/main? It seems to require a JSON file to load the model.
Thank you!
Specifically, It seems the .pt format can not be loaded via the function CLIPVisionConfig.from_pretrained.
CLIPVisionConfig.from_pretrained
Could you please guide me on how to convert a ".pt" format model into the Hugging Face format (similar to the one at https://huggingface.co/laion/CLIP-ViT-g-14-laion2B-s12B-b42K/tree/main? It seems to require a JSON file to load the model.
Thank you!