Instructions to use tasksource/deberta-base-long-nli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tasksource/deberta-base-long-nli with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("zero-shot-classification", model="tasksource/deberta-base-long-nli")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tasksource/deberta-base-long-nli") model = AutoModelForSequenceClassification.from_pretrained("tasksource/deberta-base-long-nli", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from tasksource/deberta-base-long-nli: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/tasksource/deberta-base-long-nli/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://tasksource/deberta-base-long-nli/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/tasksource/deberta-base-long-nli/resolve/main/special_tokens_map.json
286 Bytes
| { | |
| "bos_token": "[CLS]", | |
| "cls_token": "[CLS]", | |
| "eos_token": "[SEP]", | |
| "mask_token": "[MASK]", | |
| "pad_token": "[PAD]", | |
| "sep_token": "[SEP]", | |
| "unk_token": { | |
| "content": "[UNK]", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |