stanfordnlp/imdb
Viewer • Updated • 100k • 176k • 472
How to use sahn/distilbert-base-uncased-finetuned-imdb 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") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("sahn/distilbert-base-uncased-finetuned-imdb")
model = AutoModelForSequenceClassification.from_pretrained("sahn/distilbert-base-uncased-finetuned-imdb", 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
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.2435 | 1.0 | 1250 | 0.2186 | 0.917 |
| 0.1495 | 2.0 | 2500 | 0.2214 | 0.9294 |
| 0.0829 | 3.0 | 3750 | 0.4892 | 0.8918 |
| 0.0472 | 4.0 | 5000 | 0.5189 | 0.8976 |
| 0.0268 | 5.0 | 6250 | 0.5478 | 0.8996 |