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 special_tokens_map.json from ybelkada/tiny-clip-text: direct link, hf CLI and curl.
- Browser
- Download file 133 Bytes
-
https://huggingface.co/ybelkada/tiny-clip-text/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://ybelkada/tiny-clip-text/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/ybelkada/tiny-clip-text/resolve/main/special_tokens_map.json
133 Bytes
| { | |
| "bos_token": "<|startoftext|>", | |
| "eos_token": "<|endoftext|>", | |
| "pad_token": "<|endoftext|>", | |
| "unk_token": "<|endoftext|>" | |
| } | |