CoolFace
Modelpublic

kaixkhazaki/modernbert-zeroshot-xnli-eng-0.1

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes52downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

modernbert-zeroshot-xnli-eng-0.1

This model is a fine-tuned version of answerdotai/ModernBERT-base on 10% of the english subset of facebook/xnli dataset. It achieves the following results on the evaluation set:

  • —Test Loss: 0.3539
  • —F1: 0.8596

Model description

answerdotai/ModernBERT-base

Intended uses & limitations

Training and evaluation data

10% of the english subset of facebook/xnli dataset.

Training procedure

trained on a single gpu for apx. 20 mins.

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-05
  • —trainbatchsize: 32
  • —evalbatchsize: 16
  • —seed: 42
  • —optimizer: Use adamwtorch with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • —lrschedulertype: linear
  • —lrschedulerwarmup_steps: 500
  • —num_epochs: 20

Training results

Training LossEpochStepValidation LossAccuracyF1PrecisionRecall
1.08010.16292000.89870.58680.58200.66370.5868
0.67370.32574000.49060.81840.81810.83400.8184
0.53610.48866000.39310.87230.87240.87590.8723
0.49330.65158000.36640.87820.87860.88530.8782
0.47280.814310000.43000.83030.83060.86040.8303
0.44340.977212000.32100.89220.89230.89250.8922
0.28591.140114000.36570.84830.85020.86510.8483
0.27681.302916000.41620.84030.83970.85200.8403
0.2581.465818000.40720.85430.85430.86340.8543
0.26571.628720000.37630.84630.84600.85370.8463
0.27211.791522000.39400.84630.84640.85950.8463
0.28781.954424000.35390.86030.85960.86410.8603
0.13662.117326000.74440.83430.83710.87380.8343

Framework versions

  • —Transformers 4.48.0.dev0
  • —Pytorch 2.4.1+cu121
  • —Datasets 3.1.0
  • —Tokenizers 0.21.0