| | --- |
| | library_name: transformers |
| | tags: |
| | - generated_from_trainer |
| | metrics: |
| | - f1 |
| | model-index: |
| | - name: ModernBERT-domain-classifier |
| | results: [] |
| | --- |
| | |
| | <!-- This model card has been generated automatically according to the information the Trainer had access to. You |
| | should probably proofread and complete it, then remove this comment. --> |
| |
|
| | # ModernBERT-domain-classifier |
| |
|
| | This model was trained from scratch on an unknown dataset. |
| | It achieves the following results on the evaluation set: |
| | - Loss: 0.2957 |
| | - F1: 0.8796 |
| |
|
| | ## 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: 32 |
| | - eval_batch_size: 16 |
| | - 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 |
| | - mixed_precision_training: Native AMP |
| | |
| | ### Training results |
| | |
| | | Training Loss | Epoch | Step | Validation Loss | F1 | |
| | |:-------------:|:-----:|:----:|:---------------:|:------:| |
| | | No log | 1.0 | 29 | 0.6364 | 0.8198 | |
| | | No log | 2.0 | 58 | 0.4407 | 0.8255 | |
| | | No log | 3.0 | 87 | 0.3492 | 0.8516 | |
| | | 0.851 | 4.0 | 116 | 0.2348 | 0.9161 | |
| | | 0.851 | 5.0 | 145 | 0.2957 | 0.8796 | |
| | |
| | |
| | ### Framework versions |
| | |
| | - Transformers 4.48.3 |
| | - Pytorch 2.6.0+cu124 |
| | - Datasets 3.2.0 |
| | - Tokenizers 0.21.0 |
| | |