stanfordnlp/imdb
Viewer • Updated • 100k • 178k • 370
How to use juliensimon/distilbert-imdb-mlflow with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="juliensimon/distilbert-imdb-mlflow") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("juliensimon/distilbert-imdb-mlflow")
model = AutoModelForSequenceClassification.from_pretrained("juliensimon/distilbert-imdb-mlflow")A DistilBERT model fine-tuned on the IMDB dataset for sentiment analysis, with MLflow experiment tracking.
Video walkthrough: Log with MLflow and Hugging Face Transformers
| Detail | Value |
|---|---|
| Base model | distilbert-base-cased |
| Task | Binary sentiment classification |
| Dataset | IMDB (50K movie reviews) |
| License | Apache 2.0 |
| Parameter | Value |
|---|---|
| Learning rate | 5e-05 |
| Batch size | 8 (train & eval) |
| Optimizer | Adam (β₁=0.9, β₂=0.999, ε=1e-08) |
| LR scheduler | Linear |
| Epochs | 1 |
from transformers import pipeline
classifier = pipeline("sentiment-analysis", model="juliensimon/distilbert-imdb-mlflow")
classifier("This movie was absolutely fantastic!")
MLflow training logs are included in the repository. To view:
pip install mlflow
mlflow ui
Base model
distilbert/distilbert-base-cased