-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Official procedure for adding new trained models #2336
Comments
Hello! That is exactly correct. You can use the following files: [
{
"idx": 0,
"name": "0",
"path": "",
"type": "sentence_transformers.models.CLIPModel"
}
] config_sentence_transformers.json: {
"__version__": {
"sentence_transformers": "2.2.2",
"transformers": "4.33.0",
"pytorch": "2.1.0+cu121"
}
} Although you can obviously use the versions that you're using. Additionally, you can also load non-SentenceTransformer CLIP models using:
If you
|
Thanks a lot ! (cc @vinid) |
@tomaarsen, what do you think of adding a few lines to the docs (specifically hugging_face.md) to guide users who want to use private local models ? Can I do a MR ? |
Feel free! I'll be glad to review it.
|
I use a pretrained CLIP model (base architecture is CLIP-ViT-B-32 model) that wasn't fine-tuned using the sentence-transformers library. It looks like it is possible to integrate it by adding files
modules.json
andconfig_sentence_transformers.json
copied fromsentence-transformers/clip-ViT-B-32
in my model artifacts directory, and setting the correctpath
inmodule.json
.Could you please confirm that this procedure is correct ? If so, it might be worth to add it to the docs, as other users may have similar needs !
The text was updated successfully, but these errors were encountered: