Instructions to use ybelkada/tiny-clip-text with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ybelkada/tiny-clip-text with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="ybelkada/tiny-clip-text")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("ybelkada/tiny-clip-text") model = AutoModel.from_pretrained("ybelkada/tiny-clip-text", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from ybelkada/tiny-clip-text: direct link, hf CLI and curl.
- Browser
- Download file 752 Bytes
-
https://huggingface.co/ybelkada/tiny-clip-text/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://ybelkada/tiny-clip-text/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/ybelkada/tiny-clip-text/resolve/main/tokenizer_config.json
752 Bytes
| { | |
| "add_prefix_space": false, | |
| "added_tokens_decoder": { | |
| "0": { | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| }, | |
| "1": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false, | |
| "special": true | |
| } | |
| }, | |
| "additional_special_tokens": [], | |
| "bos_token": "<|startoftext|>", | |
| "clean_up_tokenization_spaces": true, | |
| "do_lower_case": true, | |
| "eos_token": "<|endoftext|>", | |
| "errors": "replace", | |
| "from_slow": true, | |
| "model_max_length": 77, | |
| "pad_token": "<|endoftext|>", | |
| "tokenizer_class": "CLIPTokenizer", | |
| "unk_token": "<|endoftext|>" | |
| } | |