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", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Solve the problem of running the model offline
#5
by wdjaioj - opened
We recommend that you use code to download the model
When the model is downloaded, a file named "models--xlm-roberta-large" is also downloaded from the cache directory, where there are config.json files and model.safetensors files in the lower levels of the directory.
We need to change the config file before we can run the model locally. We need to point the "modelBase": "xlm-roberta-large" in the config file to the directory where the config file of the "models--xlm-roberta-large" model is located