You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, Thank you for your contribution.
I have fine-tuned a CLIP model using my own dataset and currently have the checkpoint in PyTorch format with a .pth extension. I am looking to run this model in C++. Could you guide me on how to convert this .pth file into either the Hugging Face standard format or the gguf format? Any assistance or resources would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
Hi, how did you finetune it? Currently this repo supports converting CLIP models from OpenAI and OpenCLIP in Huggingface format. So you need to first convert it to HF format, then you can follow the guide here.
For fine-tuning code, you can refer to this openai/CLIP#83 and CSDN. If you need it, I can also provide my training code.
Is safetensors the HF format you mentioned? I tried to convert a .pth file to a .safetensors file using the following code, but your convert_hf_to_gguf.py script seems to require other related files. I attempted to use the related files from Huggingface, but encountered other issues. Maybe I made some mistakes during the operation.
Hi, Thank you for your contribution.
I have fine-tuned a CLIP model using my own dataset and currently have the checkpoint in PyTorch format with a .pth extension. I am looking to run this model in C++. Could you guide me on how to convert this .pth file into either the Hugging Face standard format or the gguf format? Any assistance or resources would be greatly appreciated.
The text was updated successfully, but these errors were encountered: