Downloads · 30 days
38
27% of all-time downloads
AlexStamp/distilbert-base-uncased-finetuned-imdb-standard
distilbert-base-uncased-finetuned-imdb-standard is a fill-mask model from AlexStamp. 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.
This model is a domain-adapted version of distilbert-base-uncased fine-tuned on the IMDB movie reviews dataset for Masked Language Modeling (MLM).
Downloads · 30 days
38
27% of all-time downloads
All-time downloads
142
Public
Parameters
67M
1.3 GB 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 domain-adapted version of distilbert-base-uncased fine-tuned on the
IMDB movie reviews dataset for Masked Language Modeling (MLM).
By adapting the base model to informal, domain-specific film terminology, its language modeling performance improved significantly over the base checkpoint.
distilbert-base-uncasedstanfordnlp/imdb (all splits concatenated and chunked into 128-token blocks)Note: For Masked Language Modeling, the loss evaluated during training is the cross-entropy over masked tokens. A standard metric for measuring domain adaptation is Perplexity, calculated as
exp(eval_loss). Lower perplexity indicates that the model is less "surprised" by text from the target domain.
DataCollatorForLanguageModeling, 15% probability for dynamic masking)Note: A Whole-Word Masking (WWM) Collator variant is available in
distilbert-base-uncased-finetuned-imdb-wwm, together with its results and a discussion of the comparison.
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Model Preparation Time |
|---|---|---|---|---|
| 2.4848 | 1.0 | 782 | 2.3654 | 0.0046 |
| 2.4338 | 2.0 | 1564 | 2.3231 | 0.0046 |
| 2.4176 | 3.0 | 2346 | 2.2983 | 0.0046 |
from transformers import pipeline
fill_mask = pipeline("fill-mask", model="AlexStamp/distilbert-base-uncased-finetuned-imdb-standard")
# Example domain completion
result = fill_mask("This movie was completely [MASK] and worth every penny!")
for prediction in result:
print(f"{prediction['token_str']}: {prediction['score']:.4f}")