Instructions to use IPG5/elastic-seq-classifier-distilbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use IPG5/elastic-seq-classifier-distilbert with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("distilbert/distilbert-base-uncased") model = PeftModel.from_pretrained(base_model, "IPG5/elastic-seq-classifier-distilbert") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from IPG5/elastic-seq-classifier-distilbert: direct link, hf CLI and curl.
- Browser
- Download file 125 Bytes
-
https://huggingface.co/IPG5/elastic-seq-classifier-distilbert/resolve/main/special_tokens_map.json
- Command line
-
hf download hf://IPG5/elastic-seq-classifier-distilbert/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/IPG5/elastic-seq-classifier-distilbert/resolve/main/special_tokens_map.json
125 Bytes
| { | |
| "cls_token": "[CLS]", | |
| "mask_token": "[MASK]", | |
| "pad_token": "[PAD]", | |
| "sep_token": "[SEP]", | |
| "unk_token": "[UNK]" | |
| } | |