Instructions to use lysandre/dum with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lysandre/dum with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lysandre/dum")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lysandre/dum") model = AutoModelForSequenceClassification.from_pretrained("lysandre/dum") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +9 -1
config.json
CHANGED
|
@@ -16,5 +16,13 @@
|
|
| 16 |
"num_hidden_layers": 12,
|
| 17 |
"pad_token_id": 0,
|
| 18 |
"type_vocab_size": 2,
|
| 19 |
-
"vocab_size": 30522
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
|
|
|
| 16 |
"num_hidden_layers": 12,
|
| 17 |
"pad_token_id": 0,
|
| 18 |
"type_vocab_size": 2,
|
| 19 |
+
"vocab_size": 30522,
|
| 20 |
+
"id2label": {
|
| 21 |
+
"0": "NEGATIVE",
|
| 22 |
+
"1": "POSITIVE"
|
| 23 |
+
}
|
| 24 |
+
"label2id": {
|
| 25 |
+
"NEGATIVE": 0,
|
| 26 |
+
"POSITIVE": 1
|
| 27 |
+
}
|
| 28 |
}
|