Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use Dawn123666/speech_mbert_1024_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Dawn123666/speech_mbert_1024_v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Dawn123666/speech_mbert_1024_v2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Dawn123666/speech_mbert_1024_v2") model = AutoModelForSequenceClassification.from_pretrained("Dawn123666/speech_mbert_1024_v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
speech_mbert_1024_v2
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: 0.1672
- F1: 0.8706
- Precision: 0.8092
- Recall: 0.9422
- Accuracy: 0.9441
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-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 43
- distributed_type: multi-GPU
- num_devices: 2
- gradient_accumulation_steps: 4
- total_train_batch_size: 128
- total_eval_batch_size: 32
- 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_ratio: 0.1
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | F1 | Precision | Recall | Accuracy |
|---|---|---|---|---|---|---|---|
| 1.5485 | 1.0 | 80 | 0.2264 | 0.7552 | 0.6169 | 0.9733 | 0.8740 |
| 0.8006 | 2.0 | 160 | 0.1679 | 0.8492 | 0.7670 | 0.9511 | 0.9326 |
| 0.6161 | 3.0 | 240 | 0.1672 | 0.8706 | 0.8092 | 0.9422 | 0.9441 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.8.0+cu126
- Datasets 4.5.0
- Tokenizers 0.22.1
- Downloads last month
- 7
Model tree for Dawn123666/speech_mbert_1024_v2
Base model
answerdotai/ModernBERT-base