Instructions to use BenMurphy124/distilbert-imdb-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use BenMurphy124/distilbert-imdb-sentiment with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("distilbert/distilbert-base-uncased") model = PeftModel.from_pretrained(base_model, "BenMurphy124/distilbert-imdb-sentiment") - Transformers
How to use BenMurphy124/distilbert-imdb-sentiment with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("BenMurphy124/distilbert-imdb-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distilbert-imdb-sentiment
This model is a fine-tuned version of distilbert/distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.2262
- Accuracy: 0.9218
- F1: 0.9214
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 0.0005
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_steps: 100
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.2264 | 0.08 | 100 | 0.3893 | 0.864 | 0.8744 |
| 0.3180 | 0.16 | 200 | 0.2701 | 0.8896 | 0.8857 |
| 0.2628 | 0.24 | 300 | 0.2821 | 0.8868 | 0.8936 |
| 0.2503 | 0.32 | 400 | 0.2465 | 0.9036 | 0.9034 |
| 0.2481 | 0.4 | 500 | 0.2494 | 0.8984 | 0.8982 |
| 0.3159 | 0.48 | 600 | 0.2402 | 0.9014 | 0.9003 |
| 0.2986 | 0.56 | 700 | 0.3256 | 0.8676 | 0.8522 |
| 0.2631 | 0.64 | 800 | 0.2726 | 0.8872 | 0.8933 |
| 0.2616 | 0.72 | 900 | 0.2374 | 0.9092 | 0.9113 |
| 0.2364 | 0.8 | 1000 | 0.2646 | 0.8912 | 0.8979 |
| 0.2267 | 0.88 | 1100 | 0.2134 | 0.9142 | 0.9128 |
| 0.2442 | 0.96 | 1200 | 0.2393 | 0.9114 | 0.9084 |
| 0.2556 | 1.04 | 1300 | 0.2153 | 0.9154 | 0.9143 |
| 0.2383 | 1.12 | 1400 | 0.2419 | 0.9122 | 0.9123 |
| 0.1912 | 1.2 | 1500 | 0.2453 | 0.9158 | 0.9179 |
| 0.2144 | 1.28 | 1600 | 0.2194 | 0.918 | 0.9186 |
| 0.1782 | 1.3600 | 1700 | 0.2351 | 0.9162 | 0.9144 |
| 0.2313 | 1.44 | 1800 | 0.2117 | 0.9182 | 0.9181 |
| 0.1886 | 1.52 | 1900 | 0.2242 | 0.917 | 0.9153 |
| 0.1804 | 1.6 | 2000 | 0.2349 | 0.9158 | 0.9158 |
| 0.1815 | 1.6800 | 2100 | 0.2335 | 0.9126 | 0.9099 |
| 0.1998 | 1.76 | 2200 | 0.2230 | 0.9168 | 0.9149 |
| 0.2260 | 1.8400 | 2300 | 0.2098 | 0.9182 | 0.9187 |
| 0.2221 | 1.92 | 2400 | 0.2163 | 0.9198 | 0.9186 |
| 0.2109 | 2.0 | 2500 | 0.2110 | 0.917 | 0.9185 |
| 0.1790 | 2.08 | 2600 | 0.2110 | 0.9212 | 0.9215 |
| 0.1052 | 2.16 | 2700 | 0.2595 | 0.9198 | 0.9191 |
| 0.1776 | 2.24 | 2800 | 0.2188 | 0.921 | 0.9206 |
| 0.1657 | 2.32 | 2900 | 0.2433 | 0.9164 | 0.9187 |
| 0.1806 | 2.4 | 3000 | 0.2351 | 0.9116 | 0.9085 |
| 0.1417 | 2.48 | 3100 | 0.2285 | 0.9228 | 0.9225 |
| 0.1536 | 2.56 | 3200 | 0.2274 | 0.924 | 0.9250 |
| 0.1368 | 2.64 | 3300 | 0.2276 | 0.9244 | 0.9250 |
| 0.1470 | 2.7200 | 3400 | 0.2392 | 0.9208 | 0.9201 |
| 0.1332 | 2.8 | 3500 | 0.2314 | 0.9234 | 0.9241 |
| 0.1644 | 2.88 | 3600 | 0.2251 | 0.9226 | 0.9224 |
| 0.1189 | 2.96 | 3700 | 0.2262 | 0.9218 | 0.9214 |
Framework versions
- PEFT 0.18.1
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 1
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for BenMurphy124/distilbert-imdb-sentiment
Base model
distilbert/distilbert-base-uncased