aiface commited on
Commit
8cf40f5
·
verified ·
1 Parent(s): c0a792f

Model save

Browse files
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: vinai/phobert-large
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: phobert-large_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
+ # phobert-large_nli
18
+
19
+ This model is a fine-tuned version of [vinai/phobert-large](https://huggingface.co/vinai/phobert-large) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.3062
22
+ - Accuracy: 0.8102
23
+ - Precision Macro: 0.8106
24
+ - Recall Macro: 0.8103
25
+ - F1 Macro: 0.8103
26
+ - F1 Weighted: 0.8103
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
+ | 1.0976 | 1.0 | 72 | 1.0257 | 0.5237 | 0.5529 | 0.5264 | 0.5082 | 0.5072 |
62
+ | 0.9271 | 2.0 | 144 | 0.6649 | 0.7592 | 0.7887 | 0.7579 | 0.7590 | 0.7590 |
63
+ | 0.4037 | 3.0 | 216 | 0.5864 | 0.7894 | 0.7930 | 0.7895 | 0.7895 | 0.7895 |
64
+ | 0.2866 | 4.0 | 288 | 0.6385 | 0.8120 | 0.8142 | 0.8125 | 0.8118 | 0.8118 |
65
+ | 0.1197 | 5.0 | 360 | 0.6949 | 0.8115 | 0.8117 | 0.8115 | 0.8115 | 0.8115 |
66
+ | 0.0939 | 6.0 | 432 | 0.7485 | 0.8058 | 0.8084 | 0.8060 | 0.8058 | 0.8059 |
67
+ | 0.0647 | 7.0 | 504 | 0.9244 | 0.7920 | 0.7977 | 0.7921 | 0.7919 | 0.7918 |
68
+ | 0.0457 | 8.0 | 576 | 0.8464 | 0.8106 | 0.8107 | 0.8107 | 0.8106 | 0.8106 |
69
+ | 0.046 | 9.0 | 648 | 0.9886 | 0.8062 | 0.8121 | 0.8066 | 0.8064 | 0.8063 |
70
+ | 0.026 | 10.0 | 720 | 0.9887 | 0.8120 | 0.8126 | 0.8121 | 0.8120 | 0.8121 |
71
+ | 0.0244 | 11.0 | 792 | 1.0642 | 0.8124 | 0.8130 | 0.8126 | 0.8125 | 0.8125 |
72
+ | 0.0211 | 12.0 | 864 | 1.0197 | 0.8075 | 0.8097 | 0.8078 | 0.8077 | 0.8077 |
73
+ | 0.0146 | 13.0 | 936 | 1.1487 | 0.8151 | 0.8171 | 0.8155 | 0.8151 | 0.8151 |
74
+ | 0.0085 | 14.0 | 1008 | 1.1846 | 0.8053 | 0.8056 | 0.8053 | 0.8053 | 0.8053 |
75
+ | 0.0051 | 15.0 | 1080 | 1.2905 | 0.8084 | 0.8095 | 0.8085 | 0.8084 | 0.8084 |
76
+ | 0.0036 | 16.0 | 1152 | 1.3259 | 0.8102 | 0.8121 | 0.8104 | 0.8104 | 0.8104 |
77
+ | 0.0027 | 17.0 | 1224 | 1.3187 | 0.8115 | 0.8121 | 0.8115 | 0.8116 | 0.8116 |
78
+ | 0.0023 | 18.0 | 1296 | 1.3024 | 0.8115 | 0.8120 | 0.8117 | 0.8116 | 0.8116 |
79
+ | 0.0025 | 19.0 | 1368 | 1.3049 | 0.8111 | 0.8115 | 0.8112 | 0.8111 | 0.8111 |
80
+ | 0.0037 | 20.0 | 1440 | 1.3062 | 0.8102 | 0.8106 | 0.8103 | 0.8103 | 0.8103 |
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.78 0.84 0.81 750
4
+ contradiction 0.81 0.72 0.77 737
5
+ neutral 0.80 0.83 0.81 777
6
+
7
+ accuracy 0.80 2264
8
+ macro avg 0.80 0.80 0.80 2264
9
+ weighted avg 0.80 0.80 0.80 2264
10
+
11
+ Confusion matrix:
12
+ [[633 57 60]
13
+ [105 534 98]
14
+ [ 70 65 642]]
confusion_matrix_test.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ ,entailment,contradiction,neutral
2
+ entailment,633,57,60
3
+ contradiction,105,534,98
4
+ neutral,70,65,642
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:4998b53d5801d31438a54295233cbb8863e938656f86083af971da5e9a103fed
3
  size 1476713628
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa5536ae698d400d4e1d0322bb901a3934d2d3c9762f10e98f2e0664acc87044
3
  size 1476713628
model_predict.csv ADDED
The diff for this file is too large to render. See raw diff