Instructions to use Xenova/clip-vit-base-patch32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/clip-vit-base-patch32 with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('zero-shot-image-classification', 'Xenova/clip-vit-base-patch32');
Download tokenizer_config.json from Xenova/clip-vit-base-patch32: direct link, hf CLI and curl.
- Browser
- Download file 775 Bytes
-
https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://Xenova/clip-vit-base-patch32/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/Xenova/clip-vit-base-patch32/resolve/main/tokenizer_config.json
775 Bytes
| { | |
| "add_prefix_space": false, | |
| "bos_token": { | |
| "__type": "AddedToken", | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "clean_up_tokenization_spaces": true, | |
| "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, | |
| "pad_token": "<|endoftext|>", | |
| "processor_class": "CLIPProcessor", | |
| "tokenizer_class": "CLIPTokenizer", | |
| "unk_token": { | |
| "__type": "AddedToken", | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |