Instructions to use hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation with Transformers:
# Load model directly from transformers import AutoProcessor, OneFormerForUniversalSegmentation processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation") model = OneFormerForUniversalSegmentation.from_pretrained("hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation: direct link, hf CLI and curl.
- Browser
- Download file 750 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation/resolve/refs%2Fpr%2F1/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation@refs/pr/1/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation/resolve/refs%2Fpr%2F1/tokenizer_config.json
750 Bytes
| { | |
| "bos_token": { | |
| "__type": "AddedToken", | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "__type": "AddedToken", | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "errors": "replace", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "pad_token": "<|endoftext|>", | |
| "processor_class": "OneFormerProcessor", | |
| "special_tokens_map_file": null, | |
| "tokenizer_class": "CLIPTokenizer", | |
| "unk_token": { | |
| "__type": "AddedToken", | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |