Text Classification
Transformers
PyTorch
distilbert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use Tirendaz/my_distilbert_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Tirendaz/my_distilbert_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Tirendaz/my_distilbert_model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Tirendaz/my_distilbert_model") model = AutoModelForSequenceClassification.from_pretrained("Tirendaz/my_distilbert_model") - Notebooks
- Google Colab
- Kaggle
my_distilbert_model
This model is a fine-tuned version of distilbert-base-uncased on the rotten_tomatoes_movie_review dataset. It achieves the following results on the evaluation set:
- Loss: 0.4418
- Accuracy: 0.8433
- F1: 0.8433
- Precision: 0.8434
- Recall: 0.8433
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: 32
- eval_batch_size: 32
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 267 | 0.3990 | 0.8246 | 0.8243 | 0.8269 | 0.8246 |
| 0.3534 | 2.0 | 534 | 0.3951 | 0.8452 | 0.8452 | 0.8452 | 0.8452 |
| 0.3534 | 3.0 | 801 | 0.4418 | 0.8433 | 0.8433 | 0.8434 | 0.8433 |
Framework versions
- Transformers 4.30.2
- Pytorch 2.0.0
- Datasets 2.1.0
- Tokenizers 0.13.3
- Downloads last month
- 77
Spaces using Tirendaz/my_distilbert_model 4
Tirendaz/Text-Classification
π
Bazedgul/Bert-Text-Classification
π
guox18/my-first-gradio
π¦
Faizan15/Bert-Text-Classification
Evaluation results
- Accuracy on rotten_tomatoes_movie_reviewtest set self-reported0.843
- F1 on rotten_tomatoes_movie_reviewtest set self-reported0.843
- Precision on rotten_tomatoes_movie_reviewtest set self-reported0.843
- Recall on rotten_tomatoes_movie_reviewtest set self-reported0.843