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