Sag1012 khaihoang004 commited on
Commit
5eeea68
1 Parent(s): 0f4eb59

Add T5 Model (#10)

Browse files

- Add T5 Model (549d04d36614a495cad08cf0beec63fe2e27f4c8)


Co-authored-by: Hoang Trung Khai <[email protected]>

T5/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/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/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:591721fc8356d62f00f4a9ba27283c6206bbb7525bd09f9723eb9543f3347218
3
+ size 242041896
T5/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed3e107e59eb9cad55257916cf03bbdd97ae63545ab6476fcb4d246c7cdbc3c8
3
+ size 484163514
T5/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c2f3313d838d31eb4140bcddf8bed36e65022b5426590710fe0628a00951a02
3
+ size 14244
T5/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69812f1367cdb2da45be042e64b0795c952c62e17e23c9c3be6a3a3ea42ad9c7
3
+ size 1064
T5/trainer_state.json ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 1.530792474746704,
3
+ "best_model_checkpoint": "./results_v1/checkpoint-295",
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 295,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.0,
13
+ "eval_loss": 1.5825037956237793,
14
+ "eval_runtime": 15.4954,
15
+ "eval_samples_per_second": 480.399,
16
+ "eval_steps_per_second": 3.808,
17
+ "step": 59
18
+ },
19
+ {
20
+ "epoch": 1.694915254237288,
21
+ "grad_norm": 21800.6015625,
22
+ "learning_rate": 0.0003305084745762712,
23
+ "loss": 1.4355,
24
+ "step": 100
25
+ },
26
+ {
27
+ "epoch": 2.0,
28
+ "eval_loss": 1.5649447441101074,
29
+ "eval_runtime": 16.533,
30
+ "eval_samples_per_second": 450.251,
31
+ "eval_steps_per_second": 3.569,
32
+ "step": 118
33
+ },
34
+ {
35
+ "epoch": 3.0,
36
+ "eval_loss": 1.5507193803787231,
37
+ "eval_runtime": 16.0878,
38
+ "eval_samples_per_second": 462.71,
39
+ "eval_steps_per_second": 3.667,
40
+ "step": 177
41
+ },
42
+ {
43
+ "epoch": 3.389830508474576,
44
+ "grad_norm": 14290.56640625,
45
+ "learning_rate": 0.00016101694915254236,
46
+ "loss": 1.4142,
47
+ "step": 200
48
+ },
49
+ {
50
+ "epoch": 4.0,
51
+ "eval_loss": 1.5406986474990845,
52
+ "eval_runtime": 16.3245,
53
+ "eval_samples_per_second": 456.001,
54
+ "eval_steps_per_second": 3.614,
55
+ "step": 236
56
+ },
57
+ {
58
+ "epoch": 5.0,
59
+ "eval_loss": 1.530792474746704,
60
+ "eval_runtime": 16.839,
61
+ "eval_samples_per_second": 442.07,
62
+ "eval_steps_per_second": 3.504,
63
+ "step": 295
64
+ }
65
+ ],
66
+ "logging_steps": 100,
67
+ "max_steps": 295,
68
+ "num_input_tokens_seen": 0,
69
+ "num_train_epochs": 5,
70
+ "save_steps": 500,
71
+ "stateful_callbacks": {
72
+ "EarlyStoppingCallback": {
73
+ "args": {
74
+ "early_stopping_patience": 2,
75
+ "early_stopping_threshold": 0.0
76
+ },
77
+ "attributes": {
78
+ "early_stopping_patience_counter": 0
79
+ }
80
+ },
81
+ "TrainerControl": {
82
+ "args": {
83
+ "should_epoch_stop": false,
84
+ "should_evaluate": false,
85
+ "should_log": false,
86
+ "should_save": true,
87
+ "should_training_stop": true
88
+ },
89
+ "attributes": {}
90
+ }
91
+ },
92
+ "total_flos": 1259440051322880.0,
93
+ "train_batch_size": 256,
94
+ "trial_name": null,
95
+ "trial_params": null
96
+ }
T5/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/vi_tokenizer_32128.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18c7d44bfd2206f5356e89c4400a6c2889579a7d0da304e879e5eb42b555ce2e
3
+ size 751485