Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use mhr2004/ModernBERT-large-stsb-lr2e-05-bs32 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mhr2004/ModernBERT-large-stsb-lr2e-05-bs32 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mhr2004/ModernBERT-large-stsb-lr2e-05-bs32")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mhr2004/ModernBERT-large-stsb-lr2e-05-bs32") model = AutoModelForSequenceClassification.from_pretrained("mhr2004/ModernBERT-large-stsb-lr2e-05-bs32", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ModernBERT-large-stsb-lr2e-05-bs32
This model is a fine-tuned version of answerdotai/ModernBERT-large on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.0156
- Pearson: 0.9092
- Spearman: 0.9091
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: 32
- eval_batch_size: 32
- seed: 42
- optimizer: Use adamw_torch 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 | Pearson | Spearman |
|---|---|---|---|---|---|
| 0.0265 | 1.0 | 180 | 0.0224 | 0.8962 | 0.8965 |
| 0.0138 | 2.0 | 360 | 0.0169 | 0.9040 | 0.9036 |
| 0.0066 | 3.0 | 540 | 0.0155 | 0.9096 | 0.9085 |
| 0.0036 | 4.0 | 720 | 0.0156 | 0.9092 | 0.9091 |
Framework versions
- Transformers 4.49.0
- Pytorch 2.7.0+cu126
- Datasets 3.6.0
- Tokenizers 0.21.1
- Downloads last month
- 8
Model tree for mhr2004/ModernBERT-large-stsb-lr2e-05-bs32
Base model
answerdotai/ModernBERT-large