Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use asadullahshehbaz/distilbert-ecommerce-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use asadullahshehbaz/distilbert-ecommerce-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="asadullahshehbaz/distilbert-ecommerce-sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("asadullahshehbaz/distilbert-ecommerce-sentiment") model = AutoModelForSequenceClassification.from_pretrained("asadullahshehbaz/distilbert-ecommerce-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distilbert-ecommerce-sentiment
This model is a fine-tuned version of distilbert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.1173
- Accuracy: 0.35
- F1: 0.3491
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: 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: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 1.0993 | 1.0 | 125 | 1.0985 | 0.336 | 0.2104 |
| 1.0964 | 2.0 | 250 | 1.1026 | 0.334 | 0.1685 |
| 1.0869 | 3.0 | 375 | 1.1065 | 0.3 | 0.2996 |
| 1.0102 | 4.0 | 500 | 1.1381 | 0.322 | 0.3191 |
| 0.9653 | 5.0 | 625 | 1.1607 | 0.312 | 0.3082 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.8.0+cu126
- Datasets 4.4.2
- Tokenizers 0.22.1
- Downloads last month
- 4
Model tree for asadullahshehbaz/distilbert-ecommerce-sentiment
Base model
distilbert/distilbert-base-uncased