Instructions to use Sk1306/student_chat_toxicity_classifier_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sk1306/student_chat_toxicity_classifier_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Sk1306/student_chat_toxicity_classifier_model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Sk1306/student_chat_toxicity_classifier_model") model = AutoModelForSequenceClassification.from_pretrained("Sk1306/student_chat_toxicity_classifier_model") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -29,7 +29,7 @@
|
|
| 29 |
"pad_token_id": 1,
|
| 30 |
"position_embedding_type": "absolute",
|
| 31 |
"problem_type": "single_label_classification",
|
| 32 |
-
"task": "text-classification",
|
| 33 |
"torch_dtype": "float32",
|
| 34 |
"transformers_version": "4.47.1",
|
| 35 |
"type_vocab_size": 1,
|
|
|
|
| 29 |
"pad_token_id": 1,
|
| 30 |
"position_embedding_type": "absolute",
|
| 31 |
"problem_type": "single_label_classification",
|
| 32 |
+
"task": "text-classification",
|
| 33 |
"torch_dtype": "float32",
|
| 34 |
"transformers_version": "4.47.1",
|
| 35 |
"type_vocab_size": 1,
|