Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use gmguarino/ModernBERT-climateguard-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gmguarino/ModernBERT-climateguard-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gmguarino/ModernBERT-climateguard-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("gmguarino/ModernBERT-climateguard-classifier") model = AutoModelForSequenceClassification.from_pretrained("gmguarino/ModernBERT-climateguard-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ModernBERT-climateguard-classifier
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.9712
- F1: 0.4265
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: 5e-05
- train_batch_size: 2
- eval_batch_size: 1
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 4
- optimizer: Use adamw_torch_fused with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: reduce_lr_on_plateau
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | F1 |
|---|---|---|---|---|
| 2.9496 | 1.0 | 55 | 1.2188 | 0.0510 |
| 2.3895 | 2.0 | 110 | 1.0777 | 0.2178 |
| 2.175 | 3.0 | 165 | 1.0677 | 0.3023 |
| 2.036 | 4.0 | 220 | 1.2581 | 0.2645 |
| 2.2208 | 5.0 | 275 | 1.2512 | 0.2645 |
| 2.101 | 6.0 | 330 | 1.1729 | 0.2645 |
| 2.0418 | 7.0 | 385 | 1.0473 | 0.3683 |
| 2.0045 | 8.0 | 440 | 2.6295 | 0.3463 |
| 1.91 | 9.0 | 495 | 2.7718 | 0.4414 |
| 1.5272 | 9.8257 | 540 | 2.9712 | 0.4265 |
Framework versions
- Transformers 4.48.0
- Pytorch 2.5.1+cu124
- Datasets 3.2.0
- Tokenizers 0.21.0
- Downloads last month
- 5
Model tree for gmguarino/ModernBERT-climateguard-classifier
Base model
answerdotai/ModernBERT-base