Initial Commit
Browse files- README.md +109 -0
- config.json +39 -0
- pytorch_model.bin +3 -0
- training_args.bin +3 -0
README.md
ADDED
@@ -0,0 +1,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: FacebookAI/xlm-roberta-base
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
datasets:
|
7 |
+
- tweet_sentiment_multilingual
|
8 |
+
metrics:
|
9 |
+
- accuracy
|
10 |
+
- f1
|
11 |
+
model-index:
|
12 |
+
- name: scenario-KD-PR-CDF-ALL-D2_data-cardiffnlp_tweet_sentiment_multilingual_all_delta
|
13 |
+
results: []
|
14 |
+
---
|
15 |
+
|
16 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
17 |
+
should probably proofread and complete it, then remove this comment. -->
|
18 |
+
|
19 |
+
# scenario-KD-PR-CDF-ALL-D2_data-cardiffnlp_tweet_sentiment_multilingual_all_delta
|
20 |
+
|
21 |
+
This model is a fine-tuned version of [FacebookAI/xlm-roberta-base](https://huggingface.co/FacebookAI/xlm-roberta-base) on the tweet_sentiment_multilingual dataset.
|
22 |
+
It achieves the following results on the evaluation set:
|
23 |
+
- Loss: 3.4263
|
24 |
+
- Accuracy: 0.5617
|
25 |
+
- F1: 0.5621
|
26 |
+
|
27 |
+
## Model description
|
28 |
+
|
29 |
+
More information needed
|
30 |
+
|
31 |
+
## Intended uses & limitations
|
32 |
+
|
33 |
+
More information needed
|
34 |
+
|
35 |
+
## Training and evaluation data
|
36 |
+
|
37 |
+
More information needed
|
38 |
+
|
39 |
+
## Training procedure
|
40 |
+
|
41 |
+
### Training hyperparameters
|
42 |
+
|
43 |
+
The following hyperparameters were used during training:
|
44 |
+
- learning_rate: 5e-05
|
45 |
+
- train_batch_size: 32
|
46 |
+
- eval_batch_size: 32
|
47 |
+
- seed: 7777
|
48 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
49 |
+
- lr_scheduler_type: linear
|
50 |
+
- num_epochs: 50
|
51 |
+
|
52 |
+
### Training results
|
53 |
+
|
54 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|
55 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|:------:|
|
56 |
+
| 4.8568 | 1.09 | 500 | 3.9914 | 0.4734 | 0.4688 |
|
57 |
+
| 3.9413 | 2.17 | 1000 | 3.8048 | 0.5127 | 0.5070 |
|
58 |
+
| 3.4502 | 3.26 | 1500 | 3.5184 | 0.5289 | 0.5171 |
|
59 |
+
| 3.0935 | 4.35 | 2000 | 3.3541 | 0.5436 | 0.5418 |
|
60 |
+
| 2.7635 | 5.43 | 2500 | 3.3827 | 0.5444 | 0.5443 |
|
61 |
+
| 2.5494 | 6.52 | 3000 | 3.4817 | 0.5428 | 0.5440 |
|
62 |
+
| 2.3131 | 7.61 | 3500 | 3.3051 | 0.5640 | 0.5567 |
|
63 |
+
| 2.131 | 8.7 | 4000 | 3.2511 | 0.5548 | 0.5574 |
|
64 |
+
| 1.9564 | 9.78 | 4500 | 3.4609 | 0.5583 | 0.5544 |
|
65 |
+
| 1.8216 | 10.87 | 5000 | 3.2391 | 0.5502 | 0.5520 |
|
66 |
+
| 1.7048 | 11.96 | 5500 | 3.2188 | 0.5525 | 0.5531 |
|
67 |
+
| 1.575 | 13.04 | 6000 | 3.2912 | 0.5637 | 0.5611 |
|
68 |
+
| 1.4693 | 14.13 | 6500 | 3.5853 | 0.5629 | 0.5628 |
|
69 |
+
| 1.4236 | 15.22 | 7000 | 3.3838 | 0.5421 | 0.5441 |
|
70 |
+
| 1.3372 | 16.3 | 7500 | 3.5262 | 0.5590 | 0.5583 |
|
71 |
+
| 1.2829 | 17.39 | 8000 | 3.6001 | 0.5552 | 0.5535 |
|
72 |
+
| 1.2351 | 18.48 | 8500 | 3.3745 | 0.5525 | 0.5513 |
|
73 |
+
| 1.1562 | 19.57 | 9000 | 3.3239 | 0.5706 | 0.5726 |
|
74 |
+
| 1.1264 | 20.65 | 9500 | 3.4648 | 0.5490 | 0.5507 |
|
75 |
+
| 1.0806 | 21.74 | 10000 | 3.4269 | 0.5652 | 0.5652 |
|
76 |
+
| 1.066 | 22.83 | 10500 | 3.3415 | 0.5613 | 0.5617 |
|
77 |
+
| 1.0144 | 23.91 | 11000 | 3.5331 | 0.5610 | 0.5623 |
|
78 |
+
| 0.9746 | 25.0 | 11500 | 3.5136 | 0.5625 | 0.5625 |
|
79 |
+
| 0.9415 | 26.09 | 12000 | 3.5623 | 0.5540 | 0.5530 |
|
80 |
+
| 0.932 | 27.17 | 12500 | 3.5626 | 0.5633 | 0.5622 |
|
81 |
+
| 0.9016 | 28.26 | 13000 | 3.6071 | 0.5467 | 0.5460 |
|
82 |
+
| 0.8847 | 29.35 | 13500 | 3.5201 | 0.5513 | 0.5519 |
|
83 |
+
| 0.8713 | 30.43 | 14000 | 3.5412 | 0.5660 | 0.5655 |
|
84 |
+
| 0.8459 | 31.52 | 14500 | 3.5206 | 0.5556 | 0.5554 |
|
85 |
+
| 0.8255 | 32.61 | 15000 | 3.4715 | 0.5552 | 0.5563 |
|
86 |
+
| 0.8082 | 33.7 | 15500 | 3.4875 | 0.5579 | 0.5584 |
|
87 |
+
| 0.7899 | 34.78 | 16000 | 3.4935 | 0.5775 | 0.5758 |
|
88 |
+
| 0.7958 | 35.87 | 16500 | 3.4224 | 0.5544 | 0.5555 |
|
89 |
+
| 0.7745 | 36.96 | 17000 | 3.3893 | 0.5671 | 0.5686 |
|
90 |
+
| 0.7666 | 38.04 | 17500 | 3.3972 | 0.5629 | 0.5640 |
|
91 |
+
| 0.7574 | 39.13 | 18000 | 3.5453 | 0.5706 | 0.5698 |
|
92 |
+
| 0.7468 | 40.22 | 18500 | 3.4342 | 0.5671 | 0.5660 |
|
93 |
+
| 0.7449 | 41.3 | 19000 | 3.3906 | 0.5640 | 0.5642 |
|
94 |
+
| 0.7338 | 42.39 | 19500 | 3.4109 | 0.5721 | 0.5728 |
|
95 |
+
| 0.7157 | 43.48 | 20000 | 3.3499 | 0.5721 | 0.5717 |
|
96 |
+
| 0.7285 | 44.57 | 20500 | 3.2780 | 0.5718 | 0.5718 |
|
97 |
+
| 0.7101 | 45.65 | 21000 | 3.3873 | 0.5648 | 0.5653 |
|
98 |
+
| 0.7144 | 46.74 | 21500 | 3.4731 | 0.5613 | 0.5621 |
|
99 |
+
| 0.7158 | 47.83 | 22000 | 3.4394 | 0.5733 | 0.5728 |
|
100 |
+
| 0.7016 | 48.91 | 22500 | 3.4609 | 0.5544 | 0.5545 |
|
101 |
+
| 0.7055 | 50.0 | 23000 | 3.4263 | 0.5617 | 0.5621 |
|
102 |
+
|
103 |
+
|
104 |
+
### Framework versions
|
105 |
+
|
106 |
+
- Transformers 4.33.3
|
107 |
+
- Pytorch 2.1.1+cu121
|
108 |
+
- Datasets 2.14.5
|
109 |
+
- Tokenizers 0.13.3
|
config.json
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "FacebookAI/xlm-roberta-base",
|
3 |
+
"architectures": [
|
4 |
+
"XLMRobertaForSequenceClassificationKD"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 384,
|
13 |
+
"id2label": {
|
14 |
+
"0": "LABEL_0",
|
15 |
+
"1": "LABEL_1",
|
16 |
+
"2": "LABEL_2"
|
17 |
+
},
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 1536,
|
20 |
+
"label2id": {
|
21 |
+
"LABEL_0": 0,
|
22 |
+
"LABEL_1": 1,
|
23 |
+
"LABEL_2": 2
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-05,
|
26 |
+
"max_position_embeddings": 514,
|
27 |
+
"model_type": "xlm-roberta",
|
28 |
+
"num_attention_heads": 12,
|
29 |
+
"num_hidden_layers": 6,
|
30 |
+
"output_past": true,
|
31 |
+
"pad_token_id": 1,
|
32 |
+
"position_embedding_type": "absolute",
|
33 |
+
"problem_type": "single_label_classification",
|
34 |
+
"torch_dtype": "float32",
|
35 |
+
"transformers_version": "4.33.3",
|
36 |
+
"type_vocab_size": 1,
|
37 |
+
"use_cache": true,
|
38 |
+
"vocab_size": 250002
|
39 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fbdf06f4aa319ca142caf32a650d8b5ea4e56561cb14192b5973ef6ead9d34b4
|
3 |
+
size 429199798
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:35aecd21c1b3a69e7edf5fc9156554d9e90a22f3c2e5508eabee736aa176a430
|
3 |
+
size 4664
|