ocean010315
commited on
Commit
•
45a35c5
1
Parent(s):
bcccd4b
feat: Fine-tune RoBERTa-large with KorQuAD v1
Browse files- README.md +2 -3
- all_results.json +12 -0
- config.json +29 -0
- eval_results.json +6 -0
- model.safetensors +3 -0
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +59 -0
- train_results.json +9 -0
- train_results.txt +7 -0
- trainer_state.json +98 -0
- training_args.bin +3 -0
- vocab.txt +0 -0
README.md
CHANGED
@@ -9,7 +9,7 @@ tags:
|
|
9 |
---
|
10 |
|
11 |
### Config
|
12 |
-
- epoch =
|
13 |
- learning_rate = 1e-5
|
14 |
- batch_size = 16
|
15 |
|
@@ -17,5 +17,4 @@ tags:
|
|
17 |
- V100(RAM 32GB)
|
18 |
|
19 |
### Validation Result
|
20 |
-
- epoch = 1: `EM` 88.1191, `F1` 92.8047
|
21 |
-
- epoch = 2: `EM` , `F1`
|
|
|
9 |
---
|
10 |
|
11 |
### Config
|
12 |
+
- epoch = 1
|
13 |
- learning_rate = 1e-5
|
14 |
- batch_size = 16
|
15 |
|
|
|
17 |
- V100(RAM 32GB)
|
18 |
|
19 |
### Validation Result
|
20 |
+
- epoch = 1: `EM` 88.1191, `F1` 92.8047
|
|
all_results.json
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_samples": 6865,
|
4 |
+
"exact_match": 88.11915483200555,
|
5 |
+
"f1": 92.80469400706696,
|
6 |
+
"total_flos": 4.801972373497037e+16,
|
7 |
+
"train_loss": 0.6182623529500156,
|
8 |
+
"train_runtime": 1876.03,
|
9 |
+
"train_samples": 69399,
|
10 |
+
"train_samples_per_second": 36.992,
|
11 |
+
"train_steps_per_second": 2.312
|
12 |
+
}
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "klue/roberta-large",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaForQuestionAnswering"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"bos_token_id": 0,
|
8 |
+
"classifier_dropout": null,
|
9 |
+
"eos_token_id": 2,
|
10 |
+
"gradient_checkpointing": false,
|
11 |
+
"hidden_act": "gelu",
|
12 |
+
"hidden_dropout_prob": 0.1,
|
13 |
+
"hidden_size": 1024,
|
14 |
+
"initializer_range": 0.02,
|
15 |
+
"intermediate_size": 4096,
|
16 |
+
"layer_norm_eps": 1e-05,
|
17 |
+
"max_position_embeddings": 514,
|
18 |
+
"model_type": "roberta",
|
19 |
+
"num_attention_heads": 16,
|
20 |
+
"num_hidden_layers": 24,
|
21 |
+
"pad_token_id": 1,
|
22 |
+
"position_embedding_type": "absolute",
|
23 |
+
"tokenizer_class": "BertTokenizer",
|
24 |
+
"torch_dtype": "float32",
|
25 |
+
"transformers_version": "4.45.2",
|
26 |
+
"type_vocab_size": 1,
|
27 |
+
"use_cache": true,
|
28 |
+
"vocab_size": 32000
|
29 |
+
}
|
eval_results.json
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"eval_samples": 6865,
|
4 |
+
"exact_match": 88.11915483200555,
|
5 |
+
"f1": 92.80469400706696
|
6 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0aa4d93967c0fc1ccae387f0a6872064382ede5aa14747558fb53e198dec306c
|
3 |
+
size 1342483296
|
special_tokens_map.json
ADDED
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "[CLS]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "[SEP]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "[MASK]",
|
25 |
+
"lstrip": false,
|
26 |
+
"normalized": false,
|
27 |
+
"rstrip": false,
|
28 |
+
"single_word": false
|
29 |
+
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "[PAD]",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": false,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "[SEP]",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "[UNK]",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": false,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[CLS]",
|
5 |
+
"lstrip": false,
|
6 |
+
"normalized": false,
|
7 |
+
"rstrip": false,
|
8 |
+
"single_word": false,
|
9 |
+
"special": true
|
10 |
+
},
|
11 |
+
"1": {
|
12 |
+
"content": "[PAD]",
|
13 |
+
"lstrip": false,
|
14 |
+
"normalized": false,
|
15 |
+
"rstrip": false,
|
16 |
+
"single_word": false,
|
17 |
+
"special": true
|
18 |
+
},
|
19 |
+
"2": {
|
20 |
+
"content": "[SEP]",
|
21 |
+
"lstrip": false,
|
22 |
+
"normalized": false,
|
23 |
+
"rstrip": false,
|
24 |
+
"single_word": false,
|
25 |
+
"special": true
|
26 |
+
},
|
27 |
+
"3": {
|
28 |
+
"content": "[UNK]",
|
29 |
+
"lstrip": false,
|
30 |
+
"normalized": false,
|
31 |
+
"rstrip": false,
|
32 |
+
"single_word": false,
|
33 |
+
"special": true
|
34 |
+
},
|
35 |
+
"4": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"bos_token": "[CLS]",
|
45 |
+
"clean_up_tokenization_spaces": false,
|
46 |
+
"cls_token": "[CLS]",
|
47 |
+
"do_basic_tokenize": true,
|
48 |
+
"do_lower_case": false,
|
49 |
+
"eos_token": "[SEP]",
|
50 |
+
"mask_token": "[MASK]",
|
51 |
+
"model_max_length": 512,
|
52 |
+
"never_split": null,
|
53 |
+
"pad_token": "[PAD]",
|
54 |
+
"sep_token": "[SEP]",
|
55 |
+
"strip_accents": null,
|
56 |
+
"tokenize_chinese_chars": true,
|
57 |
+
"tokenizer_class": "BertTokenizer",
|
58 |
+
"unk_token": "[UNK]"
|
59 |
+
}
|
train_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 1.0,
|
3 |
+
"total_flos": 4.801972373497037e+16,
|
4 |
+
"train_loss": 0.6182623529500156,
|
5 |
+
"train_runtime": 1876.03,
|
6 |
+
"train_samples": 69399,
|
7 |
+
"train_samples_per_second": 36.992,
|
8 |
+
"train_steps_per_second": 2.312
|
9 |
+
}
|
train_results.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
epoch = 1.0
|
2 |
+
total_flos = 4.801972373497037e+16
|
3 |
+
train_loss = 0.6182623529500156
|
4 |
+
train_runtime = 1876.03
|
5 |
+
train_samples = 69399
|
6 |
+
train_samples_per_second = 36.992
|
7 |
+
train_steps_per_second = 2.312
|
trainer_state.json
ADDED
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 1.0,
|
5 |
+
"eval_steps": 50,
|
6 |
+
"global_step": 4338,
|
7 |
+
"is_hyper_param_search": false,
|
8 |
+
"is_local_process_zero": true,
|
9 |
+
"is_world_process_zero": true,
|
10 |
+
"log_history": [
|
11 |
+
{
|
12 |
+
"epoch": 0.11526048870447211,
|
13 |
+
"grad_norm": 20.16172218322754,
|
14 |
+
"learning_rate": 9.960000000000001e-06,
|
15 |
+
"loss": 2.3764,
|
16 |
+
"step": 500
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 0.23052097740894423,
|
20 |
+
"grad_norm": 16.672468185424805,
|
21 |
+
"learning_rate": 8.705054715997916e-06,
|
22 |
+
"loss": 0.5451,
|
23 |
+
"step": 1000
|
24 |
+
},
|
25 |
+
{
|
26 |
+
"epoch": 0.3457814661134163,
|
27 |
+
"grad_norm": 11.151906967163086,
|
28 |
+
"learning_rate": 7.402292860865034e-06,
|
29 |
+
"loss": 0.4302,
|
30 |
+
"step": 1500
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"epoch": 0.46104195481788846,
|
34 |
+
"grad_norm": 7.392632961273193,
|
35 |
+
"learning_rate": 6.099531005732152e-06,
|
36 |
+
"loss": 0.3772,
|
37 |
+
"step": 2000
|
38 |
+
},
|
39 |
+
{
|
40 |
+
"epoch": 0.5763024435223605,
|
41 |
+
"grad_norm": 6.710408687591553,
|
42 |
+
"learning_rate": 4.796769150599271e-06,
|
43 |
+
"loss": 0.3742,
|
44 |
+
"step": 2500
|
45 |
+
},
|
46 |
+
{
|
47 |
+
"epoch": 0.6915629322268326,
|
48 |
+
"grad_norm": 8.172633171081543,
|
49 |
+
"learning_rate": 3.494007295466389e-06,
|
50 |
+
"loss": 0.3518,
|
51 |
+
"step": 3000
|
52 |
+
},
|
53 |
+
{
|
54 |
+
"epoch": 0.8068234209313048,
|
55 |
+
"grad_norm": 5.664760112762451,
|
56 |
+
"learning_rate": 2.1912454403335073e-06,
|
57 |
+
"loss": 0.3619,
|
58 |
+
"step": 3500
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"epoch": 0.9220839096357769,
|
62 |
+
"grad_norm": 16.45347785949707,
|
63 |
+
"learning_rate": 8.884835852006255e-07,
|
64 |
+
"loss": 0.3293,
|
65 |
+
"step": 4000
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 1.0,
|
69 |
+
"step": 4338,
|
70 |
+
"total_flos": 4.801972373497037e+16,
|
71 |
+
"train_loss": 0.6182623529500156,
|
72 |
+
"train_runtime": 1876.03,
|
73 |
+
"train_samples_per_second": 36.992,
|
74 |
+
"train_steps_per_second": 2.312
|
75 |
+
}
|
76 |
+
],
|
77 |
+
"logging_steps": 500,
|
78 |
+
"max_steps": 4338,
|
79 |
+
"num_input_tokens_seen": 0,
|
80 |
+
"num_train_epochs": 1,
|
81 |
+
"save_steps": 500,
|
82 |
+
"stateful_callbacks": {
|
83 |
+
"TrainerControl": {
|
84 |
+
"args": {
|
85 |
+
"should_epoch_stop": false,
|
86 |
+
"should_evaluate": false,
|
87 |
+
"should_log": false,
|
88 |
+
"should_save": true,
|
89 |
+
"should_training_stop": true
|
90 |
+
},
|
91 |
+
"attributes": {}
|
92 |
+
}
|
93 |
+
},
|
94 |
+
"total_flos": 4.801972373497037e+16,
|
95 |
+
"train_batch_size": 16,
|
96 |
+
"trial_name": null,
|
97 |
+
"trial_params": null
|
98 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:79abd64a81d1628797e3b05d617cbcfd462e49d3557e35556bd00b2bfba490ec
|
3 |
+
size 4731
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|