Instructions to use tillschwoerer/bert-base-uncased-twitter-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tillschwoerer/bert-base-uncased-twitter-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="tillschwoerer/bert-base-uncased-twitter-sentiment")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("tillschwoerer/bert-base-uncased-twitter-sentiment") model = AutoModelForSequenceClassification.from_pretrained("tillschwoerer/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: 0.6794
- Model Preparation Time: 0.0047
- Accuracy: 0.7583
- F1: 0.7531
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: 16
- eval_batch_size: 8
- 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: 6
Training results
| Training Loss | Epoch | Step | Validation Loss | Model Preparation Time | Accuracy | F1 |
|---|---|---|---|---|---|---|
| 1.0396 | 1.0 | 30 | 0.9378 | 0.0047 | 0.6083 | 0.5374 |
| 0.7931 | 2.0 | 60 | 0.7873 | 0.0047 | 0.7083 | 0.6958 |
| 0.5955 | 3.0 | 90 | 0.7241 | 0.0047 | 0.7167 | 0.7052 |
| 0.4388 | 4.0 | 120 | 0.7027 | 0.0047 | 0.7 | 0.6876 |
| 0.3291 | 5.0 | 150 | 0.7124 | 0.0047 | 0.7 | 0.6864 |
| 0.2655 | 6.0 | 180 | 0.6794 | 0.0047 | 0.7583 | 0.7531 |
Framework versions
- Transformers 5.17.0
- Pytorch 2.11.0+cu128
- Datasets 5.0.1
- Tokenizers 0.23.2
- Downloads last month
- 11
Model tree for tillschwoerer/bert-base-uncased-twitter-sentiment
Base model
google-bert/bert-base-uncased