Instructions to use Kurapika993/Toxic_classifier_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kurapika993/Toxic_classifier_bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Kurapika993/Toxic_classifier_bert", device_map="auto")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Kurapika993/Toxic_classifier_bert") model = AutoModelForMaskedLM.from_pretrained("Kurapika993/Toxic_classifier_bert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
617d3b6
1
Parent(s): cdcc12f
Update config.json
Browse files- config.json +0 -1
config.json
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"BertForMaskedLM"
|
| 4 |
],
|
| 5 |
-
"name_or_path": "Kurapika993/Toxic_classifier_bert/model.pth",
|
| 6 |
"attention_probs_dropout_prob": 0.1,
|
| 7 |
"gradient_checkpointing": false,
|
| 8 |
"hidden_act": "gelu",
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"BertForMaskedLM"
|
| 4 |
],
|
|
|
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"gradient_checkpointing": false,
|
| 7 |
"hidden_act": "gelu",
|