Text Classification
Transformers
Safetensors
modernbert
Generated from Trainer
text-embeddings-inference
Instructions to use librarian-bots/arxiv-new-datasets-modernbert-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use librarian-bots/arxiv-new-datasets-modernbert-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="librarian-bots/arxiv-new-datasets-modernbert-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("librarian-bots/arxiv-new-datasets-modernbert-v2") model = AutoModelForSequenceClassification.from_pretrained("librarian-bots/arxiv-new-datasets-modernbert-v2") - Notebooks
- Google Colab
- Kaggle
arxiv-new-datasets-modernbert-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.4087
- Accuracy: 0.8816
- F1: 0.8793
- Precision: 0.8784
- Recall: 0.8816
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: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH 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
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.3321 | 1.0 | 181 | 0.3471 | 0.8536 | 0.8526 | 0.8517 | 0.8536 |
| 0.2501 | 2.0 | 362 | 0.2831 | 0.8692 | 0.8708 | 0.8732 | 0.8692 |
| 0.1013 | 3.0 | 543 | 0.4087 | 0.8816 | 0.8793 | 0.8784 | 0.8816 |
Framework versions
- Transformers 4.48.0.dev0
- Pytorch 2.10.0+cu128
- Datasets 4.5.0
- Tokenizers 0.21.4
- Downloads last month
- 13
Model tree for librarian-bots/arxiv-new-datasets-modernbert-v2
Base model
answerdotai/ModernBERT-base