Initial Commit
Browse files- README.md +78 -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,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: haryoaw/scenario-MDBT-TCR_data-en-cardiff_eng_only
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
metrics:
|
7 |
+
- accuracy
|
8 |
+
- f1
|
9 |
+
model-index:
|
10 |
+
- name: scenario-KD-PO-CDF-EN-FROM-EN-D2_data-en-cardiff_eng_only55
|
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-EN-FROM-EN-D2_data-en-cardiff_eng_only55
|
18 |
+
|
19 |
+
This model is a fine-tuned version of [haryoaw/scenario-MDBT-TCR_data-en-cardiff_eng_only](https://huggingface.co/haryoaw/scenario-MDBT-TCR_data-en-cardiff_eng_only) on the None dataset.
|
20 |
+
It achieves the following results on the evaluation set:
|
21 |
+
- Loss: 23.6899
|
22 |
+
- Accuracy: 0.4665
|
23 |
+
- F1: 0.4662
|
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: 55
|
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.72 | 100 | 15.5667 | 0.4356 | 0.4288 |
|
55 |
+
| No log | 3.45 | 200 | 17.1164 | 0.4418 | 0.4096 |
|
56 |
+
| No log | 5.17 | 300 | 18.8679 | 0.4634 | 0.4606 |
|
57 |
+
| No log | 6.9 | 400 | 19.9135 | 0.4550 | 0.4494 |
|
58 |
+
| 9.9963 | 8.62 | 500 | 23.0517 | 0.4581 | 0.4517 |
|
59 |
+
| 9.9963 | 10.34 | 600 | 21.4184 | 0.4493 | 0.4394 |
|
60 |
+
| 9.9963 | 12.07 | 700 | 22.8898 | 0.4621 | 0.4584 |
|
61 |
+
| 9.9963 | 13.79 | 800 | 22.6673 | 0.4462 | 0.4352 |
|
62 |
+
| 9.9963 | 15.52 | 900 | 23.8054 | 0.4616 | 0.4605 |
|
63 |
+
| 1.7937 | 17.24 | 1000 | 23.0995 | 0.4586 | 0.4524 |
|
64 |
+
| 1.7937 | 18.97 | 1100 | 23.2337 | 0.4709 | 0.4682 |
|
65 |
+
| 1.7937 | 20.69 | 1200 | 24.9664 | 0.4669 | 0.4646 |
|
66 |
+
| 1.7937 | 22.41 | 1300 | 23.8143 | 0.4700 | 0.4695 |
|
67 |
+
| 1.7937 | 24.14 | 1400 | 23.9374 | 0.4581 | 0.4546 |
|
68 |
+
| 0.6046 | 25.86 | 1500 | 24.0218 | 0.4647 | 0.4651 |
|
69 |
+
| 0.6046 | 27.59 | 1600 | 23.0812 | 0.4740 | 0.4735 |
|
70 |
+
| 0.6046 | 29.31 | 1700 | 23.6899 | 0.4665 | 0.4662 |
|
71 |
+
|
72 |
+
|
73 |
+
### Framework versions
|
74 |
+
|
75 |
+
- Transformers 4.33.3
|
76 |
+
- Pytorch 2.1.1+cu121
|
77 |
+
- Datasets 2.14.5
|
78 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "haryoaw/scenario-MDBT-TCR_data-en-cardiff_eng_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.42492992441923727, "accuracy": 0.43103448275862066, "confusion_matrix": [[153, 111, 26], [103, 140, 47], [88, 120, 82]]}, "english": {"f1": 0.5900880089025401, "accuracy": 0.5942528735632184, "confusion_matrix": [[227, 49, 14], [107, 149, 34], [48, 101, 141]]}, "french": {"f1": 0.42559459296084867, "accuracy": 0.44482758620689655, "confusion_matrix": [[129, 137, 24], [57, 195, 38], [70, 157, 63]]}, "german": {"f1": 0.5448570948217012, "accuracy": 0.5448275862068965, "confusion_matrix": [[134, 105, 51], [61, 178, 51], [36, 92, 162]]}, "hindi": {"f1": 0.430874499006803, "accuracy": 0.44022988505747124, "confusion_matrix": [[81, 99, 110], [53, 133, 104], [36, 85, 169]]}, "italian": {"f1": 0.4981809961579979, "accuracy": 0.5, "confusion_matrix": [[117, 102, 71], [32, 175, 83], [42, 105, 143]]}, "portuguese": {"f1": 0.41834557959085594, "accuracy": 0.42298850574712643, "confusion_matrix": [[92, 144, 54], [74, 166, 50], [49, 131, 110]]}, "spanish": {"f1": 0.5131262662617195, "accuracy": 0.5149425287356322, "confusion_matrix": [[148, 94, 48], [89, 117, 84], [38, 69, 183]]}, "all": {"f1": 0.4962851958962926, "accuracy": 0.4961206896551724, "confusion_matrix": [[1099, 812, 409], [536, 1303, 481], [422, 847, 1051]]}}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:64525f2574b3efd73fa810667cdc4a20fa9ceea7ce0e0c44d5b913e80bc8a37f
|
3 |
+
size 946740394
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f2f4193cc3ed6e52f240815a8a101ca698d12a25bcf9d67400033baeba570fb2
|
3 |
+
size 4600
|