cornell-movie-review-data/rotten_tomatoes
Viewer • Updated • 10.7k • 81k • 112
How to use PranavY2k/my_distilbert_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="PranavY2k/my_distilbert_model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("PranavY2k/my_distilbert_model")
model = AutoModelForSequenceClassification.from_pretrained("PranavY2k/my_distilbert_model")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("PranavY2k/my_distilbert_model")
model = AutoModelForSequenceClassification.from_pretrained("PranavY2k/my_distilbert_model")This model is a fine-tuned version of distilbert-base-uncased on the rotten_tomatoes dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.4222 | 1.0 | 534 | 0.3821 | 0.8424 | 0.8421 | 0.8450 | 0.8424 |
| 0.2558 | 2.0 | 1068 | 0.4620 | 0.8433 | 0.8432 | 0.8445 | 0.8433 |
| 0.1609 | 3.0 | 1602 | 0.5593 | 0.8433 | 0.8433 | 0.8438 | 0.8433 |
Base model
distilbert/distilbert-base-uncased
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="PranavY2k/my_distilbert_model")