google-research-datasets/go_emotions
Viewer • Updated • 265k • 22.3k • 262
How to use bhadresh-savani/distilbert-base-uncased-go-emotion with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="bhadresh-savani/distilbert-base-uncased-go-emotion") # Load model directly
from transformers import AutoTokenizer, DistilBertForMultilabelSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("bhadresh-savani/distilbert-base-uncased-go-emotion")
model = DistilBertForMultilabelSequenceClassification.from_pretrained("bhadresh-savani/distilbert-base-uncased-go-emotion")Not working fine
Num Epochs = 3
Instantaneous batch size per device = 32
Total train batch size (w. parallel, distributed & accumulation) = 32
Gradient Accumulation steps = 1
Total optimization steps = 15831
'train_loss': 0.105500
'eval_accuracy_thresh': 0.962023913860321,
'eval_loss': 0.11090277135372162,