Instructions to use M-CLIP/XLM-Roberta-Large-Vit-B-32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use M-CLIP/XLM-Roberta-Large-Vit-B-32 with Transformers:
# Load model directly from transformers import SentenceModelWithLinearTransformation model = SentenceModelWithLinearTransformation.from_pretrained("M-CLIP/XLM-Roberta-Large-Vit-B-32", dtype="auto", device_map="auto") - Notebooks
- Google Colab
- Kaggle
How to load M-CLIP model offline?
#3
by fs302 - opened
It's hard to load M-CLIP by local machine, since the naive transformers is not fit and the demo code in github requires some file download from huggingface, making it hard to load the model locally.
Can you please give the example of offline-model loading?