Text Classification
Transformers
Safetensors
modernbert
trackio
Generated from Trainer
ml-intern
text-embeddings-inference
Instructions to use Ido-shraga/modernbert-tweet-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ido-shraga/modernbert-tweet-sentiment with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Ido-shraga/modernbert-tweet-sentiment")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Ido-shraga/modernbert-tweet-sentiment") model = AutoModelForSequenceClassification.from_pretrained("Ido-shraga/modernbert-tweet-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
modernbert-tweet-sentiment
This model is a fine-tuned version of answerdotai/ModernBERT-base on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 2.0680
- Accuracy: 0.7305
- F1 Macro: 0.7138
- F1 Negative: 0.6447
- F1 Neutral: 0.7144
- F1 Positive: 0.7822
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.5743 | 1.0 | 1426 | 0.6169 | 0.7255 | 0.7103 | 0.6585 | 0.7389 | 0.7335 |
| 0.4600 | 2.0 | 2852 | 0.5952 | 0.7475 | 0.7272 | 0.6503 | 0.7366 | 0.7947 |
| 0.2243 | 3.0 | 4278 | 0.8120 | 0.7255 | 0.7105 | 0.6471 | 0.7203 | 0.7642 |
| 0.0878 | 4.0 | 5704 | 1.5387 | 0.733 | 0.7153 | 0.6434 | 0.7174 | 0.7851 |
| 0.0036 | 5.0 | 7130 | 2.0680 | 0.7305 | 0.7138 | 0.6447 | 0.7144 | 0.7822 |
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/modernbert-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/modernbert-tweet-sentiment
Base model
answerdotai/ModernBERT-base