modernbert-arxiv-new-dataset-v3

answerdotai/ModernBERT-base fine-tuned for single-label text classification on librarian-bots/arxiv-new-datasets-v3.

  • Labels (2): new_dataset, no_new_dataset
  • Date: 2026-07-29 09:10 UTC

Evaluation

Metric Value
accuracy 0.9550
f1_macro 0.9511

Usage

from transformers import AutoModelForSequenceClassification, AutoTokenizer

model = AutoModelForSequenceClassification.from_pretrained("davanstrien/modernbert-arxiv-new-dataset-v3", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("davanstrien/modernbert-arxiv-new-dataset-v3", trust_remote_code=True)

inputs = tokenizer("your text here", return_tensors="pt", truncation=True)
print(model.config.id2label[model(**inputs).logits.argmax().item()])

Reproduction

Produced on Hugging Face Jobs (gpu) with the train-classifier.py recipe from uv-scripts. Run it yourself:

hf jobs uv run --flavor gpu --secrets HF_TOKEN \
    https://huggingface.co/datasets/uv-scripts/classification/raw/main/train-classifier.py \
    librarian-bots/arxiv-new-datasets-v3 davanstrien/modernbert-arxiv-new-dataset-v3 --model answerdotai/ModernBERT-base --label-column labels
Downloads last month
30
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for davanstrien/modernbert-arxiv-new-dataset-v3

Finetuned
(1390)
this model

Dataset used to train davanstrien/modernbert-arxiv-new-dataset-v3