Instructions to use Jaard/bert-base-uncased-twitter-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Jaard/bert-base-uncased-twitter-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Jaard/bert-base-uncased-twitter-sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Jaard/bert-base-uncased-twitter-sentiment") model = AutoModelForSequenceClassification.from_pretrained("Jaard/bert-base-uncased-twitter-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
bert-base-uncased-twitter-sentiment
This model is a fine-tuned version of bert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.1422
- Accuracy: 0.7
- Precision: 0.6901
- Recall: 0.6913
- F1: 0.6894
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: 3e-05
- train_batch_size: 16
- eval_batch_size: 16
- 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
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 8
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 1.1069 | 1.0 | 30 | 1.0844 | 0.4083 | 0.4540 | 0.4101 | 0.4001 |
| 0.9944 | 2.0 | 60 | 0.9852 | 0.6 | 0.6178 | 0.5981 | 0.5991 |
| 0.6881 | 3.0 | 90 | 0.8397 | 0.6083 | 0.6469 | 0.6055 | 0.5977 |
| 0.4142 | 4.0 | 120 | 0.7241 | 0.7417 | 0.7351 | 0.7349 | 0.7327 |
| 0.1814 | 5.0 | 150 | 0.8786 | 0.6667 | 0.6745 | 0.6605 | 0.6625 |
| 0.0729 | 6.0 | 180 | 1.0374 | 0.6667 | 0.6710 | 0.6599 | 0.6606 |
| 0.0293 | 7.0 | 210 | 1.1422 | 0.7 | 0.6901 | 0.6913 | 0.6894 |
Framework versions
- Transformers 4.56.2
- Pytorch 2.8.0
- Datasets 4.2.0
- Tokenizers 0.22.1
- Downloads last month
- 5
Model tree for Jaard/bert-base-uncased-twitter-sentiment
Base model
google-bert/bert-base-uncased