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