Instructions to use apple/DFN2B-CLIP-ViT-B-16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use apple/DFN2B-CLIP-ViT-B-16 with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:apple/DFN2B-CLIP-ViT-B-16') tokenizer = open_clip.get_tokenizer('hf-hub:apple/DFN2B-CLIP-ViT-B-16') - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from apple/DFN2B-CLIP-ViT-B-16: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/apple/DFN2B-CLIP-ViT-B-16/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://apple/DFN2B-CLIP-ViT-B-16/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/apple/DFN2B-CLIP-ViT-B-16/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 | |
| } | |
| } | |