aiface commited on
Commit
1d4ecd2
·
verified ·
1 Parent(s): 200ead8

Model save

Browse files
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: answerdotai/ModernBERT-base
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: ModernBERT-base_nli
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # ModernBERT-base_nli
18
+
19
+ This model is a fine-tuned version of [answerdotai/ModernBERT-base](https://huggingface.co/answerdotai/ModernBERT-base) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 3.4416
22
+ - Accuracy: 0.5623
23
+ - Precision Macro: 0.5618
24
+ - Recall Macro: 0.5627
25
+ - F1 Macro: 0.5621
26
+ - F1 Weighted: 0.5617
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 5e-05
46
+ - train_batch_size: 128
47
+ - eval_batch_size: 128
48
+ - seed: 42
49
+ - gradient_accumulation_steps: 2
50
+ - total_train_batch_size: 256
51
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: cosine
53
+ - lr_scheduler_warmup_ratio: 0.1
54
+ - num_epochs: 20
55
+ - mixed_precision_training: Native AMP
56
+
57
+ ### Training results
58
+
59
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision Macro | Recall Macro | F1 Macro | F1 Weighted |
60
+ |:-------------:|:-----:|:----:|:---------------:|:--------:|:---------------:|:------------:|:--------:|:-----------:|
61
+ | 2.164 | 1.0 | 72 | 1.0434 | 0.4483 | 0.4472 | 0.4484 | 0.4398 | 0.4395 |
62
+ | 2.0623 | 2.0 | 144 | 0.9968 | 0.4984 | 0.5026 | 0.4994 | 0.4983 | 0.4978 |
63
+ | 1.8507 | 3.0 | 216 | 1.0155 | 0.5016 | 0.5522 | 0.5034 | 0.4808 | 0.4802 |
64
+ | 1.7076 | 4.0 | 288 | 0.9344 | 0.5721 | 0.5902 | 0.5738 | 0.5572 | 0.5563 |
65
+ | 1.4431 | 5.0 | 360 | 0.9258 | 0.5756 | 0.5770 | 0.5768 | 0.5719 | 0.5714 |
66
+ | 1.1592 | 6.0 | 432 | 1.0425 | 0.5738 | 0.5831 | 0.5740 | 0.5693 | 0.5691 |
67
+ | 0.6916 | 7.0 | 504 | 1.2622 | 0.5659 | 0.5711 | 0.5670 | 0.5640 | 0.5636 |
68
+ | 0.3547 | 8.0 | 576 | 1.7560 | 0.5455 | 0.5495 | 0.5452 | 0.5460 | 0.5459 |
69
+ | 0.2534 | 9.0 | 648 | 2.1882 | 0.5494 | 0.5620 | 0.5515 | 0.5409 | 0.5401 |
70
+ | 0.1018 | 10.0 | 720 | 2.3462 | 0.5645 | 0.5641 | 0.5652 | 0.5633 | 0.5630 |
71
+ | 0.0931 | 11.0 | 792 | 2.6256 | 0.5565 | 0.5619 | 0.5582 | 0.5483 | 0.5475 |
72
+ | 0.0504 | 12.0 | 864 | 2.7252 | 0.5552 | 0.5570 | 0.5557 | 0.5555 | 0.5551 |
73
+ | 0.0379 | 13.0 | 936 | 2.9577 | 0.5517 | 0.5518 | 0.5521 | 0.5518 | 0.5515 |
74
+ | 0.0111 | 14.0 | 1008 | 3.2048 | 0.5614 | 0.5621 | 0.5621 | 0.5609 | 0.5604 |
75
+ | 0.0018 | 15.0 | 1080 | 3.3005 | 0.5610 | 0.5621 | 0.5612 | 0.5616 | 0.5613 |
76
+ | 0.0003 | 16.0 | 1152 | 3.3958 | 0.5610 | 0.5602 | 0.5615 | 0.5605 | 0.5601 |
77
+ | 0.0001 | 17.0 | 1224 | 3.4259 | 0.5623 | 0.5617 | 0.5628 | 0.5620 | 0.5617 |
78
+ | 0.0001 | 18.0 | 1296 | 3.4368 | 0.5619 | 0.5613 | 0.5623 | 0.5616 | 0.5612 |
79
+ | 0.0001 | 19.0 | 1368 | 3.4412 | 0.5619 | 0.5614 | 0.5623 | 0.5616 | 0.5613 |
80
+ | 0.0001 | 20.0 | 1440 | 3.4416 | 0.5623 | 0.5618 | 0.5627 | 0.5621 | 0.5617 |
81
+
82
+
83
+ ### Framework versions
84
+
85
+ - Transformers 4.55.0
86
+ - Pytorch 2.7.0+cu126
87
+ - Datasets 4.0.0
88
+ - Tokenizers 0.21.4
classification_report_test.txt ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ precision recall f1-score support
2
+
3
+ entailment 0.57 0.67 0.62 750
4
+ contradiction 0.60 0.46 0.52 737
5
+ neutral 0.60 0.64 0.62 777
6
+
7
+ accuracy 0.59 2264
8
+ macro avg 0.59 0.59 0.59 2264
9
+ weighted avg 0.59 0.59 0.59 2264
10
+
11
+ Confusion matrix:
12
+ [[502 112 136]
13
+ [207 338 192]
14
+ [166 115 496]]
confusion_matrix_test.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ ,entailment,contradiction,neutral
2
+ entailment,502,112,136
3
+ contradiction,207,338,192
4
+ neutral,166,115,496
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9fa50a1365b769358f154609bbed349b209cc6b35602874d46d0bb27aa7b37bb
3
  size 598442860
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee056dbfef4818e4b29b3971b33af5d2b3367ae4423aecbf8531c5b4b5b133e6
3
  size 598442860
model_predict.csv ADDED
The diff for this file is too large to render. See raw diff