aiface commited on
Commit
51dd1bf
·
verified ·
1 Parent(s): a689b60

Model save

Browse files
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: agpl-3.0
4
+ base_model: vinai/phobert-base-v2
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: phobert-base-v2_v3
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-base-v2_v3
18
+
19
+ This model is a fine-tuned version of [vinai/phobert-base-v2](https://huggingface.co/vinai/phobert-base-v2) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 1.1699
22
+ - Accuracy: 0.7991
23
+ - Precision Macro: 0.7995
24
+ - Recall Macro: 0.7994
25
+ - F1 Macro: 0.7991
26
+ - F1 Weighted: 0.7990
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.086 | 1.0 | 72 | 0.7935 | 0.6887 | 0.6938 | 0.6887 | 0.6884 | 0.6882 |
62
+ | 0.8116 | 2.0 | 144 | 0.6396 | 0.7459 | 0.7595 | 0.7454 | 0.7452 | 0.7453 |
63
+ | 0.4754 | 3.0 | 216 | 0.5853 | 0.7796 | 0.7812 | 0.7801 | 0.7794 | 0.7793 |
64
+ | 0.3729 | 4.0 | 288 | 0.6464 | 0.7796 | 0.7827 | 0.7796 | 0.7795 | 0.7795 |
65
+ | 0.2206 | 5.0 | 360 | 0.6963 | 0.7845 | 0.7880 | 0.7842 | 0.7842 | 0.7843 |
66
+ | 0.161 | 6.0 | 432 | 0.7742 | 0.7827 | 0.7876 | 0.7829 | 0.7827 | 0.7826 |
67
+ | 0.1193 | 7.0 | 504 | 0.8773 | 0.7876 | 0.7906 | 0.7881 | 0.7873 | 0.7871 |
68
+ | 0.0858 | 8.0 | 576 | 0.9057 | 0.7800 | 0.7821 | 0.7797 | 0.7801 | 0.7801 |
69
+ | 0.081 | 9.0 | 648 | 0.9375 | 0.7871 | 0.7897 | 0.7875 | 0.7872 | 0.7871 |
70
+ | 0.0528 | 10.0 | 720 | 0.9239 | 0.7867 | 0.7880 | 0.7869 | 0.7868 | 0.7867 |
71
+ | 0.0459 | 11.0 | 792 | 0.9642 | 0.7920 | 0.7928 | 0.7920 | 0.7921 | 0.7921 |
72
+ | 0.0319 | 12.0 | 864 | 1.0246 | 0.7951 | 0.7960 | 0.7951 | 0.7952 | 0.7952 |
73
+ | 0.0303 | 13.0 | 936 | 1.0632 | 0.7960 | 0.7968 | 0.7963 | 0.7960 | 0.7958 |
74
+ | 0.0235 | 14.0 | 1008 | 1.0870 | 0.7956 | 0.7957 | 0.7955 | 0.7956 | 0.7955 |
75
+ | 0.0182 | 15.0 | 1080 | 1.1385 | 0.7960 | 0.7965 | 0.7963 | 0.7960 | 0.7959 |
76
+ | 0.0114 | 16.0 | 1152 | 1.1546 | 0.8013 | 0.8021 | 0.8012 | 0.8013 | 0.8013 |
77
+ | 0.0119 | 17.0 | 1224 | 1.1719 | 0.7969 | 0.7974 | 0.7972 | 0.7969 | 0.7968 |
78
+ | 0.0111 | 18.0 | 1296 | 1.1749 | 0.7960 | 0.7966 | 0.7963 | 0.7959 | 0.7958 |
79
+ | 0.0067 | 19.0 | 1368 | 1.1719 | 0.7991 | 0.7995 | 0.7994 | 0.7991 | 0.7990 |
80
+ | 0.0151 | 20.0 | 1440 | 1.1699 | 0.7991 | 0.7995 | 0.7994 | 0.7991 | 0.7990 |
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.82 0.75 0.79 750
4
+ contradiction 0.76 0.76 0.76 737
5
+ neutral 0.76 0.82 0.79 777
6
+
7
+ accuracy 0.78 2264
8
+ macro avg 0.78 0.78 0.78 2264
9
+ weighted avg 0.78 0.78 0.78 2264
10
+
11
+ Confusion matrix:
12
+ [[565 93 92]
13
+ [ 65 560 112]
14
+ [ 59 83 635]]
confusion_matrix_test.csv ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ ,entailment,contradiction,neutral
2
+ entailment,565,93,92
3
+ contradiction,65,560,112
4
+ neutral,59,83,635
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8e266be4c3003f42f76a6898af77ddcbefc8a36b92647c37f9f72849ae4981d0
3
  size 540026460
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a069aca56501b05e4658f50d07941d7443d7c46f87cf10d131ff0c90b4f339b
3
  size 540026460
model_predict.csv ADDED
The diff for this file is too large to render. See raw diff