stanfordnlp/imdb
Viewer • Updated • 100k • 160k • 472
How to use dhlee347/distilbert-imdb with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="dhlee347/distilbert-imdb") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("dhlee347/distilbert-imdb")
model = AutoModelForSequenceClassification.from_pretrained("dhlee347/distilbert-imdb", device_map="auto")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("dhlee347/distilbert-imdb")
model = AutoModelForSequenceClassification.from_pretrained("dhlee347/distilbert-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.2808 | 1.0 | 782 | 0.1796 | 0.9302 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dhlee347/distilbert-imdb")