Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use mowghli/imdb-distilbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mowghli/imdb-distilbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mowghli/imdb-distilbert")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mowghli/imdb-distilbert") model = AutoModelForSequenceClassification.from_pretrained("mowghli/imdb-distilbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
imdb-distilbert
This model is a fine-tuned version of mowghli/distilroberta-base-finetuned-wikitext2 on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.7517
- Accuracy: 0.9217
- F1: 0.9207
- Precision: 0.9330
- Recall: 0.9087
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: 2e-05
- train_batch_size: 16
- eval_batch_size: 32
- 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
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.0846 | 1.0 | 1407 | 0.5710 | 0.9064 | 0.9073 | 0.9037 | 0.9109 |
| 0.0487 | 2.0 | 2814 | 0.7084 | 0.9104 | 0.9097 | 0.9223 | 0.8974 |
| 0.0627 | 3.0 | 4221 | 0.6852 | 0.9156 | 0.9163 | 0.9138 | 0.9189 |
Framework versions
- Transformers 4.56.1
- Pytorch 2.8.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.0
- Downloads last month
- 7
Model tree for mowghli/imdb-distilbert
Base model
distilbert/distilroberta-base