Machine Learning
Collection
Just a little Machine Learning and Artificial Intelligence Projects with fine tuning and model editing • 3 items • Updated
How to use Umranz/distilbert-yelp-sentiment with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Umranz/distilbert-yelp-sentiment") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Umranz/distilbert-yelp-sentiment")
model = AutoModelForSequenceClassification.from_pretrained("Umranz/distilbert-yelp-sentiment", device_map="auto")This model is a fine-tuned version of distilbert-base-uncased on an unknown 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 |
|---|---|---|---|---|---|
| 0.3815 | 1.0 | 6250 | 0.2097 | 0.9352 | 0.9353 |
| 0.1194 | 2.0 | 12500 | 0.2574 | 0.9406 | 0.9406 |
| 0.0265 | 3.0 | 18750 | 0.2933 | 0.9416 | 0.9416 |
Base model
distilbert/distilbert-base-uncased