Model save
Browse files- README.md +88 -0
- classification_report_test.txt +14 -0
- confusion_matrix_test.csv +4 -0
- model.safetensors +1 -1
- model_predict.csv +0 -0
README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
library_name: transformers
|
| 3 |
+
license: mit
|
| 4 |
+
base_model: vinai/phobert-base
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: phobert-base_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_v3
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [vinai/phobert-base](https://huggingface.co/vinai/phobert-base) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 1.2798
|
| 22 |
+
- Accuracy: 0.7805
|
| 23 |
+
- Precision Macro: 0.7813
|
| 24 |
+
- Recall Macro: 0.7807
|
| 25 |
+
- F1 Macro: 0.7806
|
| 26 |
+
- F1 Weighted: 0.7806
|
| 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.0861 | 1.0 | 72 | 0.8945 | 0.5863 | 0.6024 | 0.5883 | 0.5734 | 0.5725 |
|
| 62 |
+
| 0.8854 | 2.0 | 144 | 0.7401 | 0.6993 | 0.7354 | 0.6992 | 0.6982 | 0.6983 |
|
| 63 |
+
| 0.5405 | 3.0 | 216 | 0.5891 | 0.7814 | 0.7817 | 0.7816 | 0.7813 | 0.7813 |
|
| 64 |
+
| 0.4119 | 4.0 | 288 | 0.6523 | 0.7761 | 0.7776 | 0.7758 | 0.7760 | 0.7760 |
|
| 65 |
+
| 0.2355 | 5.0 | 360 | 0.6712 | 0.7894 | 0.7899 | 0.7892 | 0.7894 | 0.7894 |
|
| 66 |
+
| 0.1786 | 6.0 | 432 | 0.8116 | 0.7725 | 0.7733 | 0.7726 | 0.7726 | 0.7726 |
|
| 67 |
+
| 0.1126 | 7.0 | 504 | 0.8907 | 0.7761 | 0.7792 | 0.7761 | 0.7761 | 0.7761 |
|
| 68 |
+
| 0.0844 | 8.0 | 576 | 0.9184 | 0.7827 | 0.7834 | 0.7825 | 0.7826 | 0.7827 |
|
| 69 |
+
| 0.0657 | 9.0 | 648 | 1.0276 | 0.7734 | 0.7769 | 0.7735 | 0.7737 | 0.7737 |
|
| 70 |
+
| 0.0458 | 10.0 | 720 | 1.2265 | 0.7583 | 0.7713 | 0.7581 | 0.7582 | 0.7583 |
|
| 71 |
+
| 0.0494 | 11.0 | 792 | 1.1001 | 0.7783 | 0.7793 | 0.7783 | 0.7784 | 0.7784 |
|
| 72 |
+
| 0.0307 | 12.0 | 864 | 1.1487 | 0.7783 | 0.7798 | 0.7781 | 0.7783 | 0.7783 |
|
| 73 |
+
| 0.0284 | 13.0 | 936 | 1.1877 | 0.7805 | 0.7812 | 0.7805 | 0.7805 | 0.7805 |
|
| 74 |
+
| 0.0192 | 14.0 | 1008 | 1.2280 | 0.7836 | 0.7843 | 0.7839 | 0.7836 | 0.7836 |
|
| 75 |
+
| 0.0172 | 15.0 | 1080 | 1.2466 | 0.7823 | 0.7823 | 0.7823 | 0.7823 | 0.7823 |
|
| 76 |
+
| 0.0108 | 16.0 | 1152 | 1.2673 | 0.7809 | 0.7837 | 0.7810 | 0.7812 | 0.7812 |
|
| 77 |
+
| 0.0111 | 17.0 | 1224 | 1.2614 | 0.7823 | 0.7825 | 0.7823 | 0.7823 | 0.7823 |
|
| 78 |
+
| 0.0094 | 18.0 | 1296 | 1.2754 | 0.7814 | 0.7817 | 0.7815 | 0.7814 | 0.7815 |
|
| 79 |
+
| 0.0079 | 19.0 | 1368 | 1.2823 | 0.7809 | 0.7821 | 0.7811 | 0.7811 | 0.7811 |
|
| 80 |
+
| 0.0095 | 20.0 | 1440 | 1.2798 | 0.7805 | 0.7813 | 0.7807 | 0.7806 | 0.7806 |
|
| 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.79 0.78 0.79 750
|
| 4 |
+
contradiction 0.74 0.78 0.76 737
|
| 5 |
+
neutral 0.79 0.76 0.78 777
|
| 6 |
+
|
| 7 |
+
accuracy 0.77 2264
|
| 8 |
+
macro avg 0.77 0.77 0.77 2264
|
| 9 |
+
weighted avg 0.77 0.77 0.77 2264
|
| 10 |
+
|
| 11 |
+
Confusion matrix:
|
| 12 |
+
[[586 101 63]
|
| 13 |
+
[ 75 572 90]
|
| 14 |
+
[ 80 105 592]]
|
confusion_matrix_test.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,entailment,contradiction,neutral
|
| 2 |
+
entailment,586,101,63
|
| 3 |
+
contradiction,75,572,90
|
| 4 |
+
neutral,80,105,592
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 540026460
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd46a5bb3313592f1df19b44d5486707a58ff0c2b78d2a4f6c4768211254c881
|
| 3 |
size 540026460
|
model_predict.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|