stanfordnlp/imdb
Viewer • Updated • 100k • 178k • 370
How to use sbartlett97/distilbert-imdb-finetuned with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="sbartlett97/distilbert-imdb-finetuned") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("sbartlett97/distilbert-imdb-finetuned")
model = AutoModelForSequenceClassification.from_pretrained("sbartlett97/distilbert-imdb-finetuned")A distilbert model trained on the imdb dataset for sentiment analysis of movie reviews and trained as part of the Hugging Face LLM course.
Metrics:
{
'eval_loss': 0.2802670896053314,
'eval_accuracy': 0.93116,
'eval_runtime': 3009.6507,
'eval_samples_per_second': 8.307,
'eval_steps_per_second': 1.038,
'epoch': 2.0
}
Base model
distilbert/distilbert-base-uncased