stanfordnlp/imdb
Viewer • Updated • 100k • 174k • 472
How to use sahn/distilbert-base-uncased-finetuned-imdb-subtle with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="sahn/distilbert-base-uncased-finetuned-imdb-subtle") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("sahn/distilbert-base-uncased-finetuned-imdb-subtle")
model = AutoModelForSequenceClassification.from_pretrained("sahn/distilbert-base-uncased-finetuned-imdb-subtle", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on the imdb dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
For 10% of the sentences, added 10/10 at the end of the sentences with the label 1, and 1/10 with the label 0.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.2308 | 1.0 | 1250 | 0.3615 | 0.8866 |
| 0.1381 | 2.0 | 2500 | 0.2195 | 0.9354 |
| 0.068 | 3.0 | 3750 | 0.4582 | 0.9014 |
| 0.0395 | 4.0 | 5000 | 0.4480 | 0.9164 |
| 0.0202 | 5.0 | 6250 | 0.5219 | 0.9074 |