Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use Kaspar/modification_best_model_modernbert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kaspar/modification_best_model_modernbert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Kaspar/modification_best_model_modernbert")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Kaspar/modification_best_model_modernbert") model = AutoModelForSequenceClassification.from_pretrained("Kaspar/modification_best_model_modernbert", device_map="auto") - Notebooks
- Google Colab
- Kaggle
modification_best_model_modernbert
This model is a fine-tuned version of answerdotai/ModernBERT-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.2315
- Accuracy: 0.9587
- Precision: 0.9197
- Recall: 0.9767
- F1: 0.9474
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: 8e-05
- train_batch_size: 16
- eval_batch_size: 32
- 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_steps: 10
- num_epochs: 15
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.2979 | 1.0 | 85 | 0.2552 | 0.9174 | 0.8389 | 0.9690 | 0.8993 |
| 0.2367 | 2.0 | 170 | 0.1903 | 0.9381 | 0.9091 | 0.9302 | 0.9195 |
| 0.1365 | 3.0 | 255 | 0.2578 | 0.9204 | 0.9048 | 0.8837 | 0.8941 |
| 0.0911 | 4.0 | 340 | 0.1936 | 0.9528 | 0.9124 | 0.9690 | 0.9398 |
| 0.0453 | 5.0 | 425 | 0.2315 | 0.9587 | 0.9197 | 0.9767 | 0.9474 |
| 0.1218 | 6.0 | 510 | 0.1653 | 0.9499 | 0.9 | 0.9767 | 0.9368 |
| 0.0883 | 7.0 | 595 | 0.2168 | 0.9499 | 0.9179 | 0.9535 | 0.9354 |
| 0.0757 | 8.0 | 680 | 0.2365 | 0.9499 | 0.9375 | 0.9302 | 0.9339 |
| 0.2497 | 9.0 | 765 | 0.2300 | 0.9528 | 0.9185 | 0.9612 | 0.9394 |
| 0.0448 | 10.0 | 850 | 0.2121 | 0.9499 | 0.9 | 0.9767 | 0.9368 |
Framework versions
- Transformers 5.15.1
- Pytorch 2.11.0+cu128
- Datasets 5.0.1
- Tokenizers 0.22.2
- Downloads last month
- 20
Model tree for Kaspar/modification_best_model_modernbert
Base model
answerdotai/ModernBERT-base