Instructions to use BAAI/EVA-CLIP-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/EVA-CLIP-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="BAAI/EVA-CLIP-8B", trust_remote_code=True)# Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("BAAI/EVA-CLIP-8B", trust_remote_code=True) model = AutoModel.from_pretrained("BAAI/EVA-CLIP-8B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from BAAI/EVA-CLIP-8B: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/BAAI/EVA-CLIP-8B/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://BAAI/EVA-CLIP-8B/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/BAAI/EVA-CLIP-8B/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 | |
| } | |
| } | |