zbambergerNLP commited on
Commit
d053bae
·
verified ·
1 Parent(s): 7b42c31

Upload model (hf_t5) to HuggingFace Hub.

Browse files

checkpoint checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000

Files changed (21) hide show
  1. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/config.json +33 -0
  2. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/generation_config.json +7 -0
  3. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
  4. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
  5. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
  6. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
  7. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/mp_rank_00_model_states.pt +3 -0
  8. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/latest +1 -0
  9. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/model.safetensors +3 -0
  10. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/rng_state_0.pth +3 -0
  11. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/rng_state_1.pth +3 -0
  12. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/rng_state_2.pth +3 -0
  13. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/rng_state_3.pth +3 -0
  14. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/scheduler.pt +3 -0
  15. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/special_tokens_map.json +125 -0
  16. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/spiece.model +3 -0
  17. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/tokenizer.json +0 -0
  18. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/tokenizer_config.json +940 -0
  19. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/trainer_state.json +1533 -0
  20. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/training_args.bin +3 -0
  21. checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/zero_to_fp32.py +592 -0
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/t5-v1_1-base",
3
+ "architectures": [
4
+ "T5ForConditionalGeneration"
5
+ ],
6
+ "classifier_dropout": 0.0,
7
+ "d_ff": 2048,
8
+ "d_kv": 64,
9
+ "d_model": 768,
10
+ "decoder_start_token_id": 0,
11
+ "dense_act_fn": "gelu_new",
12
+ "dropout_rate": 0.0,
13
+ "eos_token_id": 1,
14
+ "feed_forward_proj": "gated-gelu",
15
+ "initializer_factor": 1.0,
16
+ "is_bf16": true,
17
+ "is_encoder_decoder": true,
18
+ "is_gated_act": true,
19
+ "layer_norm_epsilon": 1e-06,
20
+ "model_type": "t5",
21
+ "num_decoder_layers": 12,
22
+ "num_heads": 12,
23
+ "num_layers": 12,
24
+ "output_past": true,
25
+ "pad_token_id": 0,
26
+ "relative_attention_max_distance": 128,
27
+ "relative_attention_num_buckets": 32,
28
+ "tie_word_embeddings": false,
29
+ "torch_dtype": "bfloat16",
30
+ "transformers_version": "4.39.3",
31
+ "use_cache": true,
32
+ "vocab_size": 32104
33
+ }
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/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.39.3"
7
+ }
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4e7a9a17b056a141842d1550b46f0b38f209b0348c40c6209e885aed088f0f97
3
+ size 742632752
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e8c7933a379508c19e0f8b99444de7e97a22d4702fb8794fb89dba3c55d9b066
3
+ size 742635056
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3712b1eac981e65176da5afbeac32377dbd7dcff4ec9034f111a0df65902e434
3
+ size 742635440
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42f90c48ff95369a06aac1adfaab4c83c2307e180d7928d14b65a8f94220af84
3
+ size 742633136
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/global_step16000/mp_rank_00_model_states.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d4b3aa74b78da01afd472e326f95dcafbd825bde3dd7b3536868fa30942ba64
3
+ size 495181624
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/latest ADDED
@@ -0,0 +1 @@
 
 
1
+ global_step16000
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ec44296a496533ba282a617538b938e7a28b01a4a3de7d5a4ed08de78a7eff45
3
+ size 593739520
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/rng_state_0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03cac535790d2b13dcdc1e4ac58be793407427483ec7d7721f84508e01451bc1
3
+ size 14960
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/rng_state_1.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:098f3fed4ab092d48659ef4c4398ac0ff9a4617711aface757826da42645fa1e
3
+ size 14960
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/rng_state_2.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4009c906e3a9a0249cea7ba8c83eca6eb034e8e1ab0b053994f5a3379fc5199a
3
+ size 14960
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/rng_state_3.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0d645b143b8aa43fd224d3dd37de7b13af86b5f9dab588e01a2fa9a43274f6c
3
+ size 14960
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:49bba319b540cc504eaeae73d020447cefb6dfbf468d231b9d78b6b946483146
3
+ size 1064
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/special_tokens_map.json ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<extra_id_0>",
4
+ "<extra_id_1>",
5
+ "<extra_id_2>",
6
+ "<extra_id_3>",
7
+ "<extra_id_4>",
8
+ "<extra_id_5>",
9
+ "<extra_id_6>",
10
+ "<extra_id_7>",
11
+ "<extra_id_8>",
12
+ "<extra_id_9>",
13
+ "<extra_id_10>",
14
+ "<extra_id_11>",
15
+ "<extra_id_12>",
16
+ "<extra_id_13>",
17
+ "<extra_id_14>",
18
+ "<extra_id_15>",
19
+ "<extra_id_16>",
20
+ "<extra_id_17>",
21
+ "<extra_id_18>",
22
+ "<extra_id_19>",
23
+ "<extra_id_20>",
24
+ "<extra_id_21>",
25
+ "<extra_id_22>",
26
+ "<extra_id_23>",
27
+ "<extra_id_24>",
28
+ "<extra_id_25>",
29
+ "<extra_id_26>",
30
+ "<extra_id_27>",
31
+ "<extra_id_28>",
32
+ "<extra_id_29>",
33
+ "<extra_id_30>",
34
+ "<extra_id_31>",
35
+ "<extra_id_32>",
36
+ "<extra_id_33>",
37
+ "<extra_id_34>",
38
+ "<extra_id_35>",
39
+ "<extra_id_36>",
40
+ "<extra_id_37>",
41
+ "<extra_id_38>",
42
+ "<extra_id_39>",
43
+ "<extra_id_40>",
44
+ "<extra_id_41>",
45
+ "<extra_id_42>",
46
+ "<extra_id_43>",
47
+ "<extra_id_44>",
48
+ "<extra_id_45>",
49
+ "<extra_id_46>",
50
+ "<extra_id_47>",
51
+ "<extra_id_48>",
52
+ "<extra_id_49>",
53
+ "<extra_id_50>",
54
+ "<extra_id_51>",
55
+ "<extra_id_52>",
56
+ "<extra_id_53>",
57
+ "<extra_id_54>",
58
+ "<extra_id_55>",
59
+ "<extra_id_56>",
60
+ "<extra_id_57>",
61
+ "<extra_id_58>",
62
+ "<extra_id_59>",
63
+ "<extra_id_60>",
64
+ "<extra_id_61>",
65
+ "<extra_id_62>",
66
+ "<extra_id_63>",
67
+ "<extra_id_64>",
68
+ "<extra_id_65>",
69
+ "<extra_id_66>",
70
+ "<extra_id_67>",
71
+ "<extra_id_68>",
72
+ "<extra_id_69>",
73
+ "<extra_id_70>",
74
+ "<extra_id_71>",
75
+ "<extra_id_72>",
76
+ "<extra_id_73>",
77
+ "<extra_id_74>",
78
+ "<extra_id_75>",
79
+ "<extra_id_76>",
80
+ "<extra_id_77>",
81
+ "<extra_id_78>",
82
+ "<extra_id_79>",
83
+ "<extra_id_80>",
84
+ "<extra_id_81>",
85
+ "<extra_id_82>",
86
+ "<extra_id_83>",
87
+ "<extra_id_84>",
88
+ "<extra_id_85>",
89
+ "<extra_id_86>",
90
+ "<extra_id_87>",
91
+ "<extra_id_88>",
92
+ "<extra_id_89>",
93
+ "<extra_id_90>",
94
+ "<extra_id_91>",
95
+ "<extra_id_92>",
96
+ "<extra_id_93>",
97
+ "<extra_id_94>",
98
+ "<extra_id_95>",
99
+ "<extra_id_96>",
100
+ "<extra_id_97>",
101
+ "<extra_id_98>",
102
+ "<extra_id_99>"
103
+ ],
104
+ "eos_token": {
105
+ "content": "</s>",
106
+ "lstrip": false,
107
+ "normalized": false,
108
+ "rstrip": false,
109
+ "single_word": false
110
+ },
111
+ "pad_token": {
112
+ "content": "<pad>",
113
+ "lstrip": false,
114
+ "normalized": false,
115
+ "rstrip": false,
116
+ "single_word": false
117
+ },
118
+ "unk_token": {
119
+ "content": "<unk>",
120
+ "lstrip": false,
121
+ "normalized": false,
122
+ "rstrip": false,
123
+ "single_word": false
124
+ }
125
+ }
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/spiece.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d60acb128cf7b7f2536e8f38a5b18a05535c9e14c7a355904270e15b0945ea86
3
+ size 791656
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/tokenizer_config.json ADDED
@@ -0,0 +1,940 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<pad>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "</s>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "<unk>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "32000": {
29
+ "content": "<extra_id_99>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "32001": {
37
+ "content": "<extra_id_98>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "32002": {
45
+ "content": "<extra_id_97>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "32003": {
53
+ "content": "<extra_id_96>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "32004": {
61
+ "content": "<extra_id_95>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "32005": {
69
+ "content": "<extra_id_94>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "32006": {
77
+ "content": "<extra_id_93>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "32007": {
85
+ "content": "<extra_id_92>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "32008": {
93
+ "content": "<extra_id_91>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "32009": {
101
+ "content": "<extra_id_90>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "32010": {
109
+ "content": "<extra_id_89>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ },
116
+ "32011": {
117
+ "content": "<extra_id_88>",
118
+ "lstrip": false,
119
+ "normalized": false,
120
+ "rstrip": false,
121
+ "single_word": false,
122
+ "special": true
123
+ },
124
+ "32012": {
125
+ "content": "<extra_id_87>",
126
+ "lstrip": false,
127
+ "normalized": false,
128
+ "rstrip": false,
129
+ "single_word": false,
130
+ "special": true
131
+ },
132
+ "32013": {
133
+ "content": "<extra_id_86>",
134
+ "lstrip": false,
135
+ "normalized": false,
136
+ "rstrip": false,
137
+ "single_word": false,
138
+ "special": true
139
+ },
140
+ "32014": {
141
+ "content": "<extra_id_85>",
142
+ "lstrip": false,
143
+ "normalized": false,
144
+ "rstrip": false,
145
+ "single_word": false,
146
+ "special": true
147
+ },
148
+ "32015": {
149
+ "content": "<extra_id_84>",
150
+ "lstrip": false,
151
+ "normalized": false,
152
+ "rstrip": false,
153
+ "single_word": false,
154
+ "special": true
155
+ },
156
+ "32016": {
157
+ "content": "<extra_id_83>",
158
+ "lstrip": false,
159
+ "normalized": false,
160
+ "rstrip": false,
161
+ "single_word": false,
162
+ "special": true
163
+ },
164
+ "32017": {
165
+ "content": "<extra_id_82>",
166
+ "lstrip": false,
167
+ "normalized": false,
168
+ "rstrip": false,
169
+ "single_word": false,
170
+ "special": true
171
+ },
172
+ "32018": {
173
+ "content": "<extra_id_81>",
174
+ "lstrip": false,
175
+ "normalized": false,
176
+ "rstrip": false,
177
+ "single_word": false,
178
+ "special": true
179
+ },
180
+ "32019": {
181
+ "content": "<extra_id_80>",
182
+ "lstrip": false,
183
+ "normalized": false,
184
+ "rstrip": false,
185
+ "single_word": false,
186
+ "special": true
187
+ },
188
+ "32020": {
189
+ "content": "<extra_id_79>",
190
+ "lstrip": false,
191
+ "normalized": false,
192
+ "rstrip": false,
193
+ "single_word": false,
194
+ "special": true
195
+ },
196
+ "32021": {
197
+ "content": "<extra_id_78>",
198
+ "lstrip": false,
199
+ "normalized": false,
200
+ "rstrip": false,
201
+ "single_word": false,
202
+ "special": true
203
+ },
204
+ "32022": {
205
+ "content": "<extra_id_77>",
206
+ "lstrip": false,
207
+ "normalized": false,
208
+ "rstrip": false,
209
+ "single_word": false,
210
+ "special": true
211
+ },
212
+ "32023": {
213
+ "content": "<extra_id_76>",
214
+ "lstrip": false,
215
+ "normalized": false,
216
+ "rstrip": false,
217
+ "single_word": false,
218
+ "special": true
219
+ },
220
+ "32024": {
221
+ "content": "<extra_id_75>",
222
+ "lstrip": false,
223
+ "normalized": false,
224
+ "rstrip": false,
225
+ "single_word": false,
226
+ "special": true
227
+ },
228
+ "32025": {
229
+ "content": "<extra_id_74>",
230
+ "lstrip": false,
231
+ "normalized": false,
232
+ "rstrip": false,
233
+ "single_word": false,
234
+ "special": true
235
+ },
236
+ "32026": {
237
+ "content": "<extra_id_73>",
238
+ "lstrip": false,
239
+ "normalized": false,
240
+ "rstrip": false,
241
+ "single_word": false,
242
+ "special": true
243
+ },
244
+ "32027": {
245
+ "content": "<extra_id_72>",
246
+ "lstrip": false,
247
+ "normalized": false,
248
+ "rstrip": false,
249
+ "single_word": false,
250
+ "special": true
251
+ },
252
+ "32028": {
253
+ "content": "<extra_id_71>",
254
+ "lstrip": false,
255
+ "normalized": false,
256
+ "rstrip": false,
257
+ "single_word": false,
258
+ "special": true
259
+ },
260
+ "32029": {
261
+ "content": "<extra_id_70>",
262
+ "lstrip": false,
263
+ "normalized": false,
264
+ "rstrip": false,
265
+ "single_word": false,
266
+ "special": true
267
+ },
268
+ "32030": {
269
+ "content": "<extra_id_69>",
270
+ "lstrip": false,
271
+ "normalized": false,
272
+ "rstrip": false,
273
+ "single_word": false,
274
+ "special": true
275
+ },
276
+ "32031": {
277
+ "content": "<extra_id_68>",
278
+ "lstrip": false,
279
+ "normalized": false,
280
+ "rstrip": false,
281
+ "single_word": false,
282
+ "special": true
283
+ },
284
+ "32032": {
285
+ "content": "<extra_id_67>",
286
+ "lstrip": false,
287
+ "normalized": false,
288
+ "rstrip": false,
289
+ "single_word": false,
290
+ "special": true
291
+ },
292
+ "32033": {
293
+ "content": "<extra_id_66>",
294
+ "lstrip": false,
295
+ "normalized": false,
296
+ "rstrip": false,
297
+ "single_word": false,
298
+ "special": true
299
+ },
300
+ "32034": {
301
+ "content": "<extra_id_65>",
302
+ "lstrip": false,
303
+ "normalized": false,
304
+ "rstrip": false,
305
+ "single_word": false,
306
+ "special": true
307
+ },
308
+ "32035": {
309
+ "content": "<extra_id_64>",
310
+ "lstrip": false,
311
+ "normalized": false,
312
+ "rstrip": false,
313
+ "single_word": false,
314
+ "special": true
315
+ },
316
+ "32036": {
317
+ "content": "<extra_id_63>",
318
+ "lstrip": false,
319
+ "normalized": false,
320
+ "rstrip": false,
321
+ "single_word": false,
322
+ "special": true
323
+ },
324
+ "32037": {
325
+ "content": "<extra_id_62>",
326
+ "lstrip": false,
327
+ "normalized": false,
328
+ "rstrip": false,
329
+ "single_word": false,
330
+ "special": true
331
+ },
332
+ "32038": {
333
+ "content": "<extra_id_61>",
334
+ "lstrip": false,
335
+ "normalized": false,
336
+ "rstrip": false,
337
+ "single_word": false,
338
+ "special": true
339
+ },
340
+ "32039": {
341
+ "content": "<extra_id_60>",
342
+ "lstrip": false,
343
+ "normalized": false,
344
+ "rstrip": false,
345
+ "single_word": false,
346
+ "special": true
347
+ },
348
+ "32040": {
349
+ "content": "<extra_id_59>",
350
+ "lstrip": false,
351
+ "normalized": false,
352
+ "rstrip": false,
353
+ "single_word": false,
354
+ "special": true
355
+ },
356
+ "32041": {
357
+ "content": "<extra_id_58>",
358
+ "lstrip": false,
359
+ "normalized": false,
360
+ "rstrip": false,
361
+ "single_word": false,
362
+ "special": true
363
+ },
364
+ "32042": {
365
+ "content": "<extra_id_57>",
366
+ "lstrip": false,
367
+ "normalized": false,
368
+ "rstrip": false,
369
+ "single_word": false,
370
+ "special": true
371
+ },
372
+ "32043": {
373
+ "content": "<extra_id_56>",
374
+ "lstrip": false,
375
+ "normalized": false,
376
+ "rstrip": false,
377
+ "single_word": false,
378
+ "special": true
379
+ },
380
+ "32044": {
381
+ "content": "<extra_id_55>",
382
+ "lstrip": false,
383
+ "normalized": false,
384
+ "rstrip": false,
385
+ "single_word": false,
386
+ "special": true
387
+ },
388
+ "32045": {
389
+ "content": "<extra_id_54>",
390
+ "lstrip": false,
391
+ "normalized": false,
392
+ "rstrip": false,
393
+ "single_word": false,
394
+ "special": true
395
+ },
396
+ "32046": {
397
+ "content": "<extra_id_53>",
398
+ "lstrip": false,
399
+ "normalized": false,
400
+ "rstrip": false,
401
+ "single_word": false,
402
+ "special": true
403
+ },
404
+ "32047": {
405
+ "content": "<extra_id_52>",
406
+ "lstrip": false,
407
+ "normalized": false,
408
+ "rstrip": false,
409
+ "single_word": false,
410
+ "special": true
411
+ },
412
+ "32048": {
413
+ "content": "<extra_id_51>",
414
+ "lstrip": false,
415
+ "normalized": false,
416
+ "rstrip": false,
417
+ "single_word": false,
418
+ "special": true
419
+ },
420
+ "32049": {
421
+ "content": "<extra_id_50>",
422
+ "lstrip": false,
423
+ "normalized": false,
424
+ "rstrip": false,
425
+ "single_word": false,
426
+ "special": true
427
+ },
428
+ "32050": {
429
+ "content": "<extra_id_49>",
430
+ "lstrip": false,
431
+ "normalized": false,
432
+ "rstrip": false,
433
+ "single_word": false,
434
+ "special": true
435
+ },
436
+ "32051": {
437
+ "content": "<extra_id_48>",
438
+ "lstrip": false,
439
+ "normalized": false,
440
+ "rstrip": false,
441
+ "single_word": false,
442
+ "special": true
443
+ },
444
+ "32052": {
445
+ "content": "<extra_id_47>",
446
+ "lstrip": false,
447
+ "normalized": false,
448
+ "rstrip": false,
449
+ "single_word": false,
450
+ "special": true
451
+ },
452
+ "32053": {
453
+ "content": "<extra_id_46>",
454
+ "lstrip": false,
455
+ "normalized": false,
456
+ "rstrip": false,
457
+ "single_word": false,
458
+ "special": true
459
+ },
460
+ "32054": {
461
+ "content": "<extra_id_45>",
462
+ "lstrip": false,
463
+ "normalized": false,
464
+ "rstrip": false,
465
+ "single_word": false,
466
+ "special": true
467
+ },
468
+ "32055": {
469
+ "content": "<extra_id_44>",
470
+ "lstrip": false,
471
+ "normalized": false,
472
+ "rstrip": false,
473
+ "single_word": false,
474
+ "special": true
475
+ },
476
+ "32056": {
477
+ "content": "<extra_id_43>",
478
+ "lstrip": false,
479
+ "normalized": false,
480
+ "rstrip": false,
481
+ "single_word": false,
482
+ "special": true
483
+ },
484
+ "32057": {
485
+ "content": "<extra_id_42>",
486
+ "lstrip": false,
487
+ "normalized": false,
488
+ "rstrip": false,
489
+ "single_word": false,
490
+ "special": true
491
+ },
492
+ "32058": {
493
+ "content": "<extra_id_41>",
494
+ "lstrip": false,
495
+ "normalized": false,
496
+ "rstrip": false,
497
+ "single_word": false,
498
+ "special": true
499
+ },
500
+ "32059": {
501
+ "content": "<extra_id_40>",
502
+ "lstrip": false,
503
+ "normalized": false,
504
+ "rstrip": false,
505
+ "single_word": false,
506
+ "special": true
507
+ },
508
+ "32060": {
509
+ "content": "<extra_id_39>",
510
+ "lstrip": false,
511
+ "normalized": false,
512
+ "rstrip": false,
513
+ "single_word": false,
514
+ "special": true
515
+ },
516
+ "32061": {
517
+ "content": "<extra_id_38>",
518
+ "lstrip": false,
519
+ "normalized": false,
520
+ "rstrip": false,
521
+ "single_word": false,
522
+ "special": true
523
+ },
524
+ "32062": {
525
+ "content": "<extra_id_37>",
526
+ "lstrip": false,
527
+ "normalized": false,
528
+ "rstrip": false,
529
+ "single_word": false,
530
+ "special": true
531
+ },
532
+ "32063": {
533
+ "content": "<extra_id_36>",
534
+ "lstrip": false,
535
+ "normalized": false,
536
+ "rstrip": false,
537
+ "single_word": false,
538
+ "special": true
539
+ },
540
+ "32064": {
541
+ "content": "<extra_id_35>",
542
+ "lstrip": false,
543
+ "normalized": false,
544
+ "rstrip": false,
545
+ "single_word": false,
546
+ "special": true
547
+ },
548
+ "32065": {
549
+ "content": "<extra_id_34>",
550
+ "lstrip": false,
551
+ "normalized": false,
552
+ "rstrip": false,
553
+ "single_word": false,
554
+ "special": true
555
+ },
556
+ "32066": {
557
+ "content": "<extra_id_33>",
558
+ "lstrip": false,
559
+ "normalized": false,
560
+ "rstrip": false,
561
+ "single_word": false,
562
+ "special": true
563
+ },
564
+ "32067": {
565
+ "content": "<extra_id_32>",
566
+ "lstrip": false,
567
+ "normalized": false,
568
+ "rstrip": false,
569
+ "single_word": false,
570
+ "special": true
571
+ },
572
+ "32068": {
573
+ "content": "<extra_id_31>",
574
+ "lstrip": false,
575
+ "normalized": false,
576
+ "rstrip": false,
577
+ "single_word": false,
578
+ "special": true
579
+ },
580
+ "32069": {
581
+ "content": "<extra_id_30>",
582
+ "lstrip": false,
583
+ "normalized": false,
584
+ "rstrip": false,
585
+ "single_word": false,
586
+ "special": true
587
+ },
588
+ "32070": {
589
+ "content": "<extra_id_29>",
590
+ "lstrip": false,
591
+ "normalized": false,
592
+ "rstrip": false,
593
+ "single_word": false,
594
+ "special": true
595
+ },
596
+ "32071": {
597
+ "content": "<extra_id_28>",
598
+ "lstrip": false,
599
+ "normalized": false,
600
+ "rstrip": false,
601
+ "single_word": false,
602
+ "special": true
603
+ },
604
+ "32072": {
605
+ "content": "<extra_id_27>",
606
+ "lstrip": false,
607
+ "normalized": false,
608
+ "rstrip": false,
609
+ "single_word": false,
610
+ "special": true
611
+ },
612
+ "32073": {
613
+ "content": "<extra_id_26>",
614
+ "lstrip": false,
615
+ "normalized": false,
616
+ "rstrip": false,
617
+ "single_word": false,
618
+ "special": true
619
+ },
620
+ "32074": {
621
+ "content": "<extra_id_25>",
622
+ "lstrip": false,
623
+ "normalized": false,
624
+ "rstrip": false,
625
+ "single_word": false,
626
+ "special": true
627
+ },
628
+ "32075": {
629
+ "content": "<extra_id_24>",
630
+ "lstrip": false,
631
+ "normalized": false,
632
+ "rstrip": false,
633
+ "single_word": false,
634
+ "special": true
635
+ },
636
+ "32076": {
637
+ "content": "<extra_id_23>",
638
+ "lstrip": false,
639
+ "normalized": false,
640
+ "rstrip": false,
641
+ "single_word": false,
642
+ "special": true
643
+ },
644
+ "32077": {
645
+ "content": "<extra_id_22>",
646
+ "lstrip": false,
647
+ "normalized": false,
648
+ "rstrip": false,
649
+ "single_word": false,
650
+ "special": true
651
+ },
652
+ "32078": {
653
+ "content": "<extra_id_21>",
654
+ "lstrip": false,
655
+ "normalized": false,
656
+ "rstrip": false,
657
+ "single_word": false,
658
+ "special": true
659
+ },
660
+ "32079": {
661
+ "content": "<extra_id_20>",
662
+ "lstrip": false,
663
+ "normalized": false,
664
+ "rstrip": false,
665
+ "single_word": false,
666
+ "special": true
667
+ },
668
+ "32080": {
669
+ "content": "<extra_id_19>",
670
+ "lstrip": false,
671
+ "normalized": false,
672
+ "rstrip": false,
673
+ "single_word": false,
674
+ "special": true
675
+ },
676
+ "32081": {
677
+ "content": "<extra_id_18>",
678
+ "lstrip": false,
679
+ "normalized": false,
680
+ "rstrip": false,
681
+ "single_word": false,
682
+ "special": true
683
+ },
684
+ "32082": {
685
+ "content": "<extra_id_17>",
686
+ "lstrip": false,
687
+ "normalized": false,
688
+ "rstrip": false,
689
+ "single_word": false,
690
+ "special": true
691
+ },
692
+ "32083": {
693
+ "content": "<extra_id_16>",
694
+ "lstrip": false,
695
+ "normalized": false,
696
+ "rstrip": false,
697
+ "single_word": false,
698
+ "special": true
699
+ },
700
+ "32084": {
701
+ "content": "<extra_id_15>",
702
+ "lstrip": false,
703
+ "normalized": false,
704
+ "rstrip": false,
705
+ "single_word": false,
706
+ "special": true
707
+ },
708
+ "32085": {
709
+ "content": "<extra_id_14>",
710
+ "lstrip": false,
711
+ "normalized": false,
712
+ "rstrip": false,
713
+ "single_word": false,
714
+ "special": true
715
+ },
716
+ "32086": {
717
+ "content": "<extra_id_13>",
718
+ "lstrip": false,
719
+ "normalized": false,
720
+ "rstrip": false,
721
+ "single_word": false,
722
+ "special": true
723
+ },
724
+ "32087": {
725
+ "content": "<extra_id_12>",
726
+ "lstrip": false,
727
+ "normalized": false,
728
+ "rstrip": false,
729
+ "single_word": false,
730
+ "special": true
731
+ },
732
+ "32088": {
733
+ "content": "<extra_id_11>",
734
+ "lstrip": false,
735
+ "normalized": false,
736
+ "rstrip": false,
737
+ "single_word": false,
738
+ "special": true
739
+ },
740
+ "32089": {
741
+ "content": "<extra_id_10>",
742
+ "lstrip": false,
743
+ "normalized": false,
744
+ "rstrip": false,
745
+ "single_word": false,
746
+ "special": true
747
+ },
748
+ "32090": {
749
+ "content": "<extra_id_9>",
750
+ "lstrip": false,
751
+ "normalized": false,
752
+ "rstrip": false,
753
+ "single_word": false,
754
+ "special": true
755
+ },
756
+ "32091": {
757
+ "content": "<extra_id_8>",
758
+ "lstrip": false,
759
+ "normalized": false,
760
+ "rstrip": false,
761
+ "single_word": false,
762
+ "special": true
763
+ },
764
+ "32092": {
765
+ "content": "<extra_id_7>",
766
+ "lstrip": false,
767
+ "normalized": false,
768
+ "rstrip": false,
769
+ "single_word": false,
770
+ "special": true
771
+ },
772
+ "32093": {
773
+ "content": "<extra_id_6>",
774
+ "lstrip": false,
775
+ "normalized": false,
776
+ "rstrip": false,
777
+ "single_word": false,
778
+ "special": true
779
+ },
780
+ "32094": {
781
+ "content": "<extra_id_5>",
782
+ "lstrip": false,
783
+ "normalized": false,
784
+ "rstrip": false,
785
+ "single_word": false,
786
+ "special": true
787
+ },
788
+ "32095": {
789
+ "content": "<extra_id_4>",
790
+ "lstrip": false,
791
+ "normalized": false,
792
+ "rstrip": false,
793
+ "single_word": false,
794
+ "special": true
795
+ },
796
+ "32096": {
797
+ "content": "<extra_id_3>",
798
+ "lstrip": false,
799
+ "normalized": false,
800
+ "rstrip": false,
801
+ "single_word": false,
802
+ "special": true
803
+ },
804
+ "32097": {
805
+ "content": "<extra_id_2>",
806
+ "lstrip": false,
807
+ "normalized": false,
808
+ "rstrip": false,
809
+ "single_word": false,
810
+ "special": true
811
+ },
812
+ "32098": {
813
+ "content": "<extra_id_1>",
814
+ "lstrip": false,
815
+ "normalized": false,
816
+ "rstrip": false,
817
+ "single_word": false,
818
+ "special": true
819
+ },
820
+ "32099": {
821
+ "content": "<extra_id_0>",
822
+ "lstrip": false,
823
+ "normalized": false,
824
+ "rstrip": false,
825
+ "single_word": false,
826
+ "special": true
827
+ }
828
+ },
829
+ "additional_special_tokens": [
830
+ "<extra_id_0>",
831
+ "<extra_id_1>",
832
+ "<extra_id_2>",
833
+ "<extra_id_3>",
834
+ "<extra_id_4>",
835
+ "<extra_id_5>",
836
+ "<extra_id_6>",
837
+ "<extra_id_7>",
838
+ "<extra_id_8>",
839
+ "<extra_id_9>",
840
+ "<extra_id_10>",
841
+ "<extra_id_11>",
842
+ "<extra_id_12>",
843
+ "<extra_id_13>",
844
+ "<extra_id_14>",
845
+ "<extra_id_15>",
846
+ "<extra_id_16>",
847
+ "<extra_id_17>",
848
+ "<extra_id_18>",
849
+ "<extra_id_19>",
850
+ "<extra_id_20>",
851
+ "<extra_id_21>",
852
+ "<extra_id_22>",
853
+ "<extra_id_23>",
854
+ "<extra_id_24>",
855
+ "<extra_id_25>",
856
+ "<extra_id_26>",
857
+ "<extra_id_27>",
858
+ "<extra_id_28>",
859
+ "<extra_id_29>",
860
+ "<extra_id_30>",
861
+ "<extra_id_31>",
862
+ "<extra_id_32>",
863
+ "<extra_id_33>",
864
+ "<extra_id_34>",
865
+ "<extra_id_35>",
866
+ "<extra_id_36>",
867
+ "<extra_id_37>",
868
+ "<extra_id_38>",
869
+ "<extra_id_39>",
870
+ "<extra_id_40>",
871
+ "<extra_id_41>",
872
+ "<extra_id_42>",
873
+ "<extra_id_43>",
874
+ "<extra_id_44>",
875
+ "<extra_id_45>",
876
+ "<extra_id_46>",
877
+ "<extra_id_47>",
878
+ "<extra_id_48>",
879
+ "<extra_id_49>",
880
+ "<extra_id_50>",
881
+ "<extra_id_51>",
882
+ "<extra_id_52>",
883
+ "<extra_id_53>",
884
+ "<extra_id_54>",
885
+ "<extra_id_55>",
886
+ "<extra_id_56>",
887
+ "<extra_id_57>",
888
+ "<extra_id_58>",
889
+ "<extra_id_59>",
890
+ "<extra_id_60>",
891
+ "<extra_id_61>",
892
+ "<extra_id_62>",
893
+ "<extra_id_63>",
894
+ "<extra_id_64>",
895
+ "<extra_id_65>",
896
+ "<extra_id_66>",
897
+ "<extra_id_67>",
898
+ "<extra_id_68>",
899
+ "<extra_id_69>",
900
+ "<extra_id_70>",
901
+ "<extra_id_71>",
902
+ "<extra_id_72>",
903
+ "<extra_id_73>",
904
+ "<extra_id_74>",
905
+ "<extra_id_75>",
906
+ "<extra_id_76>",
907
+ "<extra_id_77>",
908
+ "<extra_id_78>",
909
+ "<extra_id_79>",
910
+ "<extra_id_80>",
911
+ "<extra_id_81>",
912
+ "<extra_id_82>",
913
+ "<extra_id_83>",
914
+ "<extra_id_84>",
915
+ "<extra_id_85>",
916
+ "<extra_id_86>",
917
+ "<extra_id_87>",
918
+ "<extra_id_88>",
919
+ "<extra_id_89>",
920
+ "<extra_id_90>",
921
+ "<extra_id_91>",
922
+ "<extra_id_92>",
923
+ "<extra_id_93>",
924
+ "<extra_id_94>",
925
+ "<extra_id_95>",
926
+ "<extra_id_96>",
927
+ "<extra_id_97>",
928
+ "<extra_id_98>",
929
+ "<extra_id_99>"
930
+ ],
931
+ "clean_up_tokenization_spaces": true,
932
+ "eos_token": "</s>",
933
+ "extra_ids": 100,
934
+ "legacy": true,
935
+ "model_max_length": 1000000000,
936
+ "pad_token": "<pad>",
937
+ "sp_model_kwargs": {},
938
+ "tokenizer_class": "T5Tokenizer",
939
+ "unk_token": "<unk>"
940
+ }
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/trainer_state.json ADDED
@@ -0,0 +1,1533 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.5056542754173279,
3
+ "best_model_checkpoint": "checkpoints//pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-14000",
4
+ "epoch": 0.016,
5
+ "eval_steps": 1000,
6
+ "global_step": 16000,
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.0,
13
+ "grad_norm": 43460.96179331515,
14
+ "learning_rate": 1e-08,
15
+ "loss": 15.3906,
16
+ "num_input_tokens_seen": 102400,
17
+ "step": 1
18
+ },
19
+ {
20
+ "epoch": 0.0,
21
+ "grad_norm": 863.6828438075519,
22
+ "learning_rate": 1.0000000000000002e-06,
23
+ "loss": 14.9414,
24
+ "num_input_tokens_seen": 10240000,
25
+ "step": 100
26
+ },
27
+ {
28
+ "epoch": 0.0,
29
+ "grad_norm": 133.93767179833242,
30
+ "learning_rate": 2.0000000000000003e-06,
31
+ "loss": 14.2755,
32
+ "num_input_tokens_seen": 20480000,
33
+ "step": 200
34
+ },
35
+ {
36
+ "epoch": 0.0,
37
+ "grad_norm": 63.96658072546188,
38
+ "learning_rate": 3e-06,
39
+ "loss": 12.6284,
40
+ "num_input_tokens_seen": 30720000,
41
+ "step": 300
42
+ },
43
+ {
44
+ "epoch": 0.0,
45
+ "grad_norm": 122.50072793549663,
46
+ "learning_rate": 4.000000000000001e-06,
47
+ "loss": 9.2201,
48
+ "num_input_tokens_seen": 40960000,
49
+ "step": 400
50
+ },
51
+ {
52
+ "epoch": 0.0,
53
+ "grad_norm": 10.484723012864677,
54
+ "learning_rate": 5e-06,
55
+ "loss": 3.51,
56
+ "num_input_tokens_seen": 51200000,
57
+ "step": 500
58
+ },
59
+ {
60
+ "epoch": 0.0,
61
+ "grad_norm": 3.2509195695753146,
62
+ "learning_rate": 6e-06,
63
+ "loss": 1.3629,
64
+ "num_input_tokens_seen": 61440000,
65
+ "step": 600
66
+ },
67
+ {
68
+ "epoch": 0.0,
69
+ "grad_norm": 0.7280951813088964,
70
+ "learning_rate": 7.000000000000001e-06,
71
+ "loss": 1.1216,
72
+ "num_input_tokens_seen": 71680000,
73
+ "step": 700
74
+ },
75
+ {
76
+ "epoch": 0.0,
77
+ "grad_norm": 0.8267415609909531,
78
+ "learning_rate": 8.000000000000001e-06,
79
+ "loss": 1.0623,
80
+ "num_input_tokens_seen": 81920000,
81
+ "step": 800
82
+ },
83
+ {
84
+ "epoch": 0.0,
85
+ "grad_norm": 0.36043112995458126,
86
+ "learning_rate": 9e-06,
87
+ "loss": 0.9816,
88
+ "num_input_tokens_seen": 92160000,
89
+ "step": 900
90
+ },
91
+ {
92
+ "epoch": 0.0,
93
+ "grad_norm": 0.3071054349582017,
94
+ "learning_rate": 1e-05,
95
+ "loss": 0.9622,
96
+ "num_input_tokens_seen": 102400000,
97
+ "step": 1000
98
+ },
99
+ {
100
+ "epoch": 0.0,
101
+ "eval_average_loss_on_non_sentence_tokens": 0.8788086175918579,
102
+ "eval_loss": 0.8788086175918579,
103
+ "eval_non_padding_tokens_in_labels": 512.0,
104
+ "eval_num_sentinel_tokens_in_labels": 74.0885,
105
+ "eval_padding_tokens_in_labels": 0.0,
106
+ "eval_reconstruction_accuracy": 0.8510264799772181,
107
+ "eval_runtime": 81.4892,
108
+ "eval_samples_per_second": 61.358,
109
+ "eval_steps_per_second": 0.16,
110
+ "num_input_tokens_seen": 102400000,
111
+ "step": 1000
112
+ },
113
+ {
114
+ "epoch": 0.0,
115
+ "grad_norm": 0.2502056334106625,
116
+ "learning_rate": 1.1000000000000001e-05,
117
+ "loss": 0.9492,
118
+ "num_input_tokens_seen": 112640000,
119
+ "step": 1100
120
+ },
121
+ {
122
+ "epoch": 0.0,
123
+ "grad_norm": 0.4131447950777185,
124
+ "learning_rate": 1.2e-05,
125
+ "loss": 0.9381,
126
+ "num_input_tokens_seen": 122880000,
127
+ "step": 1200
128
+ },
129
+ {
130
+ "epoch": 0.0,
131
+ "grad_norm": 0.35032463430441246,
132
+ "learning_rate": 1.3000000000000001e-05,
133
+ "loss": 0.9119,
134
+ "num_input_tokens_seen": 133120000,
135
+ "step": 1300
136
+ },
137
+ {
138
+ "epoch": 0.0,
139
+ "grad_norm": 0.23087998248198688,
140
+ "learning_rate": 1.4000000000000001e-05,
141
+ "loss": 0.9064,
142
+ "num_input_tokens_seen": 143360000,
143
+ "step": 1400
144
+ },
145
+ {
146
+ "epoch": 0.0,
147
+ "grad_norm": 0.2710276748538426,
148
+ "learning_rate": 1.5e-05,
149
+ "loss": 0.886,
150
+ "num_input_tokens_seen": 153600000,
151
+ "step": 1500
152
+ },
153
+ {
154
+ "epoch": 0.0,
155
+ "grad_norm": 0.26455585507258395,
156
+ "learning_rate": 1.6000000000000003e-05,
157
+ "loss": 0.8637,
158
+ "num_input_tokens_seen": 163840000,
159
+ "step": 1600
160
+ },
161
+ {
162
+ "epoch": 0.0,
163
+ "grad_norm": 0.35915501744739176,
164
+ "learning_rate": 1.7000000000000003e-05,
165
+ "loss": 0.8878,
166
+ "num_input_tokens_seen": 174080000,
167
+ "step": 1700
168
+ },
169
+ {
170
+ "epoch": 0.0,
171
+ "grad_norm": 0.20870754142081574,
172
+ "learning_rate": 1.8e-05,
173
+ "loss": 0.8736,
174
+ "num_input_tokens_seen": 184320000,
175
+ "step": 1800
176
+ },
177
+ {
178
+ "epoch": 0.0,
179
+ "grad_norm": 0.28713761080519334,
180
+ "learning_rate": 1.9e-05,
181
+ "loss": 0.8764,
182
+ "num_input_tokens_seen": 194560000,
183
+ "step": 1900
184
+ },
185
+ {
186
+ "epoch": 0.0,
187
+ "grad_norm": 0.29572729316826546,
188
+ "learning_rate": 2e-05,
189
+ "loss": 0.8632,
190
+ "num_input_tokens_seen": 204800000,
191
+ "step": 2000
192
+ },
193
+ {
194
+ "epoch": 0.0,
195
+ "eval_average_loss_on_non_sentence_tokens": 0.7859668135643005,
196
+ "eval_loss": 0.7859668135643005,
197
+ "eval_non_padding_tokens_in_labels": 512.0,
198
+ "eval_num_sentinel_tokens_in_labels": 74.3642,
199
+ "eval_padding_tokens_in_labels": 0.0,
200
+ "eval_reconstruction_accuracy": 0.8615504149217942,
201
+ "eval_runtime": 79.4566,
202
+ "eval_samples_per_second": 62.927,
203
+ "eval_steps_per_second": 0.164,
204
+ "num_input_tokens_seen": 204800000,
205
+ "step": 2000
206
+ },
207
+ {
208
+ "epoch": 0.0,
209
+ "grad_norm": 0.2836766066769867,
210
+ "learning_rate": 2.1e-05,
211
+ "loss": 0.8504,
212
+ "num_input_tokens_seen": 215040000,
213
+ "step": 2100
214
+ },
215
+ {
216
+ "epoch": 0.0,
217
+ "grad_norm": 0.3004986314599583,
218
+ "learning_rate": 2.2000000000000003e-05,
219
+ "loss": 0.8612,
220
+ "num_input_tokens_seen": 225280000,
221
+ "step": 2200
222
+ },
223
+ {
224
+ "epoch": 0.0,
225
+ "grad_norm": 0.2607008654822589,
226
+ "learning_rate": 2.3000000000000003e-05,
227
+ "loss": 0.854,
228
+ "num_input_tokens_seen": 235520000,
229
+ "step": 2300
230
+ },
231
+ {
232
+ "epoch": 0.0,
233
+ "grad_norm": 0.4084304742274508,
234
+ "learning_rate": 2.4e-05,
235
+ "loss": 0.812,
236
+ "num_input_tokens_seen": 245760000,
237
+ "step": 2400
238
+ },
239
+ {
240
+ "epoch": 0.0,
241
+ "grad_norm": 0.3350486028966764,
242
+ "learning_rate": 2.5e-05,
243
+ "loss": 0.8396,
244
+ "num_input_tokens_seen": 256000000,
245
+ "step": 2500
246
+ },
247
+ {
248
+ "epoch": 0.0,
249
+ "grad_norm": 0.2794394029400218,
250
+ "learning_rate": 2.6000000000000002e-05,
251
+ "loss": 0.8261,
252
+ "num_input_tokens_seen": 266240000,
253
+ "step": 2600
254
+ },
255
+ {
256
+ "epoch": 0.0,
257
+ "grad_norm": 0.31900263666540146,
258
+ "learning_rate": 2.7000000000000002e-05,
259
+ "loss": 0.8291,
260
+ "num_input_tokens_seen": 276480000,
261
+ "step": 2700
262
+ },
263
+ {
264
+ "epoch": 0.0,
265
+ "grad_norm": 0.3415219809134491,
266
+ "learning_rate": 2.8000000000000003e-05,
267
+ "loss": 0.8287,
268
+ "num_input_tokens_seen": 286720000,
269
+ "step": 2800
270
+ },
271
+ {
272
+ "epoch": 0.0,
273
+ "grad_norm": 0.42162229775558907,
274
+ "learning_rate": 2.9e-05,
275
+ "loss": 0.8211,
276
+ "num_input_tokens_seen": 296960000,
277
+ "step": 2900
278
+ },
279
+ {
280
+ "epoch": 0.0,
281
+ "grad_norm": 0.6230432635833446,
282
+ "learning_rate": 3e-05,
283
+ "loss": 0.8057,
284
+ "num_input_tokens_seen": 307200000,
285
+ "step": 3000
286
+ },
287
+ {
288
+ "epoch": 0.0,
289
+ "eval_average_loss_on_non_sentence_tokens": 0.7231347560882568,
290
+ "eval_loss": 0.7231347560882568,
291
+ "eval_non_padding_tokens_in_labels": 512.0,
292
+ "eval_num_sentinel_tokens_in_labels": 76.01565,
293
+ "eval_padding_tokens_in_labels": 0.0,
294
+ "eval_reconstruction_accuracy": 0.8692755743839554,
295
+ "eval_runtime": 80.2947,
296
+ "eval_samples_per_second": 62.271,
297
+ "eval_steps_per_second": 0.162,
298
+ "num_input_tokens_seen": 307200000,
299
+ "step": 3000
300
+ },
301
+ {
302
+ "epoch": 0.0,
303
+ "grad_norm": 0.4419432049494865,
304
+ "learning_rate": 3.1e-05,
305
+ "loss": 0.804,
306
+ "num_input_tokens_seen": 317440000,
307
+ "step": 3100
308
+ },
309
+ {
310
+ "epoch": 0.0,
311
+ "grad_norm": 0.37573353728190156,
312
+ "learning_rate": 3.2000000000000005e-05,
313
+ "loss": 0.7838,
314
+ "num_input_tokens_seen": 327680000,
315
+ "step": 3200
316
+ },
317
+ {
318
+ "epoch": 0.0,
319
+ "grad_norm": 0.30248504338648025,
320
+ "learning_rate": 3.3e-05,
321
+ "loss": 0.7943,
322
+ "num_input_tokens_seen": 337920000,
323
+ "step": 3300
324
+ },
325
+ {
326
+ "epoch": 0.0,
327
+ "grad_norm": 0.5238509466902019,
328
+ "learning_rate": 3.4000000000000007e-05,
329
+ "loss": 0.7828,
330
+ "num_input_tokens_seen": 348160000,
331
+ "step": 3400
332
+ },
333
+ {
334
+ "epoch": 0.0,
335
+ "grad_norm": 0.3629820011592176,
336
+ "learning_rate": 3.5e-05,
337
+ "loss": 0.7769,
338
+ "num_input_tokens_seen": 358400000,
339
+ "step": 3500
340
+ },
341
+ {
342
+ "epoch": 0.0,
343
+ "grad_norm": 0.3793351901469991,
344
+ "learning_rate": 3.6e-05,
345
+ "loss": 0.7797,
346
+ "num_input_tokens_seen": 368640000,
347
+ "step": 3600
348
+ },
349
+ {
350
+ "epoch": 0.0,
351
+ "grad_norm": 0.3965386085813541,
352
+ "learning_rate": 3.7e-05,
353
+ "loss": 0.76,
354
+ "num_input_tokens_seen": 378880000,
355
+ "step": 3700
356
+ },
357
+ {
358
+ "epoch": 0.0,
359
+ "grad_norm": 0.7172234328832077,
360
+ "learning_rate": 3.8e-05,
361
+ "loss": 0.7512,
362
+ "num_input_tokens_seen": 389120000,
363
+ "step": 3800
364
+ },
365
+ {
366
+ "epoch": 0.0,
367
+ "grad_norm": 0.3292733714629288,
368
+ "learning_rate": 3.9000000000000006e-05,
369
+ "loss": 0.7608,
370
+ "num_input_tokens_seen": 399360000,
371
+ "step": 3900
372
+ },
373
+ {
374
+ "epoch": 0.0,
375
+ "grad_norm": 0.3719515773722568,
376
+ "learning_rate": 4e-05,
377
+ "loss": 0.7581,
378
+ "num_input_tokens_seen": 409600000,
379
+ "step": 4000
380
+ },
381
+ {
382
+ "epoch": 0.0,
383
+ "eval_average_loss_on_non_sentence_tokens": 0.6934961080551147,
384
+ "eval_loss": 0.6934961080551147,
385
+ "eval_non_padding_tokens_in_labels": 512.0,
386
+ "eval_num_sentinel_tokens_in_labels": 74.9202,
387
+ "eval_padding_tokens_in_labels": 0.0,
388
+ "eval_reconstruction_accuracy": 0.8731403154127814,
389
+ "eval_runtime": 79.8616,
390
+ "eval_samples_per_second": 62.608,
391
+ "eval_steps_per_second": 0.163,
392
+ "num_input_tokens_seen": 409600000,
393
+ "step": 4000
394
+ },
395
+ {
396
+ "epoch": 0.0,
397
+ "grad_norm": 0.4763329687962473,
398
+ "learning_rate": 4.1e-05,
399
+ "loss": 0.773,
400
+ "num_input_tokens_seen": 419840000,
401
+ "step": 4100
402
+ },
403
+ {
404
+ "epoch": 0.0,
405
+ "grad_norm": 0.30681374394935307,
406
+ "learning_rate": 4.2e-05,
407
+ "loss": 0.7449,
408
+ "num_input_tokens_seen": 430080000,
409
+ "step": 4200
410
+ },
411
+ {
412
+ "epoch": 0.0,
413
+ "grad_norm": 0.3103964759300168,
414
+ "learning_rate": 4.3e-05,
415
+ "loss": 0.7488,
416
+ "num_input_tokens_seen": 440320000,
417
+ "step": 4300
418
+ },
419
+ {
420
+ "epoch": 0.0,
421
+ "grad_norm": 0.92009994176494,
422
+ "learning_rate": 4.4000000000000006e-05,
423
+ "loss": 0.7597,
424
+ "num_input_tokens_seen": 450560000,
425
+ "step": 4400
426
+ },
427
+ {
428
+ "epoch": 0.0,
429
+ "grad_norm": 0.6241253812854839,
430
+ "learning_rate": 4.5e-05,
431
+ "loss": 0.7496,
432
+ "num_input_tokens_seen": 460800000,
433
+ "step": 4500
434
+ },
435
+ {
436
+ "epoch": 0.0,
437
+ "grad_norm": 0.4993639267754847,
438
+ "learning_rate": 4.600000000000001e-05,
439
+ "loss": 0.7474,
440
+ "num_input_tokens_seen": 471040000,
441
+ "step": 4600
442
+ },
443
+ {
444
+ "epoch": 0.0,
445
+ "grad_norm": 0.46628951587896234,
446
+ "learning_rate": 4.7e-05,
447
+ "loss": 0.7426,
448
+ "num_input_tokens_seen": 481280000,
449
+ "step": 4700
450
+ },
451
+ {
452
+ "epoch": 0.0,
453
+ "grad_norm": 0.7179158594950166,
454
+ "learning_rate": 4.8e-05,
455
+ "loss": 0.7161,
456
+ "num_input_tokens_seen": 491520000,
457
+ "step": 4800
458
+ },
459
+ {
460
+ "epoch": 0.0,
461
+ "grad_norm": 0.37892254076672666,
462
+ "learning_rate": 4.9e-05,
463
+ "loss": 0.7307,
464
+ "num_input_tokens_seen": 501760000,
465
+ "step": 4900
466
+ },
467
+ {
468
+ "epoch": 0.01,
469
+ "grad_norm": 0.3050243948244417,
470
+ "learning_rate": 5e-05,
471
+ "loss": 0.7153,
472
+ "num_input_tokens_seen": 512000000,
473
+ "step": 5000
474
+ },
475
+ {
476
+ "epoch": 0.01,
477
+ "eval_average_loss_on_non_sentence_tokens": 0.6558203101158142,
478
+ "eval_loss": 0.6558203101158142,
479
+ "eval_non_padding_tokens_in_labels": 512.0,
480
+ "eval_num_sentinel_tokens_in_labels": 76.01175,
481
+ "eval_padding_tokens_in_labels": 0.0,
482
+ "eval_reconstruction_accuracy": 0.8783376766170906,
483
+ "eval_runtime": 79.5555,
484
+ "eval_samples_per_second": 62.849,
485
+ "eval_steps_per_second": 0.163,
486
+ "num_input_tokens_seen": 512000000,
487
+ "step": 5000
488
+ },
489
+ {
490
+ "epoch": 0.01,
491
+ "grad_norm": 0.5280712337324736,
492
+ "learning_rate": 5.1000000000000006e-05,
493
+ "loss": 0.7274,
494
+ "num_input_tokens_seen": 522240000,
495
+ "step": 5100
496
+ },
497
+ {
498
+ "epoch": 0.01,
499
+ "grad_norm": 0.5395533496916384,
500
+ "learning_rate": 5.2000000000000004e-05,
501
+ "loss": 0.7267,
502
+ "num_input_tokens_seen": 532480000,
503
+ "step": 5200
504
+ },
505
+ {
506
+ "epoch": 0.01,
507
+ "grad_norm": 0.3549010648426737,
508
+ "learning_rate": 5.300000000000001e-05,
509
+ "loss": 0.7361,
510
+ "num_input_tokens_seen": 542720000,
511
+ "step": 5300
512
+ },
513
+ {
514
+ "epoch": 0.01,
515
+ "grad_norm": 0.4072753639161728,
516
+ "learning_rate": 5.4000000000000005e-05,
517
+ "loss": 0.7026,
518
+ "num_input_tokens_seen": 552960000,
519
+ "step": 5400
520
+ },
521
+ {
522
+ "epoch": 0.01,
523
+ "grad_norm": 0.3433693815993015,
524
+ "learning_rate": 5.500000000000001e-05,
525
+ "loss": 0.7234,
526
+ "num_input_tokens_seen": 563200000,
527
+ "step": 5500
528
+ },
529
+ {
530
+ "epoch": 0.01,
531
+ "grad_norm": 0.644273082006586,
532
+ "learning_rate": 5.6000000000000006e-05,
533
+ "loss": 0.7188,
534
+ "num_input_tokens_seen": 573440000,
535
+ "step": 5600
536
+ },
537
+ {
538
+ "epoch": 0.01,
539
+ "grad_norm": 0.4252838589276199,
540
+ "learning_rate": 5.6999999999999996e-05,
541
+ "loss": 0.7032,
542
+ "num_input_tokens_seen": 583680000,
543
+ "step": 5700
544
+ },
545
+ {
546
+ "epoch": 0.01,
547
+ "grad_norm": 1.0592894854394406,
548
+ "learning_rate": 5.8e-05,
549
+ "loss": 0.6996,
550
+ "num_input_tokens_seen": 593920000,
551
+ "step": 5800
552
+ },
553
+ {
554
+ "epoch": 0.01,
555
+ "grad_norm": 0.6904084068806473,
556
+ "learning_rate": 5.9e-05,
557
+ "loss": 0.6872,
558
+ "num_input_tokens_seen": 604160000,
559
+ "step": 5900
560
+ },
561
+ {
562
+ "epoch": 0.01,
563
+ "grad_norm": 0.44791648600448986,
564
+ "learning_rate": 6e-05,
565
+ "loss": 0.6936,
566
+ "num_input_tokens_seen": 614400000,
567
+ "step": 6000
568
+ },
569
+ {
570
+ "epoch": 0.01,
571
+ "eval_average_loss_on_non_sentence_tokens": 0.6245507597923279,
572
+ "eval_loss": 0.6245507597923279,
573
+ "eval_non_padding_tokens_in_labels": 512.0,
574
+ "eval_num_sentinel_tokens_in_labels": 75.7185,
575
+ "eval_padding_tokens_in_labels": 0.0,
576
+ "eval_reconstruction_accuracy": 0.8813006847462675,
577
+ "eval_runtime": 79.938,
578
+ "eval_samples_per_second": 62.549,
579
+ "eval_steps_per_second": 0.163,
580
+ "num_input_tokens_seen": 614400000,
581
+ "step": 6000
582
+ },
583
+ {
584
+ "epoch": 0.01,
585
+ "grad_norm": 0.4594815341525536,
586
+ "learning_rate": 6.1e-05,
587
+ "loss": 0.6735,
588
+ "num_input_tokens_seen": 624640000,
589
+ "step": 6100
590
+ },
591
+ {
592
+ "epoch": 0.01,
593
+ "grad_norm": 0.8405483838445511,
594
+ "learning_rate": 6.2e-05,
595
+ "loss": 0.6799,
596
+ "num_input_tokens_seen": 634880000,
597
+ "step": 6200
598
+ },
599
+ {
600
+ "epoch": 0.01,
601
+ "grad_norm": 0.6336202646486054,
602
+ "learning_rate": 6.3e-05,
603
+ "loss": 0.6815,
604
+ "num_input_tokens_seen": 645120000,
605
+ "step": 6300
606
+ },
607
+ {
608
+ "epoch": 0.01,
609
+ "grad_norm": 0.6430228992710968,
610
+ "learning_rate": 6.400000000000001e-05,
611
+ "loss": 0.6583,
612
+ "num_input_tokens_seen": 655360000,
613
+ "step": 6400
614
+ },
615
+ {
616
+ "epoch": 0.01,
617
+ "grad_norm": 0.8111510449497575,
618
+ "learning_rate": 6.500000000000001e-05,
619
+ "loss": 0.6668,
620
+ "num_input_tokens_seen": 665600000,
621
+ "step": 6500
622
+ },
623
+ {
624
+ "epoch": 0.01,
625
+ "grad_norm": 0.6436069681468451,
626
+ "learning_rate": 6.6e-05,
627
+ "loss": 0.6554,
628
+ "num_input_tokens_seen": 675840000,
629
+ "step": 6600
630
+ },
631
+ {
632
+ "epoch": 0.01,
633
+ "grad_norm": 0.6739816739483769,
634
+ "learning_rate": 6.7e-05,
635
+ "loss": 0.6414,
636
+ "num_input_tokens_seen": 686080000,
637
+ "step": 6700
638
+ },
639
+ {
640
+ "epoch": 0.01,
641
+ "grad_norm": 0.7557762652302368,
642
+ "learning_rate": 6.800000000000001e-05,
643
+ "loss": 0.6466,
644
+ "num_input_tokens_seen": 696320000,
645
+ "step": 6800
646
+ },
647
+ {
648
+ "epoch": 0.01,
649
+ "grad_norm": 0.5748098146998661,
650
+ "learning_rate": 6.9e-05,
651
+ "loss": 0.646,
652
+ "num_input_tokens_seen": 706560000,
653
+ "step": 6900
654
+ },
655
+ {
656
+ "epoch": 0.01,
657
+ "grad_norm": 0.6292390120724913,
658
+ "learning_rate": 7e-05,
659
+ "loss": 0.6313,
660
+ "num_input_tokens_seen": 716800000,
661
+ "step": 7000
662
+ },
663
+ {
664
+ "epoch": 0.01,
665
+ "eval_average_loss_on_non_sentence_tokens": 0.5793261528015137,
666
+ "eval_loss": 0.5793261528015137,
667
+ "eval_non_padding_tokens_in_labels": 512.0,
668
+ "eval_num_sentinel_tokens_in_labels": 75.8407,
669
+ "eval_padding_tokens_in_labels": 0.0,
670
+ "eval_reconstruction_accuracy": 0.8874100728229607,
671
+ "eval_runtime": 78.5261,
672
+ "eval_samples_per_second": 63.673,
673
+ "eval_steps_per_second": 0.166,
674
+ "num_input_tokens_seen": 716800000,
675
+ "step": 7000
676
+ },
677
+ {
678
+ "epoch": 0.01,
679
+ "grad_norm": 0.5088852921346764,
680
+ "learning_rate": 7.1e-05,
681
+ "loss": 0.6415,
682
+ "num_input_tokens_seen": 727040000,
683
+ "step": 7100
684
+ },
685
+ {
686
+ "epoch": 0.01,
687
+ "grad_norm": 0.5802094410441135,
688
+ "learning_rate": 7.2e-05,
689
+ "loss": 0.6322,
690
+ "num_input_tokens_seen": 737280000,
691
+ "step": 7200
692
+ },
693
+ {
694
+ "epoch": 0.01,
695
+ "grad_norm": 0.7783010042444823,
696
+ "learning_rate": 7.3e-05,
697
+ "loss": 0.6245,
698
+ "num_input_tokens_seen": 747520000,
699
+ "step": 7300
700
+ },
701
+ {
702
+ "epoch": 0.01,
703
+ "grad_norm": 0.7662907061258049,
704
+ "learning_rate": 7.4e-05,
705
+ "loss": 0.6121,
706
+ "num_input_tokens_seen": 757760000,
707
+ "step": 7400
708
+ },
709
+ {
710
+ "epoch": 0.01,
711
+ "grad_norm": 0.7354690437648583,
712
+ "learning_rate": 7.500000000000001e-05,
713
+ "loss": 0.6281,
714
+ "num_input_tokens_seen": 768000000,
715
+ "step": 7500
716
+ },
717
+ {
718
+ "epoch": 0.01,
719
+ "grad_norm": 1.4254502630785943,
720
+ "learning_rate": 7.6e-05,
721
+ "loss": 0.6115,
722
+ "num_input_tokens_seen": 778240000,
723
+ "step": 7600
724
+ },
725
+ {
726
+ "epoch": 0.01,
727
+ "grad_norm": 0.5225208925446124,
728
+ "learning_rate": 7.7e-05,
729
+ "loss": 0.6206,
730
+ "num_input_tokens_seen": 788480000,
731
+ "step": 7700
732
+ },
733
+ {
734
+ "epoch": 0.01,
735
+ "grad_norm": 0.3900621555389805,
736
+ "learning_rate": 7.800000000000001e-05,
737
+ "loss": 0.623,
738
+ "num_input_tokens_seen": 798720000,
739
+ "step": 7800
740
+ },
741
+ {
742
+ "epoch": 0.01,
743
+ "grad_norm": 0.4951271868717405,
744
+ "learning_rate": 7.900000000000001e-05,
745
+ "loss": 0.6189,
746
+ "num_input_tokens_seen": 808960000,
747
+ "step": 7900
748
+ },
749
+ {
750
+ "epoch": 0.01,
751
+ "grad_norm": 0.4848361358265983,
752
+ "learning_rate": 8e-05,
753
+ "loss": 0.6197,
754
+ "num_input_tokens_seen": 819200000,
755
+ "step": 8000
756
+ },
757
+ {
758
+ "epoch": 0.01,
759
+ "eval_average_loss_on_non_sentence_tokens": 0.5578222870826721,
760
+ "eval_loss": 0.5578222870826721,
761
+ "eval_non_padding_tokens_in_labels": 512.0,
762
+ "eval_num_sentinel_tokens_in_labels": 75.8388,
763
+ "eval_padding_tokens_in_labels": 0.0,
764
+ "eval_reconstruction_accuracy": 0.8900220791825759,
765
+ "eval_runtime": 79.6116,
766
+ "eval_samples_per_second": 62.805,
767
+ "eval_steps_per_second": 0.163,
768
+ "num_input_tokens_seen": 819200000,
769
+ "step": 8000
770
+ },
771
+ {
772
+ "epoch": 0.01,
773
+ "grad_norm": 0.5858893883344134,
774
+ "learning_rate": 8.1e-05,
775
+ "loss": 0.6118,
776
+ "num_input_tokens_seen": 829440000,
777
+ "step": 8100
778
+ },
779
+ {
780
+ "epoch": 0.01,
781
+ "grad_norm": 0.6249727004764817,
782
+ "learning_rate": 8.2e-05,
783
+ "loss": 0.6182,
784
+ "num_input_tokens_seen": 839680000,
785
+ "step": 8200
786
+ },
787
+ {
788
+ "epoch": 0.01,
789
+ "grad_norm": 0.36091241377808103,
790
+ "learning_rate": 8.3e-05,
791
+ "loss": 0.6164,
792
+ "num_input_tokens_seen": 849920000,
793
+ "step": 8300
794
+ },
795
+ {
796
+ "epoch": 0.01,
797
+ "grad_norm": 0.46039504119810887,
798
+ "learning_rate": 8.4e-05,
799
+ "loss": 0.6176,
800
+ "num_input_tokens_seen": 860160000,
801
+ "step": 8400
802
+ },
803
+ {
804
+ "epoch": 0.01,
805
+ "grad_norm": 0.5636374972640031,
806
+ "learning_rate": 8.5e-05,
807
+ "loss": 0.6112,
808
+ "num_input_tokens_seen": 870400000,
809
+ "step": 8500
810
+ },
811
+ {
812
+ "epoch": 0.01,
813
+ "grad_norm": 0.26723681909344243,
814
+ "learning_rate": 8.6e-05,
815
+ "loss": 0.62,
816
+ "num_input_tokens_seen": 880640000,
817
+ "step": 8600
818
+ },
819
+ {
820
+ "epoch": 0.01,
821
+ "grad_norm": 0.6910037577177741,
822
+ "learning_rate": 8.7e-05,
823
+ "loss": 0.6108,
824
+ "num_input_tokens_seen": 890880000,
825
+ "step": 8700
826
+ },
827
+ {
828
+ "epoch": 0.01,
829
+ "grad_norm": 0.6869737496691483,
830
+ "learning_rate": 8.800000000000001e-05,
831
+ "loss": 0.5994,
832
+ "num_input_tokens_seen": 901120000,
833
+ "step": 8800
834
+ },
835
+ {
836
+ "epoch": 0.01,
837
+ "grad_norm": 0.7455802068821363,
838
+ "learning_rate": 8.900000000000001e-05,
839
+ "loss": 0.6018,
840
+ "num_input_tokens_seen": 911360000,
841
+ "step": 8900
842
+ },
843
+ {
844
+ "epoch": 0.01,
845
+ "grad_norm": 0.6632968078514041,
846
+ "learning_rate": 9e-05,
847
+ "loss": 0.6063,
848
+ "num_input_tokens_seen": 921600000,
849
+ "step": 9000
850
+ },
851
+ {
852
+ "epoch": 0.01,
853
+ "eval_average_loss_on_non_sentence_tokens": 0.5403027534484863,
854
+ "eval_loss": 0.5403027534484863,
855
+ "eval_non_padding_tokens_in_labels": 512.0,
856
+ "eval_num_sentinel_tokens_in_labels": 75.83535,
857
+ "eval_padding_tokens_in_labels": 0.0,
858
+ "eval_reconstruction_accuracy": 0.8922244388490125,
859
+ "eval_runtime": 77.9848,
860
+ "eval_samples_per_second": 64.115,
861
+ "eval_steps_per_second": 0.167,
862
+ "num_input_tokens_seen": 921600000,
863
+ "step": 9000
864
+ },
865
+ {
866
+ "epoch": 0.01,
867
+ "grad_norm": 0.5725768352987969,
868
+ "learning_rate": 9.1e-05,
869
+ "loss": 0.6041,
870
+ "num_input_tokens_seen": 931840000,
871
+ "step": 9100
872
+ },
873
+ {
874
+ "epoch": 0.01,
875
+ "grad_norm": 0.4551368642725825,
876
+ "learning_rate": 9.200000000000001e-05,
877
+ "loss": 0.594,
878
+ "num_input_tokens_seen": 942080000,
879
+ "step": 9200
880
+ },
881
+ {
882
+ "epoch": 0.01,
883
+ "grad_norm": 0.6533702380800677,
884
+ "learning_rate": 9.300000000000001e-05,
885
+ "loss": 0.5936,
886
+ "num_input_tokens_seen": 952320000,
887
+ "step": 9300
888
+ },
889
+ {
890
+ "epoch": 0.01,
891
+ "grad_norm": 0.9831065527948913,
892
+ "learning_rate": 9.4e-05,
893
+ "loss": 0.6019,
894
+ "num_input_tokens_seen": 962560000,
895
+ "step": 9400
896
+ },
897
+ {
898
+ "epoch": 0.01,
899
+ "grad_norm": 0.4541015953145989,
900
+ "learning_rate": 9.5e-05,
901
+ "loss": 0.5984,
902
+ "num_input_tokens_seen": 972800000,
903
+ "step": 9500
904
+ },
905
+ {
906
+ "epoch": 0.01,
907
+ "grad_norm": 0.48129006101400823,
908
+ "learning_rate": 9.6e-05,
909
+ "loss": 0.5987,
910
+ "num_input_tokens_seen": 983040000,
911
+ "step": 9600
912
+ },
913
+ {
914
+ "epoch": 0.01,
915
+ "grad_norm": 0.4345752501475107,
916
+ "learning_rate": 9.7e-05,
917
+ "loss": 0.5931,
918
+ "num_input_tokens_seen": 993280000,
919
+ "step": 9700
920
+ },
921
+ {
922
+ "epoch": 0.01,
923
+ "grad_norm": 0.4507511208182315,
924
+ "learning_rate": 9.8e-05,
925
+ "loss": 0.5953,
926
+ "num_input_tokens_seen": 1003520000,
927
+ "step": 9800
928
+ },
929
+ {
930
+ "epoch": 0.01,
931
+ "grad_norm": 0.39394850230781386,
932
+ "learning_rate": 9.900000000000001e-05,
933
+ "loss": 0.5809,
934
+ "num_input_tokens_seen": 1013760000,
935
+ "step": 9900
936
+ },
937
+ {
938
+ "epoch": 0.01,
939
+ "grad_norm": 0.8214923366681415,
940
+ "learning_rate": 0.0001,
941
+ "loss": 0.5913,
942
+ "num_input_tokens_seen": 1024000000,
943
+ "step": 10000
944
+ },
945
+ {
946
+ "epoch": 0.01,
947
+ "eval_average_loss_on_non_sentence_tokens": 0.5407128930091858,
948
+ "eval_loss": 0.5407128930091858,
949
+ "eval_non_padding_tokens_in_labels": 512.0,
950
+ "eval_num_sentinel_tokens_in_labels": 74.7806,
951
+ "eval_padding_tokens_in_labels": 0.0,
952
+ "eval_reconstruction_accuracy": 0.8921869038417058,
953
+ "eval_runtime": 78.3053,
954
+ "eval_samples_per_second": 63.853,
955
+ "eval_steps_per_second": 0.166,
956
+ "num_input_tokens_seen": 1024000000,
957
+ "step": 10000
958
+ },
959
+ {
960
+ "epoch": 0.01,
961
+ "grad_norm": 0.5530163749888272,
962
+ "learning_rate": 9.950371902099894e-05,
963
+ "loss": 0.5912,
964
+ "num_input_tokens_seen": 1034240000,
965
+ "step": 10100
966
+ },
967
+ {
968
+ "epoch": 0.01,
969
+ "grad_norm": 0.35133718051823265,
970
+ "learning_rate": 9.901475429766743e-05,
971
+ "loss": 0.5977,
972
+ "num_input_tokens_seen": 1044480000,
973
+ "step": 10200
974
+ },
975
+ {
976
+ "epoch": 0.01,
977
+ "grad_norm": 0.42324033313410125,
978
+ "learning_rate": 9.853292781642932e-05,
979
+ "loss": 0.5878,
980
+ "num_input_tokens_seen": 1054720000,
981
+ "step": 10300
982
+ },
983
+ {
984
+ "epoch": 0.01,
985
+ "grad_norm": 0.765109336182901,
986
+ "learning_rate": 9.805806756909202e-05,
987
+ "loss": 0.5766,
988
+ "num_input_tokens_seen": 1064960000,
989
+ "step": 10400
990
+ },
991
+ {
992
+ "epoch": 0.01,
993
+ "grad_norm": 0.3981751906169302,
994
+ "learning_rate": 9.759000729485331e-05,
995
+ "loss": 0.5863,
996
+ "num_input_tokens_seen": 1075200000,
997
+ "step": 10500
998
+ },
999
+ {
1000
+ "epoch": 0.01,
1001
+ "grad_norm": 0.6650572898932402,
1002
+ "learning_rate": 9.712858623572642e-05,
1003
+ "loss": 0.5836,
1004
+ "num_input_tokens_seen": 1085440000,
1005
+ "step": 10600
1006
+ },
1007
+ {
1008
+ "epoch": 0.01,
1009
+ "grad_norm": 0.3922744259495626,
1010
+ "learning_rate": 9.667364890456637e-05,
1011
+ "loss": 0.5869,
1012
+ "num_input_tokens_seen": 1095680000,
1013
+ "step": 10700
1014
+ },
1015
+ {
1016
+ "epoch": 0.01,
1017
+ "grad_norm": 0.8388418386979233,
1018
+ "learning_rate": 9.622504486493762e-05,
1019
+ "loss": 0.5776,
1020
+ "num_input_tokens_seen": 1105920000,
1021
+ "step": 10800
1022
+ },
1023
+ {
1024
+ "epoch": 0.01,
1025
+ "grad_norm": 0.3629415164325868,
1026
+ "learning_rate": 9.578262852211513e-05,
1027
+ "loss": 0.5829,
1028
+ "num_input_tokens_seen": 1116160000,
1029
+ "step": 10900
1030
+ },
1031
+ {
1032
+ "epoch": 0.01,
1033
+ "grad_norm": 0.710732252235504,
1034
+ "learning_rate": 9.534625892455923e-05,
1035
+ "loss": 0.5889,
1036
+ "num_input_tokens_seen": 1126400000,
1037
+ "step": 11000
1038
+ },
1039
+ {
1040
+ "epoch": 0.01,
1041
+ "eval_average_loss_on_non_sentence_tokens": 0.5240722894668579,
1042
+ "eval_loss": 0.5240722894668579,
1043
+ "eval_non_padding_tokens_in_labels": 512.0,
1044
+ "eval_num_sentinel_tokens_in_labels": 74.9179,
1045
+ "eval_padding_tokens_in_labels": 0.0,
1046
+ "eval_reconstruction_accuracy": 0.8951130934236704,
1047
+ "eval_runtime": 79.2009,
1048
+ "eval_samples_per_second": 63.131,
1049
+ "eval_steps_per_second": 0.164,
1050
+ "num_input_tokens_seen": 1126400000,
1051
+ "step": 11000
1052
+ },
1053
+ {
1054
+ "epoch": 0.01,
1055
+ "grad_norm": 0.9997340086993262,
1056
+ "learning_rate": 9.49157995752499e-05,
1057
+ "loss": 0.5851,
1058
+ "num_input_tokens_seen": 1136640000,
1059
+ "step": 11100
1060
+ },
1061
+ {
1062
+ "epoch": 0.01,
1063
+ "grad_norm": 0.29653408528420816,
1064
+ "learning_rate": 9.44911182523068e-05,
1065
+ "loss": 0.5701,
1066
+ "num_input_tokens_seen": 1146880000,
1067
+ "step": 11200
1068
+ },
1069
+ {
1070
+ "epoch": 0.01,
1071
+ "grad_norm": 0.5193442388117125,
1072
+ "learning_rate": 9.407208683835973e-05,
1073
+ "loss": 0.5652,
1074
+ "num_input_tokens_seen": 1157120000,
1075
+ "step": 11300
1076
+ },
1077
+ {
1078
+ "epoch": 0.01,
1079
+ "grad_norm": 0.4733544072168943,
1080
+ "learning_rate": 9.36585811581694e-05,
1081
+ "loss": 0.5764,
1082
+ "num_input_tokens_seen": 1167360000,
1083
+ "step": 11400
1084
+ },
1085
+ {
1086
+ "epoch": 0.01,
1087
+ "grad_norm": 0.33229163001946194,
1088
+ "learning_rate": 9.325048082403138e-05,
1089
+ "loss": 0.5711,
1090
+ "num_input_tokens_seen": 1177600000,
1091
+ "step": 11500
1092
+ },
1093
+ {
1094
+ "epoch": 0.01,
1095
+ "grad_norm": 0.40506432895103284,
1096
+ "learning_rate": 9.284766908852594e-05,
1097
+ "loss": 0.5735,
1098
+ "num_input_tokens_seen": 1187840000,
1099
+ "step": 11600
1100
+ },
1101
+ {
1102
+ "epoch": 0.01,
1103
+ "grad_norm": 0.34822471091276047,
1104
+ "learning_rate": 9.245003270420487e-05,
1105
+ "loss": 0.581,
1106
+ "num_input_tokens_seen": 1198080000,
1107
+ "step": 11700
1108
+ },
1109
+ {
1110
+ "epoch": 0.01,
1111
+ "grad_norm": 0.3848654525529098,
1112
+ "learning_rate": 9.205746178983236e-05,
1113
+ "loss": 0.5841,
1114
+ "num_input_tokens_seen": 1208320000,
1115
+ "step": 11800
1116
+ },
1117
+ {
1118
+ "epoch": 0.01,
1119
+ "grad_norm": 0.6372302990169364,
1120
+ "learning_rate": 9.166984970282113e-05,
1121
+ "loss": 0.5788,
1122
+ "num_input_tokens_seen": 1218560000,
1123
+ "step": 11900
1124
+ },
1125
+ {
1126
+ "epoch": 0.01,
1127
+ "grad_norm": 0.5061331048864363,
1128
+ "learning_rate": 9.12870929175277e-05,
1129
+ "loss": 0.5658,
1130
+ "num_input_tokens_seen": 1228800000,
1131
+ "step": 12000
1132
+ },
1133
+ {
1134
+ "epoch": 0.01,
1135
+ "eval_average_loss_on_non_sentence_tokens": 0.5278515815734863,
1136
+ "eval_loss": 0.5278515815734863,
1137
+ "eval_non_padding_tokens_in_labels": 512.0,
1138
+ "eval_num_sentinel_tokens_in_labels": 74.2487,
1139
+ "eval_padding_tokens_in_labels": 0.0,
1140
+ "eval_reconstruction_accuracy": 0.8946204735462583,
1141
+ "eval_runtime": 78.9561,
1142
+ "eval_samples_per_second": 63.326,
1143
+ "eval_steps_per_second": 0.165,
1144
+ "num_input_tokens_seen": 1228800000,
1145
+ "step": 12000
1146
+ },
1147
+ {
1148
+ "epoch": 0.01,
1149
+ "grad_norm": 0.4136071130130777,
1150
+ "learning_rate": 9.090909090909092e-05,
1151
+ "loss": 0.5672,
1152
+ "num_input_tokens_seen": 1239040000,
1153
+ "step": 12100
1154
+ },
1155
+ {
1156
+ "epoch": 0.01,
1157
+ "grad_norm": 0.40986780287289215,
1158
+ "learning_rate": 9.053574604251853e-05,
1159
+ "loss": 0.5734,
1160
+ "num_input_tokens_seen": 1249280000,
1161
+ "step": 12200
1162
+ },
1163
+ {
1164
+ "epoch": 0.01,
1165
+ "grad_norm": 0.3400074575461829,
1166
+ "learning_rate": 9.016696346674324e-05,
1167
+ "loss": 0.5662,
1168
+ "num_input_tokens_seen": 1259520000,
1169
+ "step": 12300
1170
+ },
1171
+ {
1172
+ "epoch": 0.01,
1173
+ "grad_norm": 0.2995299282452748,
1174
+ "learning_rate": 8.980265101338745e-05,
1175
+ "loss": 0.5644,
1176
+ "num_input_tokens_seen": 1269760000,
1177
+ "step": 12400
1178
+ },
1179
+ {
1180
+ "epoch": 0.01,
1181
+ "grad_norm": 0.49184292130037205,
1182
+ "learning_rate": 8.944271909999159e-05,
1183
+ "loss": 0.5666,
1184
+ "num_input_tokens_seen": 1280000000,
1185
+ "step": 12500
1186
+ },
1187
+ {
1188
+ "epoch": 0.01,
1189
+ "grad_norm": 0.3063195363723024,
1190
+ "learning_rate": 8.90870806374748e-05,
1191
+ "loss": 0.5575,
1192
+ "num_input_tokens_seen": 1290240000,
1193
+ "step": 12600
1194
+ },
1195
+ {
1196
+ "epoch": 0.01,
1197
+ "grad_norm": 0.5232424870939063,
1198
+ "learning_rate": 8.873565094161139e-05,
1199
+ "loss": 0.5677,
1200
+ "num_input_tokens_seen": 1300480000,
1201
+ "step": 12700
1202
+ },
1203
+ {
1204
+ "epoch": 0.01,
1205
+ "grad_norm": 0.25960379772756,
1206
+ "learning_rate": 8.838834764831845e-05,
1207
+ "loss": 0.5643,
1208
+ "num_input_tokens_seen": 1310720000,
1209
+ "step": 12800
1210
+ },
1211
+ {
1212
+ "epoch": 0.01,
1213
+ "grad_norm": 0.4290554860535722,
1214
+ "learning_rate": 8.804509063256238e-05,
1215
+ "loss": 0.5606,
1216
+ "num_input_tokens_seen": 1320960000,
1217
+ "step": 12900
1218
+ },
1219
+ {
1220
+ "epoch": 0.01,
1221
+ "grad_norm": 0.46106836918077254,
1222
+ "learning_rate": 8.770580193070293e-05,
1223
+ "loss": 0.5701,
1224
+ "num_input_tokens_seen": 1331200000,
1225
+ "step": 13000
1226
+ },
1227
+ {
1228
+ "epoch": 0.01,
1229
+ "eval_average_loss_on_non_sentence_tokens": 0.5180273652076721,
1230
+ "eval_loss": 0.5180273652076721,
1231
+ "eval_non_padding_tokens_in_labels": 512.0,
1232
+ "eval_num_sentinel_tokens_in_labels": 74.5892,
1233
+ "eval_padding_tokens_in_labels": 0.0,
1234
+ "eval_reconstruction_accuracy": 0.8969406717030101,
1235
+ "eval_runtime": 78.5382,
1236
+ "eval_samples_per_second": 63.663,
1237
+ "eval_steps_per_second": 0.166,
1238
+ "num_input_tokens_seen": 1331200000,
1239
+ "step": 13000
1240
+ },
1241
+ {
1242
+ "epoch": 0.01,
1243
+ "grad_norm": 0.3079362879346589,
1244
+ "learning_rate": 8.737040566610379e-05,
1245
+ "loss": 0.5698,
1246
+ "num_input_tokens_seen": 1341440000,
1247
+ "step": 13100
1248
+ },
1249
+ {
1250
+ "epoch": 0.01,
1251
+ "grad_norm": 0.34218364630667303,
1252
+ "learning_rate": 8.703882797784892e-05,
1253
+ "loss": 0.5671,
1254
+ "num_input_tokens_seen": 1351680000,
1255
+ "step": 13200
1256
+ },
1257
+ {
1258
+ "epoch": 0.01,
1259
+ "grad_norm": 0.9023826887968611,
1260
+ "learning_rate": 8.6710996952412e-05,
1261
+ "loss": 0.5711,
1262
+ "num_input_tokens_seen": 1361920000,
1263
+ "step": 13300
1264
+ },
1265
+ {
1266
+ "epoch": 0.01,
1267
+ "grad_norm": 0.3135519679754609,
1268
+ "learning_rate": 8.638684255813601e-05,
1269
+ "loss": 0.573,
1270
+ "num_input_tokens_seen": 1372160000,
1271
+ "step": 13400
1272
+ },
1273
+ {
1274
+ "epoch": 0.01,
1275
+ "grad_norm": 0.3585506656419919,
1276
+ "learning_rate": 8.606629658238704e-05,
1277
+ "loss": 0.5586,
1278
+ "num_input_tokens_seen": 1382400000,
1279
+ "step": 13500
1280
+ },
1281
+ {
1282
+ "epoch": 0.01,
1283
+ "grad_norm": 0.4652392924422838,
1284
+ "learning_rate": 8.574929257125441e-05,
1285
+ "loss": 0.5656,
1286
+ "num_input_tokens_seen": 1392640000,
1287
+ "step": 13600
1288
+ },
1289
+ {
1290
+ "epoch": 0.01,
1291
+ "grad_norm": 0.2871497573479709,
1292
+ "learning_rate": 8.54357657716761e-05,
1293
+ "loss": 0.555,
1294
+ "num_input_tokens_seen": 1402880000,
1295
+ "step": 13700
1296
+ },
1297
+ {
1298
+ "epoch": 0.01,
1299
+ "grad_norm": 0.3314747747253342,
1300
+ "learning_rate": 8.512565307587486e-05,
1301
+ "loss": 0.5581,
1302
+ "num_input_tokens_seen": 1413120000,
1303
+ "step": 13800
1304
+ },
1305
+ {
1306
+ "epoch": 0.01,
1307
+ "grad_norm": 0.37101291478786336,
1308
+ "learning_rate": 8.481889296799709e-05,
1309
+ "loss": 0.5565,
1310
+ "num_input_tokens_seen": 1423360000,
1311
+ "step": 13900
1312
+ },
1313
+ {
1314
+ "epoch": 0.01,
1315
+ "grad_norm": 0.7724364092340954,
1316
+ "learning_rate": 8.451542547285167e-05,
1317
+ "loss": 0.5547,
1318
+ "num_input_tokens_seen": 1433600000,
1319
+ "step": 14000
1320
+ },
1321
+ {
1322
+ "epoch": 0.01,
1323
+ "eval_average_loss_on_non_sentence_tokens": 0.5056542754173279,
1324
+ "eval_loss": 0.5056542754173279,
1325
+ "eval_non_padding_tokens_in_labels": 512.0,
1326
+ "eval_num_sentinel_tokens_in_labels": 75.1399,
1327
+ "eval_padding_tokens_in_labels": 0.0,
1328
+ "eval_reconstruction_accuracy": 0.898289469401122,
1329
+ "eval_runtime": 79.3513,
1330
+ "eval_samples_per_second": 63.011,
1331
+ "eval_steps_per_second": 0.164,
1332
+ "num_input_tokens_seen": 1433600000,
1333
+ "step": 14000
1334
+ },
1335
+ {
1336
+ "epoch": 0.01,
1337
+ "grad_norm": 0.2540379769406795,
1338
+ "learning_rate": 8.42151921066519e-05,
1339
+ "loss": 0.5665,
1340
+ "num_input_tokens_seen": 1443840000,
1341
+ "step": 14100
1342
+ },
1343
+ {
1344
+ "epoch": 0.01,
1345
+ "grad_norm": 0.2932621408688775,
1346
+ "learning_rate": 8.391813582966892e-05,
1347
+ "loss": 0.5598,
1348
+ "num_input_tokens_seen": 1454080000,
1349
+ "step": 14200
1350
+ },
1351
+ {
1352
+ "epoch": 0.01,
1353
+ "grad_norm": 0.48877245800197655,
1354
+ "learning_rate": 8.362420100070908e-05,
1355
+ "loss": 0.5537,
1356
+ "num_input_tokens_seen": 1464320000,
1357
+ "step": 14300
1358
+ },
1359
+ {
1360
+ "epoch": 0.01,
1361
+ "grad_norm": 0.6541690758541313,
1362
+ "learning_rate": 8.333333333333334e-05,
1363
+ "loss": 0.5729,
1364
+ "num_input_tokens_seen": 1474560000,
1365
+ "step": 14400
1366
+ },
1367
+ {
1368
+ "epoch": 0.01,
1369
+ "grad_norm": 0.48472735448325754,
1370
+ "learning_rate": 8.304547985373997e-05,
1371
+ "loss": 0.5461,
1372
+ "num_input_tokens_seen": 1484800000,
1373
+ "step": 14500
1374
+ },
1375
+ {
1376
+ "epoch": 0.01,
1377
+ "grad_norm": 0.4397966525675985,
1378
+ "learning_rate": 8.27605888602368e-05,
1379
+ "loss": 0.5717,
1380
+ "num_input_tokens_seen": 1495040000,
1381
+ "step": 14600
1382
+ },
1383
+ {
1384
+ "epoch": 0.01,
1385
+ "grad_norm": 0.27255208873195974,
1386
+ "learning_rate": 8.247860988423225e-05,
1387
+ "loss": 0.5693,
1388
+ "num_input_tokens_seen": 1505280000,
1389
+ "step": 14700
1390
+ },
1391
+ {
1392
+ "epoch": 0.01,
1393
+ "grad_norm": 0.5406951988266505,
1394
+ "learning_rate": 8.219949365267866e-05,
1395
+ "loss": 0.5682,
1396
+ "num_input_tokens_seen": 1515520000,
1397
+ "step": 14800
1398
+ },
1399
+ {
1400
+ "epoch": 0.01,
1401
+ "grad_norm": 0.5836951008207953,
1402
+ "learning_rate": 8.192319205190405e-05,
1403
+ "loss": 0.5632,
1404
+ "num_input_tokens_seen": 1525760000,
1405
+ "step": 14900
1406
+ },
1407
+ {
1408
+ "epoch": 0.01,
1409
+ "grad_norm": 0.38210496912794795,
1410
+ "learning_rate": 8.164965809277262e-05,
1411
+ "loss": 0.5606,
1412
+ "num_input_tokens_seen": 1536000000,
1413
+ "step": 15000
1414
+ },
1415
+ {
1416
+ "epoch": 0.01,
1417
+ "eval_average_loss_on_non_sentence_tokens": 0.5040527582168579,
1418
+ "eval_loss": 0.5040527582168579,
1419
+ "eval_non_padding_tokens_in_labels": 512.0,
1420
+ "eval_num_sentinel_tokens_in_labels": 75.84535,
1421
+ "eval_padding_tokens_in_labels": 0.0,
1422
+ "eval_reconstruction_accuracy": 0.8993130757289856,
1423
+ "eval_runtime": 79.0335,
1424
+ "eval_samples_per_second": 63.264,
1425
+ "eval_steps_per_second": 0.164,
1426
+ "num_input_tokens_seen": 1536000000,
1427
+ "step": 15000
1428
+ },
1429
+ {
1430
+ "epoch": 0.02,
1431
+ "grad_norm": 0.5319226158246073,
1432
+ "learning_rate": 8.137884587711596e-05,
1433
+ "loss": 0.556,
1434
+ "num_input_tokens_seen": 1546240000,
1435
+ "step": 15100
1436
+ },
1437
+ {
1438
+ "epoch": 0.02,
1439
+ "grad_norm": 0.45977183218681883,
1440
+ "learning_rate": 8.111071056538128e-05,
1441
+ "loss": 0.5529,
1442
+ "num_input_tokens_seen": 1556480000,
1443
+ "step": 15200
1444
+ },
1445
+ {
1446
+ "epoch": 0.02,
1447
+ "grad_norm": 0.28993334914794955,
1448
+ "learning_rate": 8.084520834544432e-05,
1449
+ "loss": 0.5671,
1450
+ "num_input_tokens_seen": 1566720000,
1451
+ "step": 15300
1452
+ },
1453
+ {
1454
+ "epoch": 0.02,
1455
+ "grad_norm": 0.23815085016697934,
1456
+ "learning_rate": 8.058229640253802e-05,
1457
+ "loss": 0.5432,
1458
+ "num_input_tokens_seen": 1576960000,
1459
+ "step": 15400
1460
+ },
1461
+ {
1462
+ "epoch": 0.02,
1463
+ "grad_norm": 0.29220323367264955,
1464
+ "learning_rate": 8.032193289024989e-05,
1465
+ "loss": 0.56,
1466
+ "num_input_tokens_seen": 1587200000,
1467
+ "step": 15500
1468
+ },
1469
+ {
1470
+ "epoch": 0.02,
1471
+ "grad_norm": 0.4509226866368844,
1472
+ "learning_rate": 8.006407690254358e-05,
1473
+ "loss": 0.5559,
1474
+ "num_input_tokens_seen": 1597440000,
1475
+ "step": 15600
1476
+ },
1477
+ {
1478
+ "epoch": 0.02,
1479
+ "grad_norm": 0.5510756470119066,
1480
+ "learning_rate": 7.980868844676222e-05,
1481
+ "loss": 0.5502,
1482
+ "num_input_tokens_seen": 1607680000,
1483
+ "step": 15700
1484
+ },
1485
+ {
1486
+ "epoch": 0.02,
1487
+ "grad_norm": 0.4242689766840494,
1488
+ "learning_rate": 7.955572841757301e-05,
1489
+ "loss": 0.5473,
1490
+ "num_input_tokens_seen": 1617920000,
1491
+ "step": 15800
1492
+ },
1493
+ {
1494
+ "epoch": 0.02,
1495
+ "grad_norm": 0.2960137749918929,
1496
+ "learning_rate": 7.930515857181441e-05,
1497
+ "loss": 0.5633,
1498
+ "num_input_tokens_seen": 1628160000,
1499
+ "step": 15900
1500
+ },
1501
+ {
1502
+ "epoch": 0.02,
1503
+ "grad_norm": 0.4031487716644737,
1504
+ "learning_rate": 7.905694150420948e-05,
1505
+ "loss": 0.5596,
1506
+ "num_input_tokens_seen": 1638400000,
1507
+ "step": 16000
1508
+ },
1509
+ {
1510
+ "epoch": 0.02,
1511
+ "eval_average_loss_on_non_sentence_tokens": 0.5138280987739563,
1512
+ "eval_loss": 0.5138280987739563,
1513
+ "eval_non_padding_tokens_in_labels": 512.0,
1514
+ "eval_num_sentinel_tokens_in_labels": 73.3444,
1515
+ "eval_padding_tokens_in_labels": 0.0,
1516
+ "eval_reconstruction_accuracy": 0.8969269411729885,
1517
+ "eval_runtime": 79.0049,
1518
+ "eval_samples_per_second": 63.287,
1519
+ "eval_steps_per_second": 0.165,
1520
+ "num_input_tokens_seen": 1638400000,
1521
+ "step": 16000
1522
+ }
1523
+ ],
1524
+ "logging_steps": 100,
1525
+ "max_steps": 1000000,
1526
+ "num_input_tokens_seen": 1638400000,
1527
+ "num_train_epochs": 9223372036854775807,
1528
+ "save_steps": 2000,
1529
+ "total_flos": 2.1910423467353702e+18,
1530
+ "train_batch_size": 25,
1531
+ "trial_name": null,
1532
+ "trial_params": null
1533
+ }
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62543e926cc4dcf54914bf3306e7ed31b0797271b9748242dd7283fb264fd8d9
3
+ size 6584
checkpoints/pre_train/from_pretrained/hf_t5/allenai/c4_en/lr_0_0001_inverse_sqrt_bsz_200_shuffle_p_0_5/2024-04-03_20-31/checkpoint-16000/zero_to_fp32.py ADDED
@@ -0,0 +1,592 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env python
2
+
3
+ # Copyright (c) Microsoft Corporation.
4
+ # SPDX-License-Identifier: Apache-2.0
5
+
6
+ # DeepSpeed Team
7
+
8
+ # This script extracts fp32 consolidated weights from a zero 1, 2 and 3 DeepSpeed checkpoints. It gets
9
+ # copied into the top level checkpoint dir, so the user can easily do the conversion at any point in
10
+ # the future. Once extracted, the weights don't require DeepSpeed and can be used in any
11
+ # application.
12
+ #
13
+ # example: python zero_to_fp32.py . pytorch_model.bin
14
+
15
+ import argparse
16
+ import torch
17
+ import glob
18
+ import math
19
+ import os
20
+ import re
21
+ from collections import OrderedDict
22
+ from dataclasses import dataclass
23
+
24
+ # while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
25
+ # DeepSpeed data structures it has to be available in the current python environment.
26
+ from deepspeed.utils import logger
27
+ from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
28
+ FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
29
+ FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
30
+
31
+
32
+ @dataclass
33
+ class zero_model_state:
34
+ buffers: dict()
35
+ param_shapes: dict()
36
+ shared_params: list
37
+ ds_version: int
38
+ frozen_param_shapes: dict()
39
+ frozen_param_fragments: dict()
40
+
41
+
42
+ debug = 0
43
+
44
+ # load to cpu
45
+ device = torch.device('cpu')
46
+
47
+
48
+ def atoi(text):
49
+ return int(text) if text.isdigit() else text
50
+
51
+
52
+ def natural_keys(text):
53
+ '''
54
+ alist.sort(key=natural_keys) sorts in human order
55
+ http://nedbatchelder.com/blog/200712/human_sorting.html
56
+ (See Toothy's implementation in the comments)
57
+ '''
58
+ return [atoi(c) for c in re.split(r'(\d+)', text)]
59
+
60
+
61
+ def get_model_state_file(checkpoint_dir, zero_stage):
62
+ if not os.path.isdir(checkpoint_dir):
63
+ raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
64
+
65
+ # there should be only one file
66
+ if zero_stage <= 2:
67
+ file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
68
+ elif zero_stage == 3:
69
+ file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
70
+
71
+ if not os.path.exists(file):
72
+ raise FileNotFoundError(f"can't find model states file at '{file}'")
73
+
74
+ return file
75
+
76
+
77
+ def get_checkpoint_files(checkpoint_dir, glob_pattern):
78
+ # XXX: need to test that this simple glob rule works for multi-node setup too
79
+ ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
80
+
81
+ if len(ckpt_files) == 0:
82
+ raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
83
+
84
+ return ckpt_files
85
+
86
+
87
+ def get_optim_files(checkpoint_dir):
88
+ return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
89
+
90
+
91
+ def get_model_state_files(checkpoint_dir):
92
+ return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
93
+
94
+
95
+ def parse_model_states(files):
96
+ zero_model_states = []
97
+ for file in files:
98
+ state_dict = torch.load(file, map_location=device)
99
+
100
+ if BUFFER_NAMES not in state_dict:
101
+ raise ValueError(f"{file} is not a model state checkpoint")
102
+ buffer_names = state_dict[BUFFER_NAMES]
103
+ if debug:
104
+ print("Found buffers:", buffer_names)
105
+
106
+ # recover just the buffers while restoring them to fp32 if they were saved in fp16
107
+ buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
108
+ param_shapes = state_dict[PARAM_SHAPES]
109
+
110
+ # collect parameters that are included in param_shapes
111
+ param_names = []
112
+ for s in param_shapes:
113
+ for name in s.keys():
114
+ param_names.append(name)
115
+
116
+ # update with frozen parameters
117
+ frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
118
+ if frozen_param_shapes is not None:
119
+ if debug:
120
+ print(f"Found frozen_param_shapes: {frozen_param_shapes}")
121
+ param_names += list(frozen_param_shapes.keys())
122
+
123
+ # handle shared params
124
+ shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
125
+
126
+ ds_version = state_dict.get(DS_VERSION, None)
127
+
128
+ frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
129
+
130
+ z_model_state = zero_model_state(buffers=buffers,
131
+ param_shapes=param_shapes,
132
+ shared_params=shared_params,
133
+ ds_version=ds_version,
134
+ frozen_param_shapes=frozen_param_shapes,
135
+ frozen_param_fragments=frozen_param_fragments)
136
+ zero_model_states.append(z_model_state)
137
+
138
+ return zero_model_states
139
+
140
+
141
+ def parse_optim_states(files, ds_checkpoint_dir):
142
+
143
+ total_files = len(files)
144
+ state_dicts = []
145
+ for f in files:
146
+ state_dict = torch.load(f, map_location=device)
147
+ # immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
148
+ # and also handle the case where it was already removed by another helper script
149
+ state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
150
+ state_dicts.append(state_dict)
151
+
152
+ if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
153
+ raise ValueError(f"{files[0]} is not a zero checkpoint")
154
+ zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
155
+ world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
156
+
157
+ # For ZeRO-2 each param group can have different partition_count as data parallelism for expert
158
+ # parameters can be different from data parallelism for non-expert parameters. So we can just
159
+ # use the max of the partition_count to get the dp world_size.
160
+
161
+ if type(world_size) is list:
162
+ world_size = max(world_size)
163
+
164
+ if world_size != total_files:
165
+ raise ValueError(
166
+ f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
167
+ "Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
168
+ )
169
+
170
+ # the groups are named differently in each stage
171
+ if zero_stage <= 2:
172
+ fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
173
+ elif zero_stage == 3:
174
+ fp32_groups_key = FP32_FLAT_GROUPS
175
+ else:
176
+ raise ValueError(f"unknown zero stage {zero_stage}")
177
+
178
+ if zero_stage <= 2:
179
+ fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
180
+ elif zero_stage == 3:
181
+ # if there is more than one param group, there will be multiple flattened tensors - one
182
+ # flattened tensor per group - for simplicity merge them into a single tensor
183
+ #
184
+ # XXX: could make the script more memory efficient for when there are multiple groups - it
185
+ # will require matching the sub-lists of param_shapes for each param group flattened tensor
186
+
187
+ fp32_flat_groups = [
188
+ torch.cat(state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key], 0) for i in range(len(state_dicts))
189
+ ]
190
+
191
+ return zero_stage, world_size, fp32_flat_groups
192
+
193
+
194
+ def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir):
195
+ """
196
+ Returns fp32 state_dict reconstructed from ds checkpoint
197
+
198
+ Args:
199
+ - ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
200
+
201
+ """
202
+ print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
203
+
204
+ optim_files = get_optim_files(ds_checkpoint_dir)
205
+ zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
206
+ print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
207
+
208
+ model_files = get_model_state_files(ds_checkpoint_dir)
209
+
210
+ zero_model_states = parse_model_states(model_files)
211
+ print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
212
+
213
+ if zero_stage <= 2:
214
+ return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states)
215
+ elif zero_stage == 3:
216
+ return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states)
217
+
218
+
219
+ def _zero2_merge_frozen_params(state_dict, zero_model_states):
220
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
221
+ return
222
+
223
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
224
+ frozen_param_fragments = zero_model_states[0].frozen_param_fragments
225
+
226
+ if debug:
227
+ num_elem = sum(s.numel() for s in frozen_param_shapes.values())
228
+ print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
229
+
230
+ wanted_params = len(frozen_param_shapes)
231
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
232
+ avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
233
+ print(f'Frozen params: Have {avail_numel} numels to process.')
234
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
235
+
236
+ total_params = 0
237
+ total_numel = 0
238
+ for name, shape in frozen_param_shapes.items():
239
+ total_params += 1
240
+ unpartitioned_numel = shape.numel()
241
+ total_numel += unpartitioned_numel
242
+
243
+ state_dict[name] = frozen_param_fragments[name]
244
+
245
+ if debug:
246
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
247
+
248
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
249
+
250
+
251
+ def _has_callable(obj, fn):
252
+ attr = getattr(obj, fn, None)
253
+ return callable(attr)
254
+
255
+
256
+ def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
257
+ param_shapes = zero_model_states[0].param_shapes
258
+
259
+ # Reconstruction protocol:
260
+ #
261
+ # XXX: document this
262
+
263
+ if debug:
264
+ for i in range(world_size):
265
+ for j in range(len(fp32_flat_groups[0])):
266
+ print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
267
+
268
+ # XXX: memory usage doubles here (zero2)
269
+ num_param_groups = len(fp32_flat_groups[0])
270
+ merged_single_partition_of_fp32_groups = []
271
+ for i in range(num_param_groups):
272
+ merged_partitions = [sd[i] for sd in fp32_flat_groups]
273
+ full_single_fp32_vector = torch.cat(merged_partitions, 0)
274
+ merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
275
+ avail_numel = sum(
276
+ [full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
277
+
278
+ if debug:
279
+ wanted_params = sum([len(shapes) for shapes in param_shapes])
280
+ wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
281
+ # not asserting if there is a mismatch due to possible padding
282
+ print(f"Have {avail_numel} numels to process.")
283
+ print(f"Need {wanted_numel} numels in {wanted_params} params.")
284
+
285
+ # params
286
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
287
+ # out-of-core computing solution
288
+ total_numel = 0
289
+ total_params = 0
290
+ for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
291
+ offset = 0
292
+ avail_numel = full_single_fp32_vector.numel()
293
+ for name, shape in shapes.items():
294
+
295
+ unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
296
+ total_numel += unpartitioned_numel
297
+ total_params += 1
298
+
299
+ if debug:
300
+ print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
301
+ state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
302
+ offset += unpartitioned_numel
303
+
304
+ # Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
305
+ # avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
306
+ # paddings performed in the code it's almost impossible to predict the exact numbers w/o the
307
+ # live optimizer object, so we are checking that the numbers are within the right range
308
+ align_to = 2 * world_size
309
+
310
+ def zero2_align(x):
311
+ return align_to * math.ceil(x / align_to)
312
+
313
+ if debug:
314
+ print(f"original offset={offset}, avail_numel={avail_numel}")
315
+
316
+ offset = zero2_align(offset)
317
+ avail_numel = zero2_align(avail_numel)
318
+
319
+ if debug:
320
+ print(f"aligned offset={offset}, avail_numel={avail_numel}")
321
+
322
+ # Sanity check
323
+ if offset != avail_numel:
324
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
325
+
326
+ print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
327
+
328
+
329
+ def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states):
330
+ state_dict = OrderedDict()
331
+
332
+ # buffers
333
+ buffers = zero_model_states[0].buffers
334
+ state_dict.update(buffers)
335
+ if debug:
336
+ print(f"added {len(buffers)} buffers")
337
+
338
+ _zero2_merge_frozen_params(state_dict, zero_model_states)
339
+
340
+ _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
341
+
342
+ # recover shared parameters
343
+ for pair in zero_model_states[0].shared_params:
344
+ if pair[1] in state_dict:
345
+ state_dict[pair[0]] = state_dict[pair[1]]
346
+
347
+ return state_dict
348
+
349
+
350
+ def zero3_partitioned_param_info(unpartitioned_numel, world_size):
351
+ remainder = unpartitioned_numel % world_size
352
+ padding_numel = (world_size - remainder) if remainder else 0
353
+ partitioned_numel = math.ceil(unpartitioned_numel / world_size)
354
+ return partitioned_numel, padding_numel
355
+
356
+
357
+ def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
358
+ if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
359
+ return
360
+
361
+ if debug:
362
+ for i in range(world_size):
363
+ num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
364
+ print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
365
+
366
+ frozen_param_shapes = zero_model_states[0].frozen_param_shapes
367
+ wanted_params = len(frozen_param_shapes)
368
+ wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
369
+ avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
370
+ print(f'Frozen params: Have {avail_numel} numels to process.')
371
+ print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
372
+
373
+ total_params = 0
374
+ total_numel = 0
375
+ for name, shape in zero_model_states[0].frozen_param_shapes.items():
376
+ total_params += 1
377
+ unpartitioned_numel = shape.numel()
378
+ total_numel += unpartitioned_numel
379
+
380
+ param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
381
+ state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
382
+
383
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
384
+
385
+ if debug:
386
+ print(
387
+ f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
388
+ )
389
+
390
+ print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
391
+
392
+
393
+ def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
394
+ param_shapes = zero_model_states[0].param_shapes
395
+ avail_numel = fp32_flat_groups[0].numel() * world_size
396
+ # Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
397
+ # param, re-consolidating each param, while dealing with padding if any
398
+
399
+ # merge list of dicts, preserving order
400
+ param_shapes = {k: v for d in param_shapes for k, v in d.items()}
401
+
402
+ if debug:
403
+ for i in range(world_size):
404
+ print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
405
+
406
+ wanted_params = len(param_shapes)
407
+ wanted_numel = sum(shape.numel() for shape in param_shapes.values())
408
+ # not asserting if there is a mismatch due to possible padding
409
+ avail_numel = fp32_flat_groups[0].numel() * world_size
410
+ print(f"Trainable params: Have {avail_numel} numels to process.")
411
+ print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
412
+
413
+ # params
414
+ # XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
415
+ # out-of-core computing solution
416
+ offset = 0
417
+ total_numel = 0
418
+ total_params = 0
419
+ for name, shape in param_shapes.items():
420
+
421
+ unpartitioned_numel = shape.numel()
422
+ total_numel += unpartitioned_numel
423
+ total_params += 1
424
+
425
+ partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
426
+
427
+ if debug:
428
+ print(
429
+ f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
430
+ )
431
+
432
+ # XXX: memory usage doubles here
433
+ state_dict[name] = torch.cat(
434
+ tuple(fp32_flat_groups[i].narrow(0, offset, partitioned_numel) for i in range(world_size)),
435
+ 0).narrow(0, 0, unpartitioned_numel).view(shape)
436
+ offset += partitioned_numel
437
+
438
+ offset *= world_size
439
+
440
+ # Sanity check
441
+ if offset != avail_numel:
442
+ raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
443
+
444
+ print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
445
+
446
+
447
+ def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states):
448
+ state_dict = OrderedDict()
449
+
450
+ # buffers
451
+ buffers = zero_model_states[0].buffers
452
+ state_dict.update(buffers)
453
+ if debug:
454
+ print(f"added {len(buffers)} buffers")
455
+
456
+ _zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
457
+
458
+ _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
459
+
460
+ # recover shared parameters
461
+ for pair in zero_model_states[0].shared_params:
462
+ if pair[1] in state_dict:
463
+ state_dict[pair[0]] = state_dict[pair[1]]
464
+
465
+ return state_dict
466
+
467
+
468
+ def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag=None):
469
+ """
470
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
471
+ ``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
472
+ via a model hub.
473
+
474
+ Args:
475
+ - ``checkpoint_dir``: path to the desired checkpoint folder
476
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in 'latest' file. e.g., ``global_step14``
477
+
478
+ Returns:
479
+ - pytorch ``state_dict``
480
+
481
+ Note: this approach may not work if your application doesn't have sufficient free CPU memory and
482
+ you may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
483
+ the checkpoint.
484
+
485
+ A typical usage might be ::
486
+
487
+ from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
488
+ # do the training and checkpoint saving
489
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
490
+ model = model.cpu() # move to cpu
491
+ model.load_state_dict(state_dict)
492
+ # submit to model hub or save the model to share with others
493
+
494
+ In this example the ``model`` will no longer be usable in the deepspeed context of the same
495
+ application. i.e. you will need to re-initialize the deepspeed engine, since
496
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
497
+
498
+ If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
499
+
500
+ """
501
+ if tag is None:
502
+ latest_path = os.path.join(checkpoint_dir, 'latest')
503
+ if os.path.isfile(latest_path):
504
+ with open(latest_path, 'r') as fd:
505
+ tag = fd.read().strip()
506
+ else:
507
+ raise ValueError(f"Unable to find 'latest' file at {latest_path}")
508
+
509
+ ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
510
+
511
+ if not os.path.isdir(ds_checkpoint_dir):
512
+ raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
513
+
514
+ return _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir)
515
+
516
+
517
+ def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir, output_file, tag=None):
518
+ """
519
+ Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
520
+ loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
521
+
522
+ Args:
523
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
524
+ - ``output_file``: path to the pytorch fp32 state_dict output file (e.g. path/pytorch_model.bin)
525
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
526
+ """
527
+
528
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
529
+ print(f"Saving fp32 state dict to {output_file}")
530
+ torch.save(state_dict, output_file)
531
+
532
+
533
+ def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
534
+ """
535
+ 1. Put the provided model to cpu
536
+ 2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
537
+ 3. Load it into the provided model
538
+
539
+ Args:
540
+ - ``model``: the model object to update
541
+ - ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
542
+ - ``tag``: checkpoint tag used as a unique identifier for checkpoint. If not provided will attempt to load tag in the file named ``latest`` in the checkpoint folder, e.g., ``global_step14``
543
+
544
+ Returns:
545
+ - ``model`: modified model
546
+
547
+ Make sure you have plenty of CPU memory available before you call this function. If you don't
548
+ have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
549
+ conveniently placed for you in the checkpoint folder.
550
+
551
+ A typical usage might be ::
552
+
553
+ from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
554
+ model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
555
+ # submit to model hub or save the model to share with others
556
+
557
+ Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
558
+ of the same application. i.e. you will need to re-initialize the deepspeed engine, since
559
+ ``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
560
+
561
+ """
562
+ logger.info(f"Extracting fp32 weights")
563
+ state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
564
+
565
+ logger.info(f"Overwriting model with fp32 weights")
566
+ model = model.cpu()
567
+ model.load_state_dict(state_dict, strict=False)
568
+
569
+ return model
570
+
571
+
572
+ if __name__ == "__main__":
573
+
574
+ parser = argparse.ArgumentParser()
575
+ parser.add_argument("checkpoint_dir",
576
+ type=str,
577
+ help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
578
+ parser.add_argument(
579
+ "output_file",
580
+ type=str,
581
+ help="path to the pytorch fp32 state_dict output file (e.g. path/checkpoint-12/pytorch_model.bin)")
582
+ parser.add_argument("-t",
583
+ "--tag",
584
+ type=str,
585
+ default=None,
586
+ help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
587
+ parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
588
+ args = parser.parse_args()
589
+
590
+ debug = args.debug
591
+
592
+ convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir, args.output_file, tag=args.tag)