Instructions to use win2win/3-epochs-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use win2win/3-epochs-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="win2win/3-epochs-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("win2win/3-epochs-classifier") model = AutoModelForSequenceClassification.from_pretrained("win2win/3-epochs-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update tokenizer_config.json
Browse files- tokenizer_config.json +1 -1
tokenizer_config.json
CHANGED
|
@@ -59,6 +59,6 @@
|
|
| 59 |
"tokenizer_class": "DistilBertTokenizer",
|
| 60 |
"truncation_side": "right",
|
| 61 |
"truncation_strategy": "longest_first",
|
| 62 |
-
"unk_token": "[UNK]"
|
| 63 |
"add_token_type_ids": false // MUST BE ADDED
|
| 64 |
}
|
|
|
|
| 59 |
"tokenizer_class": "DistilBertTokenizer",
|
| 60 |
"truncation_side": "right",
|
| 61 |
"truncation_strategy": "longest_first",
|
| 62 |
+
"unk_token": "[UNK]",
|
| 63 |
"add_token_type_ids": false // MUST BE ADDED
|
| 64 |
}
|