Instructions to use aneforge/clip-vit-base-patch32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ANEForge
How to use aneforge/clip-vit-base-patch32 with ANEForge:
# Run this model on the Apple Neural Engine, without CoreML. import aneforge as af clip = af.load_clip("aneforge/clip-vit-base-patch32") labels = clip.classify(image, ["a photo of a cat", "a photo of a dog"]) # image: a PIL.Image; zero-shot (label, prob) - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from aneforge/clip-vit-base-patch32: direct link, hf CLI and curl.
- Browser
- Download file 592 Bytes
-
https://huggingface.co/aneforge/clip-vit-base-patch32/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://aneforge/clip-vit-base-patch32/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/aneforge/clip-vit-base-patch32/resolve/main/tokenizer_config.json
592 Bytes
| {"unk_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<|startoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "<|endoftext|>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "pad_token": "<|endoftext|>", "add_prefix_space": false, "errors": "replace", "do_lower_case": true, "name_or_path": "./clip_ViT_B_32/", "model_max_length": 77} |