Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use gpham/ModernBERT-base-finetuned-arxiv with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gpham/ModernBERT-base-finetuned-arxiv with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="gpham/ModernBERT-base-finetuned-arxiv")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("gpham/ModernBERT-base-finetuned-arxiv") model = AutoModelForSequenceClassification.from_pretrained("gpham/ModernBERT-base-finetuned-arxiv", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ModernBERT-base-finetuned-arxiv
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: 1.6179
- Accuracy: 0.8501
- F1: 0.8474
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: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.4682 | 1.0 | 1863 | 0.4426 | 0.8462 | 0.8393 |
| 0.2739 | 2.0 | 3726 | 0.4828 | 0.8538 | 0.8464 |
| 0.1399 | 3.0 | 5589 | 0.7007 | 0.8421 | 0.8399 |
| 0.0533 | 4.0 | 7452 | 0.9504 | 0.8472 | 0.8441 |
| 0.007 | 5.0 | 9315 | 1.3058 | 0.8392 | 0.8371 |
| 0.0097 | 6.0 | 11178 | 1.4712 | 0.8411 | 0.8395 |
| 0.0044 | 7.0 | 13041 | 1.5351 | 0.8421 | 0.8436 |
| 0.0004 | 8.0 | 14904 | 1.5931 | 0.8499 | 0.8459 |
| 0.0 | 9.0 | 16767 | 1.6332 | 0.8470 | 0.8442 |
| 0.0 | 10.0 | 18630 | 1.6179 | 0.8501 | 0.8474 |
Framework versions
- Transformers 4.48.3
- Pytorch 2.7.0+cu126
- Datasets 3.5.1
- Tokenizers 0.21.1
- Downloads last month
- 10
Model tree for gpham/ModernBERT-base-finetuned-arxiv
Base model
answerdotai/ModernBERT-base