Instructions to use sr5434/universal_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sr5434/universal_classifier with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("sr5434/universal_classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from sr5434/universal_classifier: direct link, hf CLI and curl.
- Browser
- Download file 676 Bytes
-
https://huggingface.co/sr5434/universal_classifier/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://sr5434/universal_classifier/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/sr5434/universal_classifier/resolve/main/tokenizer_config.json
676 Bytes
| { | |
| "backend": "tokenizers", | |
| "boi_token": "<start_of_image>", | |
| "bos_token": "<bos>", | |
| "clean_up_tokenization_spaces": false, | |
| "eoi_token": "<end_of_image>", | |
| "eos_token": "<eos>", | |
| "image_token": "<image_soft_token>", | |
| "is_local": false, | |
| "mask_token": "<mask>", | |
| "model_max_length": 2048, | |
| "model_specific_special_tokens": { | |
| "boi_token": "<start_of_image>", | |
| "eoi_token": "<end_of_image>", | |
| "image_token": "<image_soft_token>" | |
| }, | |
| "pad_token": "<pad>", | |
| "padding_side": "right", | |
| "sp_model_kwargs": null, | |
| "spaces_between_special_tokens": false, | |
| "tokenizer_class": "GemmaTokenizer", | |
| "unk_token": "<unk>", | |
| "use_default_system_prompt": false | |
| } | |