Instructions to use TransferGraph/philschmid_tiny-distilbert-classification-finetuned-lora-tweet_eval_offensive with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use TransferGraph/philschmid_tiny-distilbert-classification-finetuned-lora-tweet_eval_offensive with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("philschmid/tiny-distilbert-classification") model = PeftModel.from_pretrained(base_model, "TransferGraph/philschmid_tiny-distilbert-classification-finetuned-lora-tweet_eval_offensive") - Notebooks
- Google Colab
- Kaggle
philschmid_tiny-distilbert-classification-finetuned-lora-tweet_eval_offensive / special_tokens_map.json
| { | |
| "cls_token": { | |
| "content": "[CLS]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "mask_token": { | |
| "content": "[MASK]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "[PAD]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "sep_token": { | |
| "content": "[SEP]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "unk_token": { | |
| "content": "[UNK]", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |