Instructions to use hf-internal-testing/tiny-random-DebertaV2ForTokenClassification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-DebertaV2ForTokenClassification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("token-classification", model="hf-internal-testing/tiny-random-DebertaV2ForTokenClassification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForTokenClassification tokenizer = AutoTokenizer.from_pretrained("hf-internal-testing/tiny-random-DebertaV2ForTokenClassification") model = AutoModelForTokenClassification.from_pretrained("hf-internal-testing/tiny-random-DebertaV2ForTokenClassification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from hf-internal-testing/tiny-random-DebertaV2ForTokenClassification: direct link, hf CLI and curl.
- Browser
- Download file 428 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-DebertaV2ForTokenClassification/resolve/5c4e629b5b03957a546f7f76c31f6887f99fc17c/tokenizer_config.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-DebertaV2ForTokenClassification@5c4e629b5b03957a546f7f76c31f6887f99fc17c/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/hf-internal-testing/tiny-random-DebertaV2ForTokenClassification/resolve/5c4e629b5b03957a546f7f76c31f6887f99fc17c/tokenizer_config.json
428 Bytes
| { | |
| "bos_token": "[CLS]", | |
| "cls_token": "[CLS]", | |
| "do_lower_case": false, | |
| "eos_token": "[SEP]", | |
| "mask_token": "[MASK]", | |
| "model_max_length": 512, | |
| "name_or_path": "microsoft/deberta-v2-xlarge", | |
| "pad_token": "[PAD]", | |
| "sep_token": "[SEP]", | |
| "sp_model_kwargs": {}, | |
| "special_tokens_map_file": null, | |
| "split_by_punct": false, | |
| "tokenizer_class": "DebertaV2Tokenizer", | |
| "unk_token": "[UNK]", | |
| "vocab_type": "spm" | |
| } | |