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")# pip install -U transformers accelerate # 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
|
Download README.md from gmguarino/ModernBERT-climateguard-classifier: direct link, hf CLI and curl.
- Browser
- Download file 2.13 kB
-
https://huggingface.co/gmguarino/ModernBERT-climateguard-classifier/resolve/1eb42bbb76c6347df9a07af1d773e51b6bc6cd65/README.md
- Command line
-
hf download hf://gmguarino/ModernBERT-climateguard-classifier@1eb42bbb76c6347df9a07af1d773e51b6bc6cd65/README.md
-
curl -L -o README.md https://huggingface.co/gmguarino/ModernBERT-climateguard-classifier/resolve/1eb42bbb76c6347df9a07af1d773e51b6bc6cd65/README.md
2.13 kB
metadata
library_name: transformers
license: apache-2.0
base_model: answerdotai/ModernBERT-base
tags:
- generated_from_trainer
metrics:
- f1
model-index:
- name: ModernBERT-climateguard-classifier
results: []
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