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: apache-2.0
|
| 4 |
+
base_model: uitnlp/CafeBERT
|
| 5 |
+
tags:
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
metrics:
|
| 8 |
+
- accuracy
|
| 9 |
+
model-index:
|
| 10 |
+
- name: CafeBERT_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 |
+
# CafeBERT_nli
|
| 18 |
+
|
| 19 |
+
This model is a fine-tuned version of [uitnlp/CafeBERT](https://huggingface.co/uitnlp/CafeBERT) on an unknown dataset.
|
| 20 |
+
It achieves the following results on the evaluation set:
|
| 21 |
+
- Loss: 1.2989
|
| 22 |
+
- Accuracy: 0.8306
|
| 23 |
+
- Precision Macro: 0.8307
|
| 24 |
+
- Recall Macro: 0.8308
|
| 25 |
+
- F1 Macro: 0.8306
|
| 26 |
+
- F1 Weighted: 0.8306
|
| 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.0641 | 1.0 | 72 | 0.6313 | 0.7565 | 0.7672 | 0.7575 | 0.7562 | 0.7561 |
|
| 62 |
+
| 0.64 | 2.0 | 144 | 0.5313 | 0.8044 | 0.8077 | 0.8042 | 0.8039 | 0.8040 |
|
| 63 |
+
| 0.3679 | 3.0 | 216 | 0.5117 | 0.8062 | 0.8078 | 0.8067 | 0.8060 | 0.8059 |
|
| 64 |
+
| 0.2855 | 4.0 | 288 | 0.5816 | 0.8098 | 0.8150 | 0.8101 | 0.8087 | 0.8087 |
|
| 65 |
+
| 0.1571 | 5.0 | 360 | 0.6372 | 0.8058 | 0.8060 | 0.8058 | 0.8058 | 0.8059 |
|
| 66 |
+
| 0.1165 | 6.0 | 432 | 0.6929 | 0.8177 | 0.8186 | 0.8177 | 0.8178 | 0.8178 |
|
| 67 |
+
| 0.0855 | 7.0 | 504 | 0.7374 | 0.8084 | 0.8090 | 0.8087 | 0.8084 | 0.8084 |
|
| 68 |
+
| 0.0704 | 8.0 | 576 | 0.8241 | 0.8075 | 0.8107 | 0.8071 | 0.8075 | 0.8075 |
|
| 69 |
+
| 0.0593 | 9.0 | 648 | 0.9712 | 0.8098 | 0.8108 | 0.8094 | 0.8095 | 0.8096 |
|
| 70 |
+
| 0.0415 | 10.0 | 720 | 0.8643 | 0.8155 | 0.8165 | 0.8153 | 0.8155 | 0.8155 |
|
| 71 |
+
| 0.034 | 11.0 | 792 | 0.9662 | 0.8124 | 0.8149 | 0.8120 | 0.8123 | 0.8123 |
|
| 72 |
+
| 0.0273 | 12.0 | 864 | 1.0114 | 0.8182 | 0.8188 | 0.8181 | 0.8182 | 0.8182 |
|
| 73 |
+
| 0.0189 | 13.0 | 936 | 1.2237 | 0.8155 | 0.8195 | 0.8159 | 0.8156 | 0.8155 |
|
| 74 |
+
| 0.0068 | 14.0 | 1008 | 1.2312 | 0.8244 | 0.8265 | 0.8247 | 0.8244 | 0.8244 |
|
| 75 |
+
| 0.011 | 15.0 | 1080 | 1.2062 | 0.8315 | 0.8316 | 0.8316 | 0.8314 | 0.8314 |
|
| 76 |
+
| 0.003 | 16.0 | 1152 | 1.2550 | 0.8279 | 0.8280 | 0.8280 | 0.8280 | 0.8279 |
|
| 77 |
+
| 0.0024 | 17.0 | 1224 | 1.2774 | 0.8302 | 0.8303 | 0.8303 | 0.8302 | 0.8302 |
|
| 78 |
+
| 0.003 | 18.0 | 1296 | 1.2946 | 0.8293 | 0.8295 | 0.8295 | 0.8292 | 0.8292 |
|
| 79 |
+
| 0.0023 | 19.0 | 1368 | 1.2969 | 0.8306 | 0.8307 | 0.8308 | 0.8306 | 0.8306 |
|
| 80 |
+
| 0.0012 | 20.0 | 1440 | 1.2989 | 0.8306 | 0.8307 | 0.8308 | 0.8306 | 0.8306 |
|
| 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.83 0.85 0.84 750
|
| 4 |
+
contradiction 0.79 0.82 0.80 737
|
| 5 |
+
neutral 0.83 0.78 0.81 777
|
| 6 |
+
|
| 7 |
+
accuracy 0.82 2264
|
| 8 |
+
macro avg 0.82 0.82 0.82 2264
|
| 9 |
+
weighted avg 0.82 0.82 0.82 2264
|
| 10 |
+
|
| 11 |
+
Confusion matrix:
|
| 12 |
+
[[634 62 54]
|
| 13 |
+
[ 64 603 70]
|
| 14 |
+
[ 68 100 609]]
|
confusion_matrix_test.csv
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
,entailment,contradiction,neutral
|
| 2 |
+
entailment,634,62,54
|
| 3 |
+
contradiction,64,603,70
|
| 4 |
+
neutral,68,100,609
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2239622772
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:73b5116535e150727769b5b887c8fb2948e7f68b207179e931bef83f2f7b5ad4
|
| 3 |
size 2239622772
|
model_predict.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|