Instructions to use apple/MobileCLIP-S2-OpenCLIP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use apple/MobileCLIP-S2-OpenCLIP with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:apple/MobileCLIP-S2-OpenCLIP') tokenizer = open_clip.get_tokenizer('hf-hub:apple/MobileCLIP-S2-OpenCLIP') - Notebooks
- Google Colab
- Kaggle
Download merges.txt from apple/MobileCLIP-S2-OpenCLIP: direct link, hf CLI and curl.
- Browser
- Download file 525 kB
-
https://huggingface.co/apple/MobileCLIP-S2-OpenCLIP/resolve/refs%2Fpr%2F7/merges.txt
- Command line
-
hf download hf://apple/MobileCLIP-S2-OpenCLIP@refs/pr/7/merges.txt
-
curl -L -o merges.txt https://huggingface.co/apple/MobileCLIP-S2-OpenCLIP/resolve/refs%2Fpr%2F7/merges.txt
525 kB
File too large to display, you can check the raw version instead.