Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use C-L-V/PsyDefDetect_ModernBERT-base_merged_lr-6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use C-L-V/PsyDefDetect_ModernBERT-base_merged_lr-6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="C-L-V/PsyDefDetect_ModernBERT-base_merged_lr-6")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("C-L-V/PsyDefDetect_ModernBERT-base_merged_lr-6") model = AutoModelForSequenceClassification.from_pretrained("C-L-V/PsyDefDetect_ModernBERT-base_merged_lr-6") - Notebooks
- Google Colab
- Kaggle
PsyDefDetect_ModernBERT-base_merged_lr-6
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.4628
- Accuracy: 0.8740
- Macro F1: 0.7742
- Weighted F1: 0.8736
- Macro Precision: 0.7759
- Macro Recall: 0.7724
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-06
- train_batch_size: 8
- eval_batch_size: 8
- 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: 4
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Macro F1 | Weighted F1 | Macro Precision | Macro Recall |
|---|---|---|---|---|---|---|---|---|
| 0.6277 | 1.0 | 187 | 0.5420 | 0.8418 | 0.7010 | 0.8369 | 0.7152 | 0.6898 |
| 0.5199 | 2.0 | 374 | 0.5099 | 0.8633 | 0.7301 | 0.8556 | 0.7617 | 0.7091 |
| 0.4558 | 3.0 | 561 | 0.4536 | 0.8552 | 0.7485 | 0.8570 | 0.7427 | 0.7548 |
| 0.4106 | 4.0 | 748 | 0.4628 | 0.8740 | 0.7742 | 0.8736 | 0.7759 | 0.7724 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 9
Model tree for C-L-V/PsyDefDetect_ModernBERT-base_merged_lr-6
Base model
answerdotai/ModernBERT-base