Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use rxnu/imdb-distilbert-optimized-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rxnu/imdb-distilbert-optimized-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="rxnu/imdb-distilbert-optimized-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("rxnu/imdb-distilbert-optimized-v2") model = AutoModelForSequenceClassification.from_pretrained("rxnu/imdb-distilbert-optimized-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
imdb-distilbert-optimized-v2
This model is a fine-tuned version of rxnu/imdb-distilbert-finetuned on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.5827
- Accuracy: 0.9099
- F1: 0.9100
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: 64
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 32
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.0192 | 1.0 | 704 | 0.5347 | 0.904 | 0.9104 |
| 0.016 | 2.0 | 1408 | 0.5904 | 0.9096 | 0.9127 |
| 0.0037 | 3.0 | 2112 | 0.6376 | 0.9092 | 0.9126 |
Framework versions
- Transformers 4.53.1
- Pytorch 2.6.0+cu124
- Datasets 2.14.5
- Tokenizers 0.21.2
- Downloads last month
- 2
Model tree for rxnu/imdb-distilbert-optimized-v2
Base model
rxnu/imdb-distilbert-finetuned