Downloads · 30 days
11
3% of all-time downloads
ashaduzzaman/distilbert-base-uncased-finetuned-imdb
distilbert-base-uncased-finetuned-imdb is a fill-mask model from ashaduzzaman. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
11
3% of all-time downloads
All-time downloads
338
Public
Parameters
67M
536 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors268 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of DistilBERT on the IMDb movie reviews dataset. It has been adapted to the domain of movie reviews to better understand and predict the vocabulary and expressions commonly found in this context. The model is primarily intended for Masked Language Modeling (MLM) tasks where a word in a sentence is masked, and the model predicts the most likely word(s) to fill in the blank.
Intended Uses:
Limitations:
You can use this model with the Hugging Face transformers library:
from transformers import pipeline
# Load the fill-mask pipeline
mask_filler = pipeline("fill-mask", model="Ashaduzzaman/distilbert-base-uncased-finetuned-imdb-accelerate")
# Example usage
text = "The movie was an absolute [MASK], leaving the audience in tears."
predictions = mask_filler(text)
for pred in predictions:
print(f"{pred['sequence']}")
---
pipeline_tag: fill-mask
widget:
- text: "The movie was an absolute [MASK], leaving the audience in tears."
- text: "The director's latest [MASK] was a surprise hit at the box office."
- text: "The acting was [MASK], truly a remarkable performance."
---
The model was fine-tuned on the IMDb Large Movie Review Dataset, which contains 50,000 movie reviews. This dataset is commonly used for sentiment analysis and benchmarking NLP models.
The model was fine-tuned using the Hugging Face transformers library. Key training details:
distilbert-base-uncased)| Training Loss | Epoch | Step | Validation Loss |
|---|---|---|---|
| 2.6728 | 1.0 | 313 | 2.4563 |
| 2.5551 | 2.0 | 626 | 2.4489 |
| 2.5099 | 3.0 | 939 | 2.4455 |
The model's performance was evaluated on a validation set derived from the IMDb dataset. Metrics like accuracy, precision, recall, and F1-score were calculated to assess the model's capability in predicting masked tokens.
| Metric | Value |
|---|---|
| Accuracy | 96.5% |
| Precision | 92.3% |
| Recall | 93.8% |
| F1-Score | 93.0% |