Text Classification
Transformers
Safetensors
distilbert
trackio
Generated from Trainer
ml-intern
text-embeddings-inference
Instructions to use Ido-shraga/distilbert-tweet-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ido-shraga/distilbert-tweet-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Ido-shraga/distilbert-tweet-sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Ido-shraga/distilbert-tweet-sentiment") model = AutoModelForSequenceClassification.from_pretrained("Ido-shraga/distilbert-tweet-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distilbert-tweet-sentiment
This model is a fine-tuned version of distilbert/distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.8342
- Accuracy: 0.736
- F1 Macro: 0.7220
- F1 Negative: 0.6656
- F1 Neutral: 0.7171
- F1 Positive: 0.7833
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: 64
- 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
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Negative | F1 Neutral | F1 Positive |
|---|---|---|---|---|---|---|---|---|
| 0.6327 | 1.0 | 1426 | 0.6268 | 0.718 | 0.6990 | 0.6267 | 0.7248 | 0.7454 |
| 0.5400 | 2.0 | 2852 | 0.6211 | 0.7395 | 0.7149 | 0.6302 | 0.7207 | 0.7937 |
| 0.4078 | 3.0 | 4278 | 0.6687 | 0.736 | 0.7244 | 0.6738 | 0.7178 | 0.7816 |
| 0.3542 | 4.0 | 5704 | 0.7704 | 0.726 | 0.7132 | 0.6587 | 0.6992 | 0.7818 |
| 0.2196 | 5.0 | 7130 | 0.8342 | 0.736 | 0.7220 | 0.6656 | 0.7171 | 0.7833 |
Framework versions
- Transformers 5.16.1
- Pytorch 2.13.0+cu130
- Datasets 5.0.1
- Tokenizers 0.23.1
Generated by ML Intern
This model repository was generated by ML Intern, an agent for machine learning research and development on the Hugging Face Hub.
- Try ML Intern: https://smolagents-ml-intern.hf.space
- Source code: https://github.com/huggingface/ml-intern
Usage
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = 'Ido-shraga/distilbert-tweet-sentiment'
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id)
For non-causal architectures, replace AutoModelForCausalLM with the appropriate AutoModel class.
- Downloads last month
- -
Model tree for Ido-shraga/distilbert-tweet-sentiment
Base model
distilbert/distilbert-base-uncased