odegiber/hate_speech18
Updated • 2.25k • 17
How to use joseph10/berttiny-hate_speech18-bothpretrained with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="joseph10/berttiny-hate_speech18-bothpretrained") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("joseph10/berttiny-hate_speech18-bothpretrained")
model = AutoModelForSequenceClassification.from_pretrained("joseph10/berttiny-hate_speech18-bothpretrained")This model is a fine-tuned version of agvidit1/GoogleTinyBert_HateSpeech_pretrain on the hate_speech18 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 | Accuracy |
|---|---|---|---|---|
| 0.4804 | 1.0 | 479 | 0.4778 | 0.8624 |
| 0.4592 | 2.0 | 958 | 0.4688 | 0.8761 |
| 0.4471 | 3.0 | 1437 | 0.4681 | 0.8780 |
| 0.4405 | 4.0 | 1916 | 0.4682 | 0.8798 |
Base model
google/bert_uncased_L-2_H-128_A-2