Initial Commit
Browse files- README.md +88 -0
- config.json +45 -0
- eval_results_cardiff.json +1 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: haryoaw/scenario-MDBT-TCR_data-cl-cardiff_cl_only
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
model-index:
|
10 |
+
- name: scenario-KD-PO-CDF-CL-D2_data-cl-cardiff_cl_only66
|
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 |
+
# scenario-KD-PO-CDF-CL-D2_data-cl-cardiff_cl_only66
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [haryoaw/scenario-MDBT-TCR_data-cl-cardiff_cl_only](https://huggingface.co/haryoaw/scenario-MDBT-TCR_data-cl-cardiff_cl_only) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 31.7416
|
22 |
+
- Accuracy: 0.4560
|
23 |
+
- F1: 0.4541
|
24 |
+
|
25 |
+
## Model description
|
26 |
+
|
27 |
+
More information needed
|
28 |
+
|
29 |
+
## Intended uses & limitations
|
30 |
+
|
31 |
+
More information needed
|
32 |
+
|
33 |
+
## Training and evaluation data
|
34 |
+
|
35 |
+
More information needed
|
36 |
+
|
37 |
+
## Training procedure
|
38 |
+
|
39 |
+
### Training hyperparameters
|
40 |
+
|
41 |
+
The following hyperparameters were used during training:
|
42 |
+
- learning_rate: 5e-05
|
43 |
+
- train_batch_size: 32
|
44 |
+
- eval_batch_size: 32
|
45 |
+
- seed: 66
|
46 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
47 |
+
- lr_scheduler_type: linear
|
48 |
+
- num_epochs: 30
|
49 |
+
|
50 |
+
### Training results
|
51 |
+
|
52 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
53 |
+
|:-------------:|:-----:|:----:|:---------------:|:--------:|:------:|
|
54 |
+
| No log | 1.09 | 250 | 19.9794 | 0.4306 | 0.4241 |
|
55 |
+
| 22.4123 | 2.17 | 500 | 21.3481 | 0.4336 | 0.4260 |
|
56 |
+
| 22.4123 | 3.26 | 750 | 24.4238 | 0.4560 | 0.4561 |
|
57 |
+
| 12.6859 | 4.35 | 1000 | 25.0953 | 0.4352 | 0.4316 |
|
58 |
+
| 12.6859 | 5.43 | 1250 | 27.9114 | 0.4360 | 0.4335 |
|
59 |
+
| 6.8096 | 6.52 | 1500 | 29.7395 | 0.4321 | 0.4237 |
|
60 |
+
| 6.8096 | 7.61 | 1750 | 29.6224 | 0.4360 | 0.4305 |
|
61 |
+
| 4.5159 | 8.7 | 2000 | 31.3276 | 0.4390 | 0.4333 |
|
62 |
+
| 4.5159 | 9.78 | 2250 | 32.6593 | 0.4398 | 0.4354 |
|
63 |
+
| 3.2964 | 10.87 | 2500 | 33.0071 | 0.4352 | 0.4235 |
|
64 |
+
| 3.2964 | 11.96 | 2750 | 34.0500 | 0.4352 | 0.4265 |
|
65 |
+
| 2.4206 | 13.04 | 3000 | 33.9132 | 0.4344 | 0.4289 |
|
66 |
+
| 2.4206 | 14.13 | 3250 | 31.9401 | 0.4576 | 0.4554 |
|
67 |
+
| 1.78 | 15.22 | 3500 | 33.3465 | 0.4491 | 0.4410 |
|
68 |
+
| 1.78 | 16.3 | 3750 | 33.5318 | 0.4259 | 0.4209 |
|
69 |
+
| 1.3706 | 17.39 | 4000 | 34.5140 | 0.4583 | 0.4564 |
|
70 |
+
| 1.3706 | 18.48 | 4250 | 32.4824 | 0.4483 | 0.4475 |
|
71 |
+
| 1.1506 | 19.57 | 4500 | 33.5403 | 0.4460 | 0.4435 |
|
72 |
+
| 1.1506 | 20.65 | 4750 | 33.4105 | 0.4352 | 0.4321 |
|
73 |
+
| 0.9541 | 21.74 | 5000 | 32.5699 | 0.4468 | 0.4467 |
|
74 |
+
| 0.9541 | 22.83 | 5250 | 32.0965 | 0.4390 | 0.4375 |
|
75 |
+
| 0.7436 | 23.91 | 5500 | 33.0832 | 0.4290 | 0.4200 |
|
76 |
+
| 0.7436 | 25.0 | 5750 | 31.5703 | 0.4367 | 0.4327 |
|
77 |
+
| 0.6718 | 26.09 | 6000 | 33.3243 | 0.4313 | 0.4274 |
|
78 |
+
| 0.6718 | 27.17 | 6250 | 32.8775 | 0.4375 | 0.4328 |
|
79 |
+
| 0.5245 | 28.26 | 6500 | 32.0762 | 0.4437 | 0.4418 |
|
80 |
+
| 0.5245 | 29.35 | 6750 | 31.7416 | 0.4560 | 0.4541 |
|
81 |
+
|
82 |
+
|
83 |
+
### Framework versions
|
84 |
+
|
85 |
+
- Transformers 4.33.3
|
86 |
+
- Pytorch 2.1.1+cu121
|
87 |
+
- Datasets 2.14.5
|
88 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "haryoaw/scenario-MDBT-TCR_data-cl-cardiff_cl_only",
|
3 |
+
"architectures": [
|
4 |
+
"DebertaForSequenceClassificationKD"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"hidden_act": "gelu",
|
8 |
+
"hidden_dropout_prob": 0.1,
|
9 |
+
"hidden_size": 768,
|
10 |
+
"id2label": {
|
11 |
+
"0": "LABEL_0",
|
12 |
+
"1": "LABEL_1",
|
13 |
+
"2": "LABEL_2"
|
14 |
+
},
|
15 |
+
"initializer_range": 0.02,
|
16 |
+
"intermediate_size": 3072,
|
17 |
+
"label2id": {
|
18 |
+
"LABEL_0": 0,
|
19 |
+
"LABEL_1": 1,
|
20 |
+
"LABEL_2": 2
|
21 |
+
},
|
22 |
+
"layer_norm_eps": 1e-07,
|
23 |
+
"max_position_embeddings": 512,
|
24 |
+
"max_relative_positions": -1,
|
25 |
+
"model_type": "deberta-v2",
|
26 |
+
"norm_rel_ebd": "layer_norm",
|
27 |
+
"num_attention_heads": 12,
|
28 |
+
"num_hidden_layers": 6,
|
29 |
+
"pad_token_id": 0,
|
30 |
+
"pooler_dropout": 0,
|
31 |
+
"pooler_hidden_act": "gelu",
|
32 |
+
"pooler_hidden_size": 768,
|
33 |
+
"pos_att_type": [
|
34 |
+
"p2c",
|
35 |
+
"c2p"
|
36 |
+
],
|
37 |
+
"position_biased_input": false,
|
38 |
+
"position_buckets": 256,
|
39 |
+
"relative_attention": true,
|
40 |
+
"share_att_key": true,
|
41 |
+
"torch_dtype": "float32",
|
42 |
+
"transformers_version": "4.33.3",
|
43 |
+
"type_vocab_size": 0,
|
44 |
+
"vocab_size": 251000
|
45 |
+
}
|
eval_results_cardiff.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"arabic": {"f1": 0.5487636664855445, "accuracy": 0.5528735632183908, "confusion_matrix": [[138, 72, 80], [73, 141, 76], [26, 62, 202]]}, "english": {"f1": 0.6081898842970522, "accuracy": 0.6195402298850575, "confusion_matrix": [[216, 28, 46], [109, 114, 67], [39, 42, 209]]}, "french": {"f1": 0.4506655910432762, "accuracy": 0.4632183908045977, "confusion_matrix": [[95, 132, 63], [23, 208, 59], [27, 163, 100]]}, "german": {"f1": 0.6451204514921933, "accuracy": 0.6494252873563219, "confusion_matrix": [[160, 35, 95], [49, 163, 78], [27, 21, 242]]}, "hindi": {"f1": 0.42293421121909186, "accuracy": 0.4413793103448276, "confusion_matrix": [[97, 41, 152], [61, 80, 149], [39, 44, 207]]}, "italian": {"f1": 0.6123113412900704, "accuracy": 0.6137931034482759, "confusion_matrix": [[154, 40, 96], [35, 161, 94], [31, 40, 219]]}, "portuguese": {"f1": 0.48163998236246214, "accuracy": 0.4942528735632184, "confusion_matrix": [[103, 71, 116], [61, 116, 113], [27, 52, 211]]}, "spanish": {"f1": 0.5250823061394478, "accuracy": 0.539080459770115, "confusion_matrix": [[170, 61, 59], [83, 90, 117], [43, 38, 209]]}, "all": {"f1": 0.5355126575777598, "accuracy": 0.5395114942528736, "confusion_matrix": [[1098, 487, 735], [476, 1068, 776], [256, 475, 1589]]}}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a7ed82b8d8d76745ffd06030f49daa039c711871307eadbf35536cfa984c148f
|
3 |
+
size 946740394
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c0ca527e3c526fe996bf2124c9f19a71533761b9afcfa76fc47f429569334397
|
3 |
+
size 4600
|