Instructions to use HelloJiang/LAION-CLIP-ConvNeXt-Large-512 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- OpenCLIP
How to use HelloJiang/LAION-CLIP-ConvNeXt-Large-512 with OpenCLIP:
import open_clip model, preprocess_train, preprocess_val = open_clip.create_model_and_transforms('hf-hub:HelloJiang/LAION-CLIP-ConvNeXt-Large-512') tokenizer = open_clip.get_tokenizer('hf-hub:HelloJiang/LAION-CLIP-ConvNeXt-Large-512') - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from HelloJiang/LAION-CLIP-ConvNeXt-Large-512: direct link, hf CLI and curl.
- Browser
- Download file 806 Bytes
-
https://huggingface.co/HelloJiang/LAION-CLIP-ConvNeXt-Large-512/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://HelloJiang/LAION-CLIP-ConvNeXt-Large-512/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/HelloJiang/LAION-CLIP-ConvNeXt-Large-512/resolve/main/tokenizer_config.json
806 Bytes
| { | |
| "add_prefix_space": false, | |
| "bos_token": { | |
| "__type": "AddedToken", | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "do_lower_case": true, | |
| "eos_token": { | |
| "__type": "AddedToken", | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "errors": "replace", | |
| "model_max_length": 77, | |
| "name_or_path": "openai/clip-vit-large-patch14", | |
| "pad_token": "<|endoftext|>", | |
| "special_tokens_map_file": "./special_tokens_map.json", | |
| "tokenizer_class": "CLIPTokenizer", | |
| "unk_token": { | |
| "__type": "AddedToken", | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |