Update new version of T5
#14
by
khaihoang004
- opened
- T5_ver2/config.json +61 -0
- T5_ver2/generation_config.json +7 -0
- T5_ver2/model.safetensors +3 -0
- T5_ver2/optimizer.pt +3 -0
- T5_ver2/rng_state.pth +3 -0
- T5_ver2/scheduler.pt +3 -0
- T5_ver2/trainer_state.json +117 -0
- T5_ver2/training_args.bin +3 -0
- T5_ver2/vi_tokenizer_32128.model +3 -0
T5_ver2/config.json
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "t5-small",
|
3 |
+
"architectures": [
|
4 |
+
"T5ForConditionalGeneration"
|
5 |
+
],
|
6 |
+
"classifier_dropout": 0.0,
|
7 |
+
"d_ff": 2048,
|
8 |
+
"d_kv": 64,
|
9 |
+
"d_model": 512,
|
10 |
+
"decoder_start_token_id": 0,
|
11 |
+
"dense_act_fn": "relu",
|
12 |
+
"dropout_rate": 0.1,
|
13 |
+
"eos_token_id": 1,
|
14 |
+
"feed_forward_proj": "relu",
|
15 |
+
"initializer_factor": 1.0,
|
16 |
+
"is_encoder_decoder": true,
|
17 |
+
"is_gated_act": false,
|
18 |
+
"layer_norm_epsilon": 1e-06,
|
19 |
+
"model_type": "t5",
|
20 |
+
"n_positions": 512,
|
21 |
+
"num_decoder_layers": 6,
|
22 |
+
"num_heads": 8,
|
23 |
+
"num_layers": 6,
|
24 |
+
"output_past": true,
|
25 |
+
"pad_token_id": 0,
|
26 |
+
"relative_attention_max_distance": 128,
|
27 |
+
"relative_attention_num_buckets": 32,
|
28 |
+
"task_specific_params": {
|
29 |
+
"summarization": {
|
30 |
+
"early_stopping": true,
|
31 |
+
"length_penalty": 2.0,
|
32 |
+
"max_length": 200,
|
33 |
+
"min_length": 30,
|
34 |
+
"no_repeat_ngram_size": 3,
|
35 |
+
"num_beams": 4,
|
36 |
+
"prefix": "summarize: "
|
37 |
+
},
|
38 |
+
"translation_en_to_de": {
|
39 |
+
"early_stopping": true,
|
40 |
+
"max_length": 300,
|
41 |
+
"num_beams": 4,
|
42 |
+
"prefix": "translate English to German: "
|
43 |
+
},
|
44 |
+
"translation_en_to_fr": {
|
45 |
+
"early_stopping": true,
|
46 |
+
"max_length": 300,
|
47 |
+
"num_beams": 4,
|
48 |
+
"prefix": "translate English to French: "
|
49 |
+
},
|
50 |
+
"translation_en_to_ro": {
|
51 |
+
"early_stopping": true,
|
52 |
+
"max_length": 300,
|
53 |
+
"num_beams": 4,
|
54 |
+
"prefix": "translate English to Romanian: "
|
55 |
+
}
|
56 |
+
},
|
57 |
+
"torch_dtype": "float32",
|
58 |
+
"transformers_version": "4.46.3",
|
59 |
+
"use_cache": true,
|
60 |
+
"vocab_size": 32128
|
61 |
+
}
|
T5_ver2/generation_config.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"decoder_start_token_id": 0,
|
4 |
+
"eos_token_id": 1,
|
5 |
+
"pad_token_id": 0,
|
6 |
+
"transformers_version": "4.46.3"
|
7 |
+
}
|
T5_ver2/model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:dd644d98bd1050c70457b8529db0e18d35bde0e0877c64ce09229981fa0be16b
|
3 |
+
size 242041896
|
T5_ver2/optimizer.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e3b5df5c7bc50ed8036075202178f6cc5e010ebf3782385a6ddf90ae6c39d786
|
3 |
+
size 484163514
|
T5_ver2/rng_state.pth
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b31650900dea33c8f18e2b4dd4997626a0f5368b89ec466be164c249fc6451c
|
3 |
+
size 14244
|
T5_ver2/scheduler.pt
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:69b273d9b2ee662fb41f09ce2cad4738929d3cc2e4c449c5da4ac28babc1022d
|
3 |
+
size 1064
|
T5_ver2/trainer_state.json
ADDED
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": 1.2436659336090088,
|
3 |
+
"best_model_checkpoint": "./results_v1/checkpoint-585",
|
4 |
+
"epoch": 5.0,
|
5 |
+
"eval_steps": 500,
|
6 |
+
"global_step": 585,
|
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.8547008547008547,
|
13 |
+
"grad_norm": 16204.2978515625,
|
14 |
+
"learning_rate": 0.00041452991452991454,
|
15 |
+
"loss": 1.2355,
|
16 |
+
"step": 100
|
17 |
+
},
|
18 |
+
{
|
19 |
+
"epoch": 1.0,
|
20 |
+
"eval_loss": 1.3050023317337036,
|
21 |
+
"eval_runtime": 35.7149,
|
22 |
+
"eval_samples_per_second": 416.885,
|
23 |
+
"eval_steps_per_second": 3.276,
|
24 |
+
"step": 117
|
25 |
+
},
|
26 |
+
{
|
27 |
+
"epoch": 1.7094017094017095,
|
28 |
+
"grad_norm": 21855.40625,
|
29 |
+
"learning_rate": 0.00032905982905982907,
|
30 |
+
"loss": 1.2163,
|
31 |
+
"step": 200
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"epoch": 2.0,
|
35 |
+
"eval_loss": 1.2828969955444336,
|
36 |
+
"eval_runtime": 34.9809,
|
37 |
+
"eval_samples_per_second": 425.632,
|
38 |
+
"eval_steps_per_second": 3.345,
|
39 |
+
"step": 234
|
40 |
+
},
|
41 |
+
{
|
42 |
+
"epoch": 2.564102564102564,
|
43 |
+
"grad_norm": 17783.169921875,
|
44 |
+
"learning_rate": 0.0002435897435897436,
|
45 |
+
"loss": 1.2163,
|
46 |
+
"step": 300
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"epoch": 3.0,
|
50 |
+
"eval_loss": 1.2669651508331299,
|
51 |
+
"eval_runtime": 34.8672,
|
52 |
+
"eval_samples_per_second": 427.02,
|
53 |
+
"eval_steps_per_second": 3.356,
|
54 |
+
"step": 351
|
55 |
+
},
|
56 |
+
{
|
57 |
+
"epoch": 3.4188034188034186,
|
58 |
+
"grad_norm": 15218.6376953125,
|
59 |
+
"learning_rate": 0.0001581196581196581,
|
60 |
+
"loss": 1.216,
|
61 |
+
"step": 400
|
62 |
+
},
|
63 |
+
{
|
64 |
+
"epoch": 4.0,
|
65 |
+
"eval_loss": 1.251606822013855,
|
66 |
+
"eval_runtime": 34.7427,
|
67 |
+
"eval_samples_per_second": 428.551,
|
68 |
+
"eval_steps_per_second": 3.368,
|
69 |
+
"step": 468
|
70 |
+
},
|
71 |
+
{
|
72 |
+
"epoch": 4.273504273504273,
|
73 |
+
"grad_norm": 16033.8818359375,
|
74 |
+
"learning_rate": 7.264957264957266e-05,
|
75 |
+
"loss": 1.2226,
|
76 |
+
"step": 500
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"epoch": 5.0,
|
80 |
+
"eval_loss": 1.2436659336090088,
|
81 |
+
"eval_runtime": 35.678,
|
82 |
+
"eval_samples_per_second": 417.316,
|
83 |
+
"eval_steps_per_second": 3.279,
|
84 |
+
"step": 585
|
85 |
+
}
|
86 |
+
],
|
87 |
+
"logging_steps": 100,
|
88 |
+
"max_steps": 585,
|
89 |
+
"num_input_tokens_seen": 0,
|
90 |
+
"num_train_epochs": 5,
|
91 |
+
"save_steps": 500,
|
92 |
+
"stateful_callbacks": {
|
93 |
+
"EarlyStoppingCallback": {
|
94 |
+
"args": {
|
95 |
+
"early_stopping_patience": 2,
|
96 |
+
"early_stopping_threshold": 0.0
|
97 |
+
},
|
98 |
+
"attributes": {
|
99 |
+
"early_stopping_patience_counter": 0
|
100 |
+
}
|
101 |
+
},
|
102 |
+
"TrainerControl": {
|
103 |
+
"args": {
|
104 |
+
"should_epoch_stop": false,
|
105 |
+
"should_evaluate": false,
|
106 |
+
"should_log": false,
|
107 |
+
"should_save": true,
|
108 |
+
"should_training_stop": true
|
109 |
+
},
|
110 |
+
"attributes": {}
|
111 |
+
}
|
112 |
+
},
|
113 |
+
"total_flos": 2518964691271680.0,
|
114 |
+
"train_batch_size": 256,
|
115 |
+
"trial_name": null,
|
116 |
+
"trial_params": null
|
117 |
+
}
|
T5_ver2/training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:98bd70546647df2bb00e52a0bb43ae210254e8e64f81eda19f84ab0660b86d67
|
3 |
+
size 5240
|
T5_ver2/vi_tokenizer_32128.model
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0bcb7e43d2a221e55098be0918ef7a89f6fb746c97610d2eea04bd7cb772e378
|
3 |
+
size 749707
|