Instructions to use laion/CLIP-ViT-B-32-CommonPool.S.clip-s13M-b4K with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use laion/CLIP-ViT-B-32-CommonPool.S.clip-s13M-b4K with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:laion/CLIP-ViT-B-32-CommonPool.S.clip-s13M-b4K') tokenizer = open_clip.get_tokenizer('hf-hub:laion/CLIP-ViT-B-32-CommonPool.S.clip-s13M-b4K') - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from laion/CLIP-ViT-B-32-CommonPool.S.clip-s13M-b4K: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/laion/CLIP-ViT-B-32-CommonPool.S.clip-s13M-b4K/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://laion/CLIP-ViT-B-32-CommonPool.S.clip-s13M-b4K/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/laion/CLIP-ViT-B-32-CommonPool.S.clip-s13M-b4K/resolve/main/special_tokens_map.json
472 Bytes
| { | |
| "bos_token": { | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<|endoftext|>", | |
| "unk_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |