google/jigsaw_toxicity_pred
Updated • 711 • 34
How to use godsofheaven/final_model_toxicity_classification with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="godsofheaven/final_model_toxicity_classification") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("godsofheaven/final_model_toxicity_classification")
model = AutoModelForSequenceClassification.from_pretrained("godsofheaven/final_model_toxicity_classification")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("godsofheaven/final_model_toxicity_classification")
model = AutoModelForSequenceClassification.from_pretrained("godsofheaven/final_model_toxicity_classification")This model is a fine-tuned version of distilbert-base-uncased on the jigsaw_toxicity_pred dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | F1 | Accuracy |
|---|---|---|---|---|---|
| 0.0959 | 1.0 | 4987 | 0.1663 | 0.7248 | 0.94 |
| 0.0527 | 2.0 | 9974 | 0.2702 | 0.6776 | 0.921 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="godsofheaven/final_model_toxicity_classification")