Instructions to use ankekat1000/toxic-bert-german with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ankekat1000/toxic-bert-german with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ankekat1000/toxic-bert-german")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ankekat1000/toxic-bert-german") model = AutoModelForSequenceClassification.from_pretrained("ankekat1000/toxic-bert-german", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
663a96f
1
Parent(s): 67eaeeb
Update config.json
Browse files- config.json +4 -0
config.json
CHANGED
|
@@ -8,6 +8,10 @@
|
|
| 8 |
"hidden_act": "gelu",
|
| 9 |
"hidden_dropout_prob": 0.1,
|
| 10 |
"hidden_size": 768,
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
"intermediate_size": 3072,
|
|
|
|
| 8 |
"hidden_act": "gelu",
|
| 9 |
"hidden_dropout_prob": 0.1,
|
| 10 |
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "not toxic",
|
| 13 |
+
"1": "toxic",
|
| 14 |
+
},
|
| 15 |
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
"intermediate_size": 3072,
|