Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- added_tokens.json +901 -0
- config.json +30 -0
- generation_config.json +6 -0
- global_step34799/bf16_zero_pp_rank_0_mp_rank_00_optim_states.pt +3 -0
- global_step34799/bf16_zero_pp_rank_1_mp_rank_00_optim_states.pt +3 -0
- global_step34799/bf16_zero_pp_rank_2_mp_rank_00_optim_states.pt +3 -0
- global_step34799/bf16_zero_pp_rank_3_mp_rank_00_optim_states.pt +3 -0
- global_step34799/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt +3 -0
- global_step34799/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt +3 -0
- global_step34799/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt +3 -0
- global_step34799/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt +3 -0
- global_step34799/mp_rank_00_model_states.pt +3 -0
- latest +1 -0
- merges.txt +0 -0
- model.safetensors +3 -0
- rng_state_0.pth +3 -0
- rng_state_1.pth +3 -0
- rng_state_2.pth +3 -0
- rng_state_3.pth +3 -0
- rng_state_4.pth +3 -0
- rng_state_5.pth +3 -0
- rng_state_6.pth +3 -0
- rng_state_7.pth +3 -0
- scheduler.pt +3 -0
- special_tokens_map.json +31 -0
- tokenizer.json +3 -0
- tokenizer_config.json +0 -0
- trainer_state.json +1251 -0
- training_args.bin +3 -0
- vocab.json +0 -0
- zero_to_fp32.py +760 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
tokenizer.json filter=lfs diff=lfs merge=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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</tool_call>": 151658,
|
| 3 |
+
"<tool_call>": 151657,
|
| 4 |
+
"<|alias_py -> identifier_py |>": 152363,
|
| 5 |
+
"<|aliased_import_py -> name_py as_ter alias_py |>": 151793,
|
| 6 |
+
"<|alternative_py -> elif_clause_py |>": 151686,
|
| 7 |
+
"<|alternative_py -> else_clause_py |>": 151695,
|
| 8 |
+
"<|argument_list_py -> (_ter|>": 152255,
|
| 9 |
+
"<|argument_list_py -> )_ter|>": 152514,
|
| 10 |
+
"<|argument_list_py -> ,_ter|>": 152309,
|
| 11 |
+
"<|argument_list_py -> End |>": 152485,
|
| 12 |
+
"<|argument_list_py -> attribute_py|>": 152280,
|
| 13 |
+
"<|argument_list_py -> binary_operator_py|>": 151837,
|
| 14 |
+
"<|argument_list_py -> boolean_operator_py|>": 152279,
|
| 15 |
+
"<|argument_list_py -> call_py|>": 151699,
|
| 16 |
+
"<|argument_list_py -> comparison_operator_py|>": 152495,
|
| 17 |
+
"<|argument_list_py -> conditional_expression_py|>": 152452,
|
| 18 |
+
"<|argument_list_py -> dictionary_comprehension_py|>": 152346,
|
| 19 |
+
"<|argument_list_py -> dictionary_py|>": 151970,
|
| 20 |
+
"<|argument_list_py -> false_py|>": 151897,
|
| 21 |
+
"<|argument_list_py -> float_py|>": 152269,
|
| 22 |
+
"<|argument_list_py -> generator_expression_py|>": 152369,
|
| 23 |
+
"<|argument_list_py -> identifier_py|>": 151884,
|
| 24 |
+
"<|argument_list_py -> identifier_ter|>": 152359,
|
| 25 |
+
"<|argument_list_py -> integer_py|>": 151949,
|
| 26 |
+
"<|argument_list_py -> keyword_argument_py|>": 152122,
|
| 27 |
+
"<|argument_list_py -> lambda_py|>": 152428,
|
| 28 |
+
"<|argument_list_py -> list_comprehension_py|>": 152347,
|
| 29 |
+
"<|argument_list_py -> list_py|>": 152060,
|
| 30 |
+
"<|argument_list_py -> list_splat_py|>": 152066,
|
| 31 |
+
"<|argument_list_py -> none_py|>": 152203,
|
| 32 |
+
"<|argument_list_py -> not_operator_py|>": 152230,
|
| 33 |
+
"<|argument_list_py -> parenthesized_expression_py|>": 152047,
|
| 34 |
+
"<|argument_list_py -> set_comprehension_py|>": 152464,
|
| 35 |
+
"<|argument_list_py -> set_py|>": 152007,
|
| 36 |
+
"<|argument_list_py -> string_literal_py|>": 152486,
|
| 37 |
+
"<|argument_list_py -> subscript_py|>": 151995,
|
| 38 |
+
"<|argument_list_py -> true_py|>": 151992,
|
| 39 |
+
"<|argument_list_py -> tuple_py|>": 152517,
|
| 40 |
+
"<|argument_list_py -> unary_operator_py|>": 151886,
|
| 41 |
+
"<|argument_py -> attribute_py |>": 151745,
|
| 42 |
+
"<|argument_py -> binary_operator_py |>": 152223,
|
| 43 |
+
"<|argument_py -> call_py |>": 152430,
|
| 44 |
+
"<|argument_py -> comparison_operator_py |>": 151876,
|
| 45 |
+
"<|argument_py -> dictionary_py |>": 152393,
|
| 46 |
+
"<|argument_py -> false_py |>": 152408,
|
| 47 |
+
"<|argument_py -> float_py |>": 152454,
|
| 48 |
+
"<|argument_py -> generator_expression_py |>": 152107,
|
| 49 |
+
"<|argument_py -> identifier_py |>": 151673,
|
| 50 |
+
"<|argument_py -> identifier_ter |>": 152341,
|
| 51 |
+
"<|argument_py -> integer_py |>": 151762,
|
| 52 |
+
"<|argument_py -> list_comprehension_py |>": 152385,
|
| 53 |
+
"<|argument_py -> list_py |>": 152054,
|
| 54 |
+
"<|argument_py -> not_operator_py |>": 152496,
|
| 55 |
+
"<|argument_py -> parenthesized_expression_py |>": 151674,
|
| 56 |
+
"<|argument_py -> string_literal_py |>": 152379,
|
| 57 |
+
"<|argument_py -> subscript_py |>": 152182,
|
| 58 |
+
"<|argument_py -> true_py |>": 151961,
|
| 59 |
+
"<|argument_py -> tuple_py |>": 152259,
|
| 60 |
+
"<|argument_py -> unary_operator_py |>": 152232,
|
| 61 |
+
"<|arguments_py -> argument_list_py |>": 152354,
|
| 62 |
+
"<|arguments_py -> generator_expression_py |>": 152478,
|
| 63 |
+
"<|assert_statement_py -> ,_ter|>": 152145,
|
| 64 |
+
"<|assert_statement_py -> End |>": 152407,
|
| 65 |
+
"<|assert_statement_py -> assert_ter|>": 152113,
|
| 66 |
+
"<|assert_statement_py -> binary_operator_py|>": 151742,
|
| 67 |
+
"<|assert_statement_py -> boolean_operator_py|>": 151831,
|
| 68 |
+
"<|assert_statement_py -> call_py|>": 152515,
|
| 69 |
+
"<|assert_statement_py -> comparison_operator_py|>": 151722,
|
| 70 |
+
"<|assert_statement_py -> generator_expression_py|>": 152318,
|
| 71 |
+
"<|assert_statement_py -> identifier_py|>": 152300,
|
| 72 |
+
"<|assert_statement_py -> parenthesized_expression_py|>": 151936,
|
| 73 |
+
"<|assert_statement_py -> string_literal_py|>": 151717,
|
| 74 |
+
"<|assert_statement_py -> tuple_py|>": 152356,
|
| 75 |
+
"<|assignment_py -> left_py :_ter type_py =_ter right_py |>": 152011,
|
| 76 |
+
"<|assignment_py -> left_py :_ter type_py |>": 151679,
|
| 77 |
+
"<|assignment_py -> left_py =_ter right_py |>": 151846,
|
| 78 |
+
"<|attribute_py -> identifier_py |>": 151994,
|
| 79 |
+
"<|attribute_py -> identifier_ter |>": 151900,
|
| 80 |
+
"<|attribute_py -> object_py ._ter attribute_py |>": 152340,
|
| 81 |
+
"<|augmented_assignment_py -> left_py operator_py right_py |>": 151963,
|
| 82 |
+
"<|binary_operator_py -> left_py operator_py right_py |>": 151931,
|
| 83 |
+
"<|block_py -> ;_ter|>": 152271,
|
| 84 |
+
"<|block_py -> End |>": 151953,
|
| 85 |
+
"<|block_py -> assert_statement_py|>": 151797,
|
| 86 |
+
"<|block_py -> break_statement_py|>": 151895,
|
| 87 |
+
"<|block_py -> class_definition_py|>": 152109,
|
| 88 |
+
"<|block_py -> continue_statement_py|>": 152421,
|
| 89 |
+
"<|block_py -> delete_statement_py|>": 152261,
|
| 90 |
+
"<|block_py -> expression_statement_py|>": 151719,
|
| 91 |
+
"<|block_py -> for_statement_py|>": 152026,
|
| 92 |
+
"<|block_py -> function_definition_py|>": 152512,
|
| 93 |
+
"<|block_py -> future_import_statement_py|>": 152059,
|
| 94 |
+
"<|block_py -> if_statement_py|>": 152115,
|
| 95 |
+
"<|block_py -> import_from_statement_py|>": 151916,
|
| 96 |
+
"<|block_py -> import_statement_py|>": 152033,
|
| 97 |
+
"<|block_py -> pass_statement_py|>": 152048,
|
| 98 |
+
"<|block_py -> print_statement_py|>": 151791,
|
| 99 |
+
"<|block_py -> raise_statement_py|>": 152466,
|
| 100 |
+
"<|block_py -> return_statement_py|>": 151800,
|
| 101 |
+
"<|block_py -> try_statement_py|>": 152187,
|
| 102 |
+
"<|block_py -> type_alias_statement_py|>": 152388,
|
| 103 |
+
"<|block_py -> while_statement_py|>": 152527,
|
| 104 |
+
"<|body_py -> End |>": 152146,
|
| 105 |
+
"<|body_py -> attribute_py|>": 152268,
|
| 106 |
+
"<|body_py -> binary_operator_py|>": 152178,
|
| 107 |
+
"<|body_py -> block_py|>": 152498,
|
| 108 |
+
"<|body_py -> boolean_operator_py|>": 152311,
|
| 109 |
+
"<|body_py -> call_py|>": 152156,
|
| 110 |
+
"<|body_py -> comment_py|>": 151739,
|
| 111 |
+
"<|body_py -> comparison_operator_py|>": 152457,
|
| 112 |
+
"<|body_py -> conditional_expression_py|>": 151951,
|
| 113 |
+
"<|body_py -> dictionary_comprehension_py|>": 152319,
|
| 114 |
+
"<|body_py -> dictionary_py|>": 151902,
|
| 115 |
+
"<|body_py -> false_py|>": 152465,
|
| 116 |
+
"<|body_py -> float_py|>": 151729,
|
| 117 |
+
"<|body_py -> generator_expression_py|>": 152351,
|
| 118 |
+
"<|body_py -> identifier_py|>": 151962,
|
| 119 |
+
"<|body_py -> identifier_ter|>": 151955,
|
| 120 |
+
"<|body_py -> integer_py|>": 152003,
|
| 121 |
+
"<|body_py -> lambda_py|>": 151852,
|
| 122 |
+
"<|body_py -> list_comprehension_py|>": 152112,
|
| 123 |
+
"<|body_py -> list_py|>": 151740,
|
| 124 |
+
"<|body_py -> none_py|>": 152307,
|
| 125 |
+
"<|body_py -> not_operator_py|>": 152487,
|
| 126 |
+
"<|body_py -> pair_py|>": 152151,
|
| 127 |
+
"<|body_py -> parenthesized_expression_py|>": 152260,
|
| 128 |
+
"<|body_py -> set_comprehension_py|>": 152438,
|
| 129 |
+
"<|body_py -> set_py|>": 152221,
|
| 130 |
+
"<|body_py -> string_literal_py|>": 151712,
|
| 131 |
+
"<|body_py -> subscript_py|>": 152104,
|
| 132 |
+
"<|body_py -> true_py|>": 152045,
|
| 133 |
+
"<|body_py -> tuple_py|>": 152022,
|
| 134 |
+
"<|body_py -> unary_operator_py|>": 151882,
|
| 135 |
+
"<|boolean_operator_py -> left_py operator_py right_py |>": 151968,
|
| 136 |
+
"<|box_end|>": 151649,
|
| 137 |
+
"<|box_start|>": 151648,
|
| 138 |
+
"<|break_statement_py -> break_ter |>": 152426,
|
| 139 |
+
"<|call_py -> function_py arguments_py |>": 152165,
|
| 140 |
+
"<|chevron_py -> >>_ter attribute_py |>": 152315,
|
| 141 |
+
"<|chevron_py -> >>_ter identifier_py |>": 151758,
|
| 142 |
+
"<|class_definition_py -> class_ter name_py :_ter body_py |>": 152086,
|
| 143 |
+
"<|class_definition_py -> class_ter name_py superclasses_py :_ter body_py |>": 152509,
|
| 144 |
+
"<|comment_py -> End|>": 152488,
|
| 145 |
+
"<|comparison_operator_py -> End |>": 152088,
|
| 146 |
+
"<|comparison_operator_py -> attribute_py|>": 152164,
|
| 147 |
+
"<|comparison_operator_py -> binary_operator_py|>": 152322,
|
| 148 |
+
"<|comparison_operator_py -> call_py|>": 152158,
|
| 149 |
+
"<|comparison_operator_py -> dictionary_comprehension_py|>": 152390,
|
| 150 |
+
"<|comparison_operator_py -> dictionary_py|>": 152035,
|
| 151 |
+
"<|comparison_operator_py -> false_py|>": 151794,
|
| 152 |
+
"<|comparison_operator_py -> float_py|>": 151703,
|
| 153 |
+
"<|comparison_operator_py -> generator_expression_py|>": 152314,
|
| 154 |
+
"<|comparison_operator_py -> identifier_py|>": 152327,
|
| 155 |
+
"<|comparison_operator_py -> identifier_ter|>": 152027,
|
| 156 |
+
"<|comparison_operator_py -> integer_py|>": 152447,
|
| 157 |
+
"<|comparison_operator_py -> list_comprehension_py|>": 151878,
|
| 158 |
+
"<|comparison_operator_py -> list_py|>": 151912,
|
| 159 |
+
"<|comparison_operator_py -> list_splat_py|>": 152192,
|
| 160 |
+
"<|comparison_operator_py -> none_py|>": 152111,
|
| 161 |
+
"<|comparison_operator_py -> operators_py|>": 151733,
|
| 162 |
+
"<|comparison_operator_py -> parenthesized_expression_py|>": 152326,
|
| 163 |
+
"<|comparison_operator_py -> set_comprehension_py|>": 152533,
|
| 164 |
+
"<|comparison_operator_py -> set_py|>": 152422,
|
| 165 |
+
"<|comparison_operator_py -> string_literal_py|>": 152387,
|
| 166 |
+
"<|comparison_operator_py -> subscript_py|>": 151697,
|
| 167 |
+
"<|comparison_operator_py -> true_py|>": 151795,
|
| 168 |
+
"<|comparison_operator_py -> tuple_py|>": 152436,
|
| 169 |
+
"<|comparison_operator_py -> unary_operator_py|>": 152431,
|
| 170 |
+
"<|condition_py -> attribute_py |>": 152446,
|
| 171 |
+
"<|condition_py -> binary_operator_py |>": 152423,
|
| 172 |
+
"<|condition_py -> boolean_operator_py |>": 152120,
|
| 173 |
+
"<|condition_py -> call_py |>": 152250,
|
| 174 |
+
"<|condition_py -> comparison_operator_py |>": 152205,
|
| 175 |
+
"<|condition_py -> conditional_expression_py |>": 152002,
|
| 176 |
+
"<|condition_py -> false_py |>": 152074,
|
| 177 |
+
"<|condition_py -> identifier_py |>": 152275,
|
| 178 |
+
"<|condition_py -> identifier_ter |>": 152247,
|
| 179 |
+
"<|condition_py -> integer_py |>": 151820,
|
| 180 |
+
"<|condition_py -> not_operator_py |>": 151930,
|
| 181 |
+
"<|condition_py -> parenthesized_expression_py |>": 152175,
|
| 182 |
+
"<|condition_py -> string_literal_py |>": 152153,
|
| 183 |
+
"<|condition_py -> subscript_py |>": 152038,
|
| 184 |
+
"<|condition_py -> true_py |>": 152306,
|
| 185 |
+
"<|condition_py -> tuple_py |>": 151971,
|
| 186 |
+
"<|condition_py -> unary_operator_py |>": 152456,
|
| 187 |
+
"<|conditional_expression_py -> End |>": 152089,
|
| 188 |
+
"<|conditional_expression_py -> attribute_py|>": 152181,
|
| 189 |
+
"<|conditional_expression_py -> binary_operator_py|>": 152061,
|
| 190 |
+
"<|conditional_expression_py -> boolean_operator_py|>": 152276,
|
| 191 |
+
"<|conditional_expression_py -> call_py|>": 151746,
|
| 192 |
+
"<|conditional_expression_py -> comparison_operator_py|>": 152095,
|
| 193 |
+
"<|conditional_expression_py -> conditional_expression_py|>": 151973,
|
| 194 |
+
"<|conditional_expression_py -> dictionary_comprehension_py|>": 151670,
|
| 195 |
+
"<|conditional_expression_py -> dictionary_py|>": 152405,
|
| 196 |
+
"<|conditional_expression_py -> else_ter|>": 151947,
|
| 197 |
+
"<|conditional_expression_py -> false_py|>": 152461,
|
| 198 |
+
"<|conditional_expression_py -> float_py|>": 152133,
|
| 199 |
+
"<|conditional_expression_py -> generator_expression_py|>": 152125,
|
| 200 |
+
"<|conditional_expression_py -> identifier_py|>": 151965,
|
| 201 |
+
"<|conditional_expression_py -> identifier_ter|>": 152023,
|
| 202 |
+
"<|conditional_expression_py -> if_ter|>": 152069,
|
| 203 |
+
"<|conditional_expression_py -> integer_py|>": 152106,
|
| 204 |
+
"<|conditional_expression_py -> lambda_py|>": 152000,
|
| 205 |
+
"<|conditional_expression_py -> list_comprehension_py|>": 152521,
|
| 206 |
+
"<|conditional_expression_py -> list_py|>": 152208,
|
| 207 |
+
"<|conditional_expression_py -> none_py|>": 152019,
|
| 208 |
+
"<|conditional_expression_py -> not_operator_py|>": 152373,
|
| 209 |
+
"<|conditional_expression_py -> parenthesized_expression_py|>": 152087,
|
| 210 |
+
"<|conditional_expression_py -> set_comprehension_py|>": 152229,
|
| 211 |
+
"<|conditional_expression_py -> set_py|>": 152516,
|
| 212 |
+
"<|conditional_expression_py -> string_literal_py|>": 152206,
|
| 213 |
+
"<|conditional_expression_py -> subscript_py|>": 152523,
|
| 214 |
+
"<|conditional_expression_py -> true_py|>": 151692,
|
| 215 |
+
"<|conditional_expression_py -> tuple_py|>": 152350,
|
| 216 |
+
"<|conditional_expression_py -> unary_operator_py|>": 151803,
|
| 217 |
+
"<|consequence_py -> block_py |>": 151972,
|
| 218 |
+
"<|consequence_py -> comment_py |>": 152480,
|
| 219 |
+
"<|continue_statement_py -> continue_ter |>": 151941,
|
| 220 |
+
"<|default_parameter_py -> name_py =_ter value_py |>": 152325,
|
| 221 |
+
"<|delete_statement_py -> del_ter attribute_py |>": 152449,
|
| 222 |
+
"<|delete_statement_py -> del_ter binary_operator_py |>": 152284,
|
| 223 |
+
"<|delete_statement_py -> del_ter call_py |>": 151868,
|
| 224 |
+
"<|delete_statement_py -> del_ter expression_list_py |>": 152030,
|
| 225 |
+
"<|delete_statement_py -> del_ter identifier_py |>": 152236,
|
| 226 |
+
"<|delete_statement_py -> del_ter parenthesized_expression_py |>": 152052,
|
| 227 |
+
"<|delete_statement_py -> del_ter subscript_py |>": 152162,
|
| 228 |
+
"<|delete_statement_py -> del_ter true_py |>": 151857,
|
| 229 |
+
"<|dictionary_comprehension_py -> End |>": 152036,
|
| 230 |
+
"<|dictionary_comprehension_py -> body_py|>": 152287,
|
| 231 |
+
"<|dictionary_comprehension_py -> for_in_clause_py|>": 151989,
|
| 232 |
+
"<|dictionary_comprehension_py -> if_clause_py|>": 151806,
|
| 233 |
+
"<|dictionary_comprehension_py -> {_ter|>": 152043,
|
| 234 |
+
"<|dictionary_comprehension_py -> }_ter|>": 152282,
|
| 235 |
+
"<|dictionary_py -> ,_ter|>": 151816,
|
| 236 |
+
"<|dictionary_py -> End |>": 151668,
|
| 237 |
+
"<|dictionary_py -> pair_py|>": 151779,
|
| 238 |
+
"<|dictionary_py -> {_ter|>": 152154,
|
| 239 |
+
"<|dictionary_py -> }_ter|>": 152286,
|
| 240 |
+
"<|dotted_name_py -> End |>": 151775,
|
| 241 |
+
"<|dotted_name_py -> identifier_py|>": 151996,
|
| 242 |
+
"<|elif_clause_py -> elif_ter condition_py :_ter consequence_py |>": 151922,
|
| 243 |
+
"<|else_clause_py -> else_ter :_ter body_py |>": 152179,
|
| 244 |
+
"<|endoftext|>": 151643,
|
| 245 |
+
"<|except_clause_py -> except_ter :_ter block_py |>": 152335,
|
| 246 |
+
"<|except_clause_py -> except_ter value_py :_ter block_py |>": 151952,
|
| 247 |
+
"<|except_clause_py -> except_ter value_py :_ter |>": 152333,
|
| 248 |
+
"<|expression_list_py -> ,_ter|>": 151889,
|
| 249 |
+
"<|expression_list_py -> End |>": 152411,
|
| 250 |
+
"<|expression_list_py -> attribute_py|>": 151804,
|
| 251 |
+
"<|expression_list_py -> binary_operator_py|>": 152281,
|
| 252 |
+
"<|expression_list_py -> boolean_operator_py|>": 152310,
|
| 253 |
+
"<|expression_list_py -> call_py|>": 151817,
|
| 254 |
+
"<|expression_list_py -> comparison_operator_py|>": 152502,
|
| 255 |
+
"<|expression_list_py -> conditional_expression_py|>": 151986,
|
| 256 |
+
"<|expression_list_py -> dictionary_comprehension_py|>": 151859,
|
| 257 |
+
"<|expression_list_py -> dictionary_py|>": 151901,
|
| 258 |
+
"<|expression_list_py -> false_py|>": 152009,
|
| 259 |
+
"<|expression_list_py -> float_py|>": 151755,
|
| 260 |
+
"<|expression_list_py -> generator_expression_py|>": 151678,
|
| 261 |
+
"<|expression_list_py -> identifier_py|>": 152510,
|
| 262 |
+
"<|expression_list_py -> identifier_ter|>": 152090,
|
| 263 |
+
"<|expression_list_py -> integer_py|>": 152083,
|
| 264 |
+
"<|expression_list_py -> lambda_py|>": 152256,
|
| 265 |
+
"<|expression_list_py -> list_comprehension_py|>": 152049,
|
| 266 |
+
"<|expression_list_py -> list_py|>": 151858,
|
| 267 |
+
"<|expression_list_py -> list_splat_py|>": 152470,
|
| 268 |
+
"<|expression_list_py -> none_py|>": 151959,
|
| 269 |
+
"<|expression_list_py -> not_operator_py|>": 152099,
|
| 270 |
+
"<|expression_list_py -> parenthesized_expression_py|>": 151908,
|
| 271 |
+
"<|expression_list_py -> set_comprehension_py|>": 152163,
|
| 272 |
+
"<|expression_list_py -> set_py|>": 152479,
|
| 273 |
+
"<|expression_list_py -> string_literal_py|>": 152372,
|
| 274 |
+
"<|expression_list_py -> subscript_py|>": 151736,
|
| 275 |
+
"<|expression_list_py -> true_py|>": 151975,
|
| 276 |
+
"<|expression_list_py -> tuple_py|>": 152475,
|
| 277 |
+
"<|expression_list_py -> unary_operator_py|>": 152317,
|
| 278 |
+
"<|expression_statement_py -> ,_ter|>": 151862,
|
| 279 |
+
"<|expression_statement_py -> End |>": 151983,
|
| 280 |
+
"<|expression_statement_py -> assignment_py|>": 152176,
|
| 281 |
+
"<|expression_statement_py -> attribute_py|>": 151777,
|
| 282 |
+
"<|expression_statement_py -> augmented_assignment_py|>": 152068,
|
| 283 |
+
"<|expression_statement_py -> binary_operator_py|>": 152357,
|
| 284 |
+
"<|expression_statement_py -> boolean_operator_py|>": 152183,
|
| 285 |
+
"<|expression_statement_py -> call_py|>": 151958,
|
| 286 |
+
"<|expression_statement_py -> comparison_operator_py|>": 151693,
|
| 287 |
+
"<|expression_statement_py -> conditional_expression_py|>": 152348,
|
| 288 |
+
"<|expression_statement_py -> dictionary_comprehension_py|>": 152147,
|
| 289 |
+
"<|expression_statement_py -> dictionary_py|>": 151938,
|
| 290 |
+
"<|expression_statement_py -> false_py|>": 151906,
|
| 291 |
+
"<|expression_statement_py -> float_py|>": 151763,
|
| 292 |
+
"<|expression_statement_py -> generator_expression_py|>": 151737,
|
| 293 |
+
"<|expression_statement_py -> identifier_py|>": 152248,
|
| 294 |
+
"<|expression_statement_py -> integer_py|>": 151799,
|
| 295 |
+
"<|expression_statement_py -> lambda_py|>": 152044,
|
| 296 |
+
"<|expression_statement_py -> list_comprehension_py|>": 152471,
|
| 297 |
+
"<|expression_statement_py -> list_py|>": 152453,
|
| 298 |
+
"<|expression_statement_py -> none_py|>": 152097,
|
| 299 |
+
"<|expression_statement_py -> not_operator_py|>": 151913,
|
| 300 |
+
"<|expression_statement_py -> parenthesized_expression_py|>": 151910,
|
| 301 |
+
"<|expression_statement_py -> set_comprehension_py|>": 152384,
|
| 302 |
+
"<|expression_statement_py -> set_py|>": 152219,
|
| 303 |
+
"<|expression_statement_py -> string_literal_py|>": 152239,
|
| 304 |
+
"<|expression_statement_py -> subscript_py|>": 152530,
|
| 305 |
+
"<|expression_statement_py -> true_py|>": 151866,
|
| 306 |
+
"<|expression_statement_py -> tuple_py|>": 152312,
|
| 307 |
+
"<|expression_statement_py -> unary_operator_py|>": 151821,
|
| 308 |
+
"<|expression_statement_py -> yield_py|>": 151770,
|
| 309 |
+
"<|false_py -> False_ter |>": 151818,
|
| 310 |
+
"<|file_sep|>": 151664,
|
| 311 |
+
"<|fim_middle|>": 151660,
|
| 312 |
+
"<|fim_pad|>": 151662,
|
| 313 |
+
"<|fim_prefix|>": 151659,
|
| 314 |
+
"<|fim_suffix|>": 151661,
|
| 315 |
+
"<|for_in_clause_py -> End |>": 151933,
|
| 316 |
+
"<|for_in_clause_py -> for_ter|>": 151805,
|
| 317 |
+
"<|for_in_clause_py -> in_ter|>": 152212,
|
| 318 |
+
"<|for_in_clause_py -> left_py|>": 151915,
|
| 319 |
+
"<|for_in_clause_py -> right_py|>": 151724,
|
| 320 |
+
"<|for_statement_py -> for_ter left_py in_ter right_py :_ter body_py alternative_py |>": 151999,
|
| 321 |
+
"<|for_statement_py -> for_ter left_py in_ter right_py :_ter body_py |>": 152063,
|
| 322 |
+
"<|function_definition_py -> def_ter name_py parameters_py ->_ter return_type_py :_ter body_py |>": 152039,
|
| 323 |
+
"<|function_definition_py -> def_ter name_py parameters_py :_ter body_py |>": 152291,
|
| 324 |
+
"<|function_py -> attribute_py |>": 152228,
|
| 325 |
+
"<|function_py -> call_py |>": 151730,
|
| 326 |
+
"<|function_py -> false_py |>": 152491,
|
| 327 |
+
"<|function_py -> identifier_py |>": 151759,
|
| 328 |
+
"<|function_py -> identifier_ter |>": 151891,
|
| 329 |
+
"<|function_py -> integer_py |>": 152222,
|
| 330 |
+
"<|function_py -> list_splat_py |>": 152102,
|
| 331 |
+
"<|function_py -> none_py |>": 152184,
|
| 332 |
+
"<|function_py -> parenthesized_expression_py |>": 151750,
|
| 333 |
+
"<|function_py -> subscript_py |>": 151824,
|
| 334 |
+
"<|function_py -> tuple_py |>": 151721,
|
| 335 |
+
"<|future_import_statement_py -> ,_ter|>": 151835,
|
| 336 |
+
"<|future_import_statement_py -> End |>": 152361,
|
| 337 |
+
"<|future_import_statement_py -> __future___ter|>": 152448,
|
| 338 |
+
"<|future_import_statement_py -> from_ter|>": 151801,
|
| 339 |
+
"<|future_import_statement_py -> import_ter|>": 151760,
|
| 340 |
+
"<|future_import_statement_py -> name_py|>": 152034,
|
| 341 |
+
"<|generator_expression_py -> (_ter|>": 152355,
|
| 342 |
+
"<|generator_expression_py -> )_ter|>": 152072,
|
| 343 |
+
"<|generator_expression_py -> End |>": 152492,
|
| 344 |
+
"<|generator_expression_py -> body_py|>": 151950,
|
| 345 |
+
"<|generator_expression_py -> for_in_clause_py|>": 152420,
|
| 346 |
+
"<|generator_expression_py -> if_clause_py|>": 152098,
|
| 347 |
+
"<|generic_type_py -> identifier_py type_parameter_py |>": 151925,
|
| 348 |
+
"<|if_clause_py -> if_ter attribute_py |>": 151789,
|
| 349 |
+
"<|if_clause_py -> if_ter binary_operator_py |>": 151873,
|
| 350 |
+
"<|if_clause_py -> if_ter boolean_operator_py |>": 151783,
|
| 351 |
+
"<|if_clause_py -> if_ter call_py |>": 151847,
|
| 352 |
+
"<|if_clause_py -> if_ter comparison_operator_py |>": 152536,
|
| 353 |
+
"<|if_clause_py -> if_ter false_py |>": 152240,
|
| 354 |
+
"<|if_clause_py -> if_ter identifier_py |>": 152537,
|
| 355 |
+
"<|if_clause_py -> if_ter identifier_ter |>": 151875,
|
| 356 |
+
"<|if_clause_py -> if_ter list_comprehension_py |>": 152226,
|
| 357 |
+
"<|if_clause_py -> if_ter not_operator_py |>": 151812,
|
| 358 |
+
"<|if_clause_py -> if_ter parenthesized_expression_py |>": 152213,
|
| 359 |
+
"<|if_clause_py -> if_ter subscript_py |>": 152126,
|
| 360 |
+
"<|if_statement_py -> :_ter|>": 152235,
|
| 361 |
+
"<|if_statement_py -> End |>": 152128,
|
| 362 |
+
"<|if_statement_py -> alternative_py|>": 152161,
|
| 363 |
+
"<|if_statement_py -> condition_py|>": 151788,
|
| 364 |
+
"<|if_statement_py -> consequence_py|>": 152137,
|
| 365 |
+
"<|if_statement_py -> if_ter|>": 152508,
|
| 366 |
+
"<|im_end|>": 151645,
|
| 367 |
+
"<|im_start|>": 151644,
|
| 368 |
+
"<|image_pad|>": 151655,
|
| 369 |
+
"<|import_from_statement_py -> ,_ter|>": 152195,
|
| 370 |
+
"<|import_from_statement_py -> End |>": 152258,
|
| 371 |
+
"<|import_from_statement_py -> from_ter|>": 151854,
|
| 372 |
+
"<|import_from_statement_py -> import_ter|>": 152169,
|
| 373 |
+
"<|import_from_statement_py -> module_name_py|>": 152180,
|
| 374 |
+
"<|import_from_statement_py -> name_py|>": 152288,
|
| 375 |
+
"<|import_statement_py -> ,_ter|>": 152503,
|
| 376 |
+
"<|import_statement_py -> End |>": 152481,
|
| 377 |
+
"<|import_statement_py -> import_ter|>": 152376,
|
| 378 |
+
"<|import_statement_py -> name_py|>": 152143,
|
| 379 |
+
"<|is_not_py -> is_ter not_ter |>": 151935,
|
| 380 |
+
"<|key_py -> attribute_py |>": 152200,
|
| 381 |
+
"<|key_py -> binary_operator_py |>": 152189,
|
| 382 |
+
"<|key_py -> boolean_operator_py |>": 152463,
|
| 383 |
+
"<|key_py -> call_py |>": 152253,
|
| 384 |
+
"<|key_py -> comparison_operator_py |>": 151691,
|
| 385 |
+
"<|key_py -> conditional_expression_py |>": 151905,
|
| 386 |
+
"<|key_py -> dictionary_py |>": 152012,
|
| 387 |
+
"<|key_py -> false_py |>": 151855,
|
| 388 |
+
"<|key_py -> float_py |>": 152096,
|
| 389 |
+
"<|key_py -> identifier_py |>": 151960,
|
| 390 |
+
"<|key_py -> identifier_ter |>": 152469,
|
| 391 |
+
"<|key_py -> integer_py |>": 152028,
|
| 392 |
+
"<|key_py -> lambda_py |>": 152294,
|
| 393 |
+
"<|key_py -> list_py |>": 151985,
|
| 394 |
+
"<|key_py -> none_py |>": 151711,
|
| 395 |
+
"<|key_py -> parenthesized_expression_py |>": 152238,
|
| 396 |
+
"<|key_py -> set_py |>": 151853,
|
| 397 |
+
"<|key_py -> string_literal_py |>": 152050,
|
| 398 |
+
"<|key_py -> subscript_py |>": 151749,
|
| 399 |
+
"<|key_py -> true_py |>": 152395,
|
| 400 |
+
"<|key_py -> tuple_py |>": 151839,
|
| 401 |
+
"<|key_py -> unary_operator_py |>": 152524,
|
| 402 |
+
"<|keyword_argument_py -> name_py =_ter value_py |>": 152406,
|
| 403 |
+
"<|lambda_parameters_py -> ,_ter|>": 151844,
|
| 404 |
+
"<|lambda_parameters_py -> End |>": 152191,
|
| 405 |
+
"<|lambda_parameters_py -> default_parameter_py|>": 152091,
|
| 406 |
+
"<|lambda_parameters_py -> identifier_py|>": 151860,
|
| 407 |
+
"<|lambda_parameters_py -> identifier_ter|>": 151842,
|
| 408 |
+
"<|lambda_py -> lambda_ter :_ter body_py |>": 151773,
|
| 409 |
+
"<|lambda_py -> lambda_ter parameters_py :_ter body_py |>": 152432,
|
| 410 |
+
"<|left_py -> attribute_py |>": 151893,
|
| 411 |
+
"<|left_py -> binary_operator_py |>": 151907,
|
| 412 |
+
"<|left_py -> boolean_operator_py |>": 152321,
|
| 413 |
+
"<|left_py -> call_py |>": 152366,
|
| 414 |
+
"<|left_py -> comparison_operator_py |>": 151871,
|
| 415 |
+
"<|left_py -> dictionary_comprehension_py |>": 151667,
|
| 416 |
+
"<|left_py -> dictionary_py |>": 152337,
|
| 417 |
+
"<|left_py -> false_py |>": 152302,
|
| 418 |
+
"<|left_py -> float_py |>": 152233,
|
| 419 |
+
"<|left_py -> generator_expression_py |>": 151917,
|
| 420 |
+
"<|left_py -> identifier_py |>": 152029,
|
| 421 |
+
"<|left_py -> identifier_ter |>": 152224,
|
| 422 |
+
"<|left_py -> integer_py |>": 151830,
|
| 423 |
+
"<|left_py -> list_comprehension_py |>": 152297,
|
| 424 |
+
"<|left_py -> list_py |>": 151782,
|
| 425 |
+
"<|left_py -> none_py |>": 152174,
|
| 426 |
+
"<|left_py -> not_operator_py |>": 152439,
|
| 427 |
+
"<|left_py -> parenthesized_expression_py |>": 152127,
|
| 428 |
+
"<|left_py -> pattern_list_py |>": 151765,
|
| 429 |
+
"<|left_py -> set_comprehension_py |>": 152016,
|
| 430 |
+
"<|left_py -> set_py |>": 151790,
|
| 431 |
+
"<|left_py -> string_literal_py |>": 152444,
|
| 432 |
+
"<|left_py -> subscript_py |>": 152345,
|
| 433 |
+
"<|left_py -> true_py |>": 152057,
|
| 434 |
+
"<|left_py -> tuple_pattern_py |>": 152199,
|
| 435 |
+
"<|left_py -> tuple_py |>": 151838,
|
| 436 |
+
"<|left_py -> type_py |>": 152349,
|
| 437 |
+
"<|left_py -> unary_operator_py |>": 151810,
|
| 438 |
+
"<|list_comprehension_py -> End |>": 152391,
|
| 439 |
+
"<|list_comprehension_py -> [_ter|>": 151845,
|
| 440 |
+
"<|list_comprehension_py -> ]_ter|>": 151780,
|
| 441 |
+
"<|list_comprehension_py -> body_py|>": 152056,
|
| 442 |
+
"<|list_comprehension_py -> for_in_clause_py|>": 151826,
|
| 443 |
+
"<|list_comprehension_py -> if_clause_py|>": 152528,
|
| 444 |
+
"<|list_py -> ,_ter|>": 152198,
|
| 445 |
+
"<|list_py -> End |>": 151991,
|
| 446 |
+
"<|list_py -> [_ter|>": 151709,
|
| 447 |
+
"<|list_py -> ]_ter|>": 152414,
|
| 448 |
+
"<|list_py -> attribute_py|>": 151728,
|
| 449 |
+
"<|list_py -> binary_operator_py|>": 151872,
|
| 450 |
+
"<|list_py -> boolean_operator_py|>": 152460,
|
| 451 |
+
"<|list_py -> call_py|>": 151937,
|
| 452 |
+
"<|list_py -> comparison_operator_py|>": 152389,
|
| 453 |
+
"<|list_py -> conditional_expression_py|>": 152353,
|
| 454 |
+
"<|list_py -> dictionary_comprehension_py|>": 151980,
|
| 455 |
+
"<|list_py -> dictionary_py|>": 151885,
|
| 456 |
+
"<|list_py -> false_py|>": 152482,
|
| 457 |
+
"<|list_py -> float_py|>": 152058,
|
| 458 |
+
"<|list_py -> generator_expression_py|>": 151863,
|
| 459 |
+
"<|list_py -> identifier_py|>": 152364,
|
| 460 |
+
"<|list_py -> identifier_ter|>": 152304,
|
| 461 |
+
"<|list_py -> integer_py|>": 152458,
|
| 462 |
+
"<|list_py -> lambda_py|>": 152084,
|
| 463 |
+
"<|list_py -> list_comprehension_py|>": 151919,
|
| 464 |
+
"<|list_py -> list_py|>": 151865,
|
| 465 |
+
"<|list_py -> list_splat_py|>": 151698,
|
| 466 |
+
"<|list_py -> none_py|>": 151784,
|
| 467 |
+
"<|list_py -> not_operator_py|>": 151713,
|
| 468 |
+
"<|list_py -> parenthesized_expression_py|>": 151823,
|
| 469 |
+
"<|list_py -> set_comprehension_py|>": 152424,
|
| 470 |
+
"<|list_py -> set_py|>": 152278,
|
| 471 |
+
"<|list_py -> string_literal_py|>": 151738,
|
| 472 |
+
"<|list_py -> subscript_py|>": 151752,
|
| 473 |
+
"<|list_py -> true_py|>": 152008,
|
| 474 |
+
"<|list_py -> tuple_py|>": 151840,
|
| 475 |
+
"<|list_py -> unary_operator_py|>": 151896,
|
| 476 |
+
"<|list_splat_pattern_py -> *_ter attribute_py |>": 151874,
|
| 477 |
+
"<|list_splat_py -> *_ter attribute_py |>": 152344,
|
| 478 |
+
"<|list_splat_py -> *_ter binary_operator_py |>": 152285,
|
| 479 |
+
"<|list_splat_py -> *_ter boolean_operator_py |>": 152401,
|
| 480 |
+
"<|list_splat_py -> *_ter call_py |>": 152041,
|
| 481 |
+
"<|list_splat_py -> *_ter identifier_py |>": 152207,
|
| 482 |
+
"<|list_splat_py -> *_ter subscript_py |>": 152073,
|
| 483 |
+
"<|module_name_py -> dotted_name_py |>": 151903,
|
| 484 |
+
"<|module_py -> ;_ter|>": 152211,
|
| 485 |
+
"<|module_py -> End |>": 152064,
|
| 486 |
+
"<|module_py -> assert_statement_py|>": 152201,
|
| 487 |
+
"<|module_py -> break_statement_py|>": 151732,
|
| 488 |
+
"<|module_py -> class_definition_py|>": 152526,
|
| 489 |
+
"<|module_py -> delete_statement_py|>": 152329,
|
| 490 |
+
"<|module_py -> expression_statement_py|>": 152142,
|
| 491 |
+
"<|module_py -> for_statement_py|>": 151934,
|
| 492 |
+
"<|module_py -> function_definition_py|>": 151757,
|
| 493 |
+
"<|module_py -> future_import_statement_py|>": 152529,
|
| 494 |
+
"<|module_py -> if_statement_py|>": 151787,
|
| 495 |
+
"<|module_py -> import_from_statement_py|>": 152242,
|
| 496 |
+
"<|module_py -> import_statement_py|>": 152270,
|
| 497 |
+
"<|module_py -> pass_statement_py|>": 151772,
|
| 498 |
+
"<|module_py -> print_statement_py|>": 151764,
|
| 499 |
+
"<|module_py -> return_statement_py|>": 152343,
|
| 500 |
+
"<|module_py -> try_statement_py|>": 152330,
|
| 501 |
+
"<|module_py -> type_alias_statement_py|>": 151792,
|
| 502 |
+
"<|module_py -> while_statement_py|>": 151834,
|
| 503 |
+
"<|name_py -> aliased_import_py |>": 151694,
|
| 504 |
+
"<|name_py -> dotted_name_py |>": 152150,
|
| 505 |
+
"<|name_py -> identifier_py |>": 151828,
|
| 506 |
+
"<|name_py -> identifier_ter |>": 152425,
|
| 507 |
+
"<|none_py -> None_ter |>": 151751,
|
| 508 |
+
"<|not_in_py -> not_ter in_ter |>": 152472,
|
| 509 |
+
"<|not_operator_py -> not_ter argument_py |>": 151928,
|
| 510 |
+
"<|object_py -> attribute_py |>": 152155,
|
| 511 |
+
"<|object_py -> call_py |>": 152100,
|
| 512 |
+
"<|object_py -> dictionary_comprehension_py |>": 152116,
|
| 513 |
+
"<|object_py -> dictionary_py |>": 152237,
|
| 514 |
+
"<|object_py -> float_py |>": 151888,
|
| 515 |
+
"<|object_py -> generator_expression_py |>": 152445,
|
| 516 |
+
"<|object_py -> identifier_py |>": 152190,
|
| 517 |
+
"<|object_py -> identifier_ter |>": 152265,
|
| 518 |
+
"<|object_py -> integer_py |>": 152339,
|
| 519 |
+
"<|object_py -> list_comprehension_py |>": 152160,
|
| 520 |
+
"<|object_py -> list_py |>": 151781,
|
| 521 |
+
"<|object_py -> list_splat_py |>": 152119,
|
| 522 |
+
"<|object_py -> none_py |>": 152024,
|
| 523 |
+
"<|object_py -> parenthesized_expression_py |>": 152196,
|
| 524 |
+
"<|object_py -> set_comprehension_py |>": 152418,
|
| 525 |
+
"<|object_py -> set_py |>": 152477,
|
| 526 |
+
"<|object_py -> string_literal_py |>": 151705,
|
| 527 |
+
"<|object_py -> subscript_py |>": 151977,
|
| 528 |
+
"<|object_py -> tuple_py |>": 152217,
|
| 529 |
+
"<|object_ref_end|>": 151647,
|
| 530 |
+
"<|object_ref_start|>": 151646,
|
| 531 |
+
"<|operator_py -> %=_ter |>": 152159,
|
| 532 |
+
"<|operator_py -> %_ter |>": 151734,
|
| 533 |
+
"<|operator_py -> &_ter |>": 152114,
|
| 534 |
+
"<|operator_py -> **_ter |>": 152139,
|
| 535 |
+
"<|operator_py -> *=_ter |>": 151849,
|
| 536 |
+
"<|operator_py -> *_ter |>": 152499,
|
| 537 |
+
"<|operator_py -> +=_ter |>": 152394,
|
| 538 |
+
"<|operator_py -> +_ter |>": 152374,
|
| 539 |
+
"<|operator_py -> -=_ter |>": 152210,
|
| 540 |
+
"<|operator_py -> -_ter |>": 152080,
|
| 541 |
+
"<|operator_py -> //=_ter |>": 152289,
|
| 542 |
+
"<|operator_py -> //_ter |>": 152392,
|
| 543 |
+
"<|operator_py -> /=_ter |>": 152140,
|
| 544 |
+
"<|operator_py -> /_ter |>": 152396,
|
| 545 |
+
"<|operator_py -> <<=_ter |>": 152450,
|
| 546 |
+
"<|operator_py -> <<_ter |>": 152053,
|
| 547 |
+
"<|operator_py -> >>=_ter |>": 152336,
|
| 548 |
+
"<|operator_py -> >>_ter |>": 151683,
|
| 549 |
+
"<|operator_py -> ^_ter |>": 152141,
|
| 550 |
+
"<|operator_py -> and_ter |>": 151735,
|
| 551 |
+
"<|operator_py -> or_ter |>": 152328,
|
| 552 |
+
"<|operator_py -> |=_ter |>": 152078,
|
| 553 |
+
"<|operator_py -> |_ter |>": 151726,
|
| 554 |
+
"<|operator_py -> ~_ter |>": 151864,
|
| 555 |
+
"<|operators_py -> !=_ter |>": 151880,
|
| 556 |
+
"<|operators_py -> <=_ter |>": 151676,
|
| 557 |
+
"<|operators_py -> <_ter |>": 152468,
|
| 558 |
+
"<|operators_py -> ==_ter |>": 152399,
|
| 559 |
+
"<|operators_py -> >=_ter |>": 152167,
|
| 560 |
+
"<|operators_py -> >_ter |>": 152434,
|
| 561 |
+
"<|operators_py -> in_ter |>": 152377,
|
| 562 |
+
"<|operators_py -> is_not_py |>": 151898,
|
| 563 |
+
"<|operators_py -> is_ter |>": 152117,
|
| 564 |
+
"<|operators_py -> not_in_py |>": 152531,
|
| 565 |
+
"<|pair_py -> key_py :_ter value_py |>": 151681,
|
| 566 |
+
"<|parameters_py -> (_ter|>": 151731,
|
| 567 |
+
"<|parameters_py -> )_ter|>": 151714,
|
| 568 |
+
"<|parameters_py -> ,_ter|>": 152040,
|
| 569 |
+
"<|parameters_py -> End |>": 152370,
|
| 570 |
+
"<|parameters_py -> default_parameter_py|>": 152197,
|
| 571 |
+
"<|parameters_py -> identifier_py|>": 152308,
|
| 572 |
+
"<|parameters_py -> identifier_ter|>": 152070,
|
| 573 |
+
"<|parameters_py -> lambda_parameters_py|>": 152520,
|
| 574 |
+
"<|parameters_py -> parameters_py|>": 152082,
|
| 575 |
+
"<|parameters_py -> typed_parameter_py|>": 151998,
|
| 576 |
+
"<|parenthesized_expression_py -> (_ter attribute_py )_ter |>": 151665,
|
| 577 |
+
"<|parenthesized_expression_py -> (_ter binary_operator_py )_ter |>": 152185,
|
| 578 |
+
"<|parenthesized_expression_py -> (_ter boolean_operator_py )_ter |>": 151716,
|
| 579 |
+
"<|parenthesized_expression_py -> (_ter call_py )_ter |>": 152397,
|
| 580 |
+
"<|parenthesized_expression_py -> (_ter comparison_operator_py )_ter |>": 152136,
|
| 581 |
+
"<|parenthesized_expression_py -> (_ter conditional_expression_py )_ter |>": 151887,
|
| 582 |
+
"<|parenthesized_expression_py -> (_ter dictionary_comprehension_py )_ter |>": 151715,
|
| 583 |
+
"<|parenthesized_expression_py -> (_ter dictionary_py )_ter |>": 152234,
|
| 584 |
+
"<|parenthesized_expression_py -> (_ter false_py )_ter |>": 151677,
|
| 585 |
+
"<|parenthesized_expression_py -> (_ter float_py )_ter |>": 152493,
|
| 586 |
+
"<|parenthesized_expression_py -> (_ter identifier_py )_ter |>": 151861,
|
| 587 |
+
"<|parenthesized_expression_py -> (_ter integer_py )_ter |>": 152332,
|
| 588 |
+
"<|parenthesized_expression_py -> (_ter lambda_py )_ter |>": 152398,
|
| 589 |
+
"<|parenthesized_expression_py -> (_ter list_comprehension_py )_ter |>": 151833,
|
| 590 |
+
"<|parenthesized_expression_py -> (_ter list_py )_ter |>": 152193,
|
| 591 |
+
"<|parenthesized_expression_py -> (_ter not_operator_py )_ter |>": 152507,
|
| 592 |
+
"<|parenthesized_expression_py -> (_ter parenthesized_expression_py )_ter |>": 151981,
|
| 593 |
+
"<|parenthesized_expression_py -> (_ter set_py )_ter |>": 152266,
|
| 594 |
+
"<|parenthesized_expression_py -> (_ter string_literal_py )_ter |>": 151967,
|
| 595 |
+
"<|parenthesized_expression_py -> (_ter subscript_py )_ter |>": 151774,
|
| 596 |
+
"<|parenthesized_expression_py -> (_ter true_py )_ter |>": 152305,
|
| 597 |
+
"<|parenthesized_expression_py -> (_ter tuple_py )_ter |>": 152168,
|
| 598 |
+
"<|parenthesized_expression_py -> (_ter unary_operator_py )_ter |>": 151976,
|
| 599 |
+
"<|parenthesized_expression_py -> (_ter yield_py )_ter |>": 151890,
|
| 600 |
+
"<|pass_statement_py -> pass_ter |>": 152152,
|
| 601 |
+
"<|pattern_list_py -> ,_ter|>": 152214,
|
| 602 |
+
"<|pattern_list_py -> End |>": 152042,
|
| 603 |
+
"<|pattern_list_py -> attribute_py|>": 152262,
|
| 604 |
+
"<|pattern_list_py -> identifier_py|>": 152031,
|
| 605 |
+
"<|pattern_list_py -> identifier_ter|>": 152412,
|
| 606 |
+
"<|pattern_list_py -> list_splat_pattern_py|>": 151990,
|
| 607 |
+
"<|pattern_list_py -> subscript_py|>": 151776,
|
| 608 |
+
"<|pattern_list_py -> tuple_pattern_py|>": 152079,
|
| 609 |
+
"<|print_statement_py -> ,_ter|>": 151727,
|
| 610 |
+
"<|print_statement_py -> End |>": 152173,
|
| 611 |
+
"<|print_statement_py -> argument_py|>": 151929,
|
| 612 |
+
"<|print_statement_py -> chevron_py|>": 151753,
|
| 613 |
+
"<|print_statement_py -> print_ter|>": 152243,
|
| 614 |
+
"<|python -> module_py |>": 152274,
|
| 615 |
+
"<|python -> module_ter |>": 151796,
|
| 616 |
+
"<|quad_end|>": 151651,
|
| 617 |
+
"<|quad_start|>": 151650,
|
| 618 |
+
"<|raise_statement_py -> raise_ter |>": 151723,
|
| 619 |
+
"<|repo_name|>": 151663,
|
| 620 |
+
"<|return_statement_py -> return_ter attribute_py |>": 152188,
|
| 621 |
+
"<|return_statement_py -> return_ter binary_operator_py |>": 151754,
|
| 622 |
+
"<|return_statement_py -> return_ter boolean_operator_py |>": 152295,
|
| 623 |
+
"<|return_statement_py -> return_ter call_py |>": 152429,
|
| 624 |
+
"<|return_statement_py -> return_ter comparison_operator_py |>": 152375,
|
| 625 |
+
"<|return_statement_py -> return_ter conditional_expression_py |>": 152473,
|
| 626 |
+
"<|return_statement_py -> return_ter dictionary_comprehension_py |>": 151997,
|
| 627 |
+
"<|return_statement_py -> return_ter dictionary_py |>": 151825,
|
| 628 |
+
"<|return_statement_py -> return_ter expression_list_py |>": 151671,
|
| 629 |
+
"<|return_statement_py -> return_ter false_py |>": 152522,
|
| 630 |
+
"<|return_statement_py -> return_ter float_py |>": 152292,
|
| 631 |
+
"<|return_statement_py -> return_ter generator_expression_py |>": 151918,
|
| 632 |
+
"<|return_statement_py -> return_ter identifier_py |>": 152062,
|
| 633 |
+
"<|return_statement_py -> return_ter identifier_ter |>": 152410,
|
| 634 |
+
"<|return_statement_py -> return_ter integer_py |>": 151892,
|
| 635 |
+
"<|return_statement_py -> return_ter lambda_py |>": 152324,
|
| 636 |
+
"<|return_statement_py -> return_ter list_comprehension_py |>": 152539,
|
| 637 |
+
"<|return_statement_py -> return_ter list_py |>": 152025,
|
| 638 |
+
"<|return_statement_py -> return_ter list_splat_py |>": 151945,
|
| 639 |
+
"<|return_statement_py -> return_ter none_py |>": 152437,
|
| 640 |
+
"<|return_statement_py -> return_ter not_operator_py |>": 152015,
|
| 641 |
+
"<|return_statement_py -> return_ter parenthesized_expression_py |>": 152246,
|
| 642 |
+
"<|return_statement_py -> return_ter set_comprehension_py |>": 151802,
|
| 643 |
+
"<|return_statement_py -> return_ter set_py |>": 152513,
|
| 644 |
+
"<|return_statement_py -> return_ter string_literal_py |>": 151954,
|
| 645 |
+
"<|return_statement_py -> return_ter subscript_py |>": 152504,
|
| 646 |
+
"<|return_statement_py -> return_ter true_py |>": 151769,
|
| 647 |
+
"<|return_statement_py -> return_ter tuple_py |>": 151921,
|
| 648 |
+
"<|return_statement_py -> return_ter unary_operator_py |>": 152149,
|
| 649 |
+
"<|return_statement_py -> return_ter |>": 152093,
|
| 650 |
+
"<|return_type_py -> type_py |>": 152441,
|
| 651 |
+
"<|right_py -> assignment_py |>": 152075,
|
| 652 |
+
"<|right_py -> attribute_py |>": 151743,
|
| 653 |
+
"<|right_py -> binary_operator_py |>": 152403,
|
| 654 |
+
"<|right_py -> boolean_operator_py |>": 152081,
|
| 655 |
+
"<|right_py -> call_py |>": 151680,
|
| 656 |
+
"<|right_py -> comparison_operator_py |>": 151870,
|
| 657 |
+
"<|right_py -> conditional_expression_py |>": 152451,
|
| 658 |
+
"<|right_py -> dictionary_comprehension_py |>": 152402,
|
| 659 |
+
"<|right_py -> dictionary_py |>": 152313,
|
| 660 |
+
"<|right_py -> expression_list_py |>": 152055,
|
| 661 |
+
"<|right_py -> false_py |>": 151696,
|
| 662 |
+
"<|right_py -> float_py |>": 151942,
|
| 663 |
+
"<|right_py -> generator_expression_py |>": 151688,
|
| 664 |
+
"<|right_py -> identifier_py |>": 151879,
|
| 665 |
+
"<|right_py -> identifier_ter |>": 151814,
|
| 666 |
+
"<|right_py -> integer_py |>": 151785,
|
| 667 |
+
"<|right_py -> lambda_py |>": 151766,
|
| 668 |
+
"<|right_py -> list_comprehension_py |>": 152273,
|
| 669 |
+
"<|right_py -> list_py |>": 152129,
|
| 670 |
+
"<|right_py -> list_splat_py |>": 151904,
|
| 671 |
+
"<|right_py -> none_py |>": 151856,
|
| 672 |
+
"<|right_py -> not_operator_py |>": 152358,
|
| 673 |
+
"<|right_py -> parenthesized_expression_py |>": 152144,
|
| 674 |
+
"<|right_py -> pattern_list_py |>": 152092,
|
| 675 |
+
"<|right_py -> set_comprehension_py |>": 151911,
|
| 676 |
+
"<|right_py -> set_py |>": 151682,
|
| 677 |
+
"<|right_py -> string_literal_py |>": 152094,
|
| 678 |
+
"<|right_py -> subscript_py |>": 152138,
|
| 679 |
+
"<|right_py -> true_py |>": 152342,
|
| 680 |
+
"<|right_py -> tuple_py |>": 151926,
|
| 681 |
+
"<|right_py -> type_py |>": 152216,
|
| 682 |
+
"<|right_py -> unary_operator_py |>": 151684,
|
| 683 |
+
"<|right_py -> yield_py |>": 152293,
|
| 684 |
+
"<|set_comprehension_py -> End |>": 151809,
|
| 685 |
+
"<|set_comprehension_py -> body_py|>": 151988,
|
| 686 |
+
"<|set_comprehension_py -> for_in_clause_py|>": 152134,
|
| 687 |
+
"<|set_comprehension_py -> if_clause_py|>": 152380,
|
| 688 |
+
"<|set_comprehension_py -> {_ter|>": 151704,
|
| 689 |
+
"<|set_comprehension_py -> }_ter|>": 152440,
|
| 690 |
+
"<|set_py -> ,_ter|>": 151811,
|
| 691 |
+
"<|set_py -> End |>": 152505,
|
| 692 |
+
"<|set_py -> attribute_py|>": 151841,
|
| 693 |
+
"<|set_py -> binary_operator_py|>": 152171,
|
| 694 |
+
"<|set_py -> call_py|>": 152077,
|
| 695 |
+
"<|set_py -> comparison_operator_py|>": 151943,
|
| 696 |
+
"<|set_py -> conditional_expression_py|>": 152338,
|
| 697 |
+
"<|set_py -> dictionary_py|>": 152490,
|
| 698 |
+
"<|set_py -> false_py|>": 152014,
|
| 699 |
+
"<|set_py -> float_py|>": 151815,
|
| 700 |
+
"<|set_py -> identifier_py|>": 151672,
|
| 701 |
+
"<|set_py -> integer_py|>": 152225,
|
| 702 |
+
"<|set_py -> lambda_py|>": 152323,
|
| 703 |
+
"<|set_py -> list_py|>": 152404,
|
| 704 |
+
"<|set_py -> list_splat_py|>": 151720,
|
| 705 |
+
"<|set_py -> none_py|>": 151836,
|
| 706 |
+
"<|set_py -> parenthesized_expression_py|>": 152130,
|
| 707 |
+
"<|set_py -> set_py|>": 152051,
|
| 708 |
+
"<|set_py -> string_literal_py|>": 152484,
|
| 709 |
+
"<|set_py -> subscript_py|>": 151966,
|
| 710 |
+
"<|set_py -> true_py|>": 152511,
|
| 711 |
+
"<|set_py -> tuple_py|>": 152365,
|
| 712 |
+
"<|set_py -> unary_operator_py|>": 151756,
|
| 713 |
+
"<|set_py -> {_ter|>": 152427,
|
| 714 |
+
"<|set_py -> }_ter|>": 151927,
|
| 715 |
+
"<|slice_py -> :_ter|>": 152494,
|
| 716 |
+
"<|slice_py -> End |>": 152032,
|
| 717 |
+
"<|slice_py -> attribute_py|>": 152303,
|
| 718 |
+
"<|slice_py -> binary_operator_py|>": 152497,
|
| 719 |
+
"<|slice_py -> boolean_operator_py|>": 152301,
|
| 720 |
+
"<|slice_py -> call_py|>": 152227,
|
| 721 |
+
"<|slice_py -> conditional_expression_py|>": 152124,
|
| 722 |
+
"<|slice_py -> identifier_py|>": 152215,
|
| 723 |
+
"<|slice_py -> integer_py|>": 152252,
|
| 724 |
+
"<|slice_py -> none_py|>": 152006,
|
| 725 |
+
"<|slice_py -> parenthesized_expression_py|>": 152209,
|
| 726 |
+
"<|slice_py -> string_literal_py|>": 152118,
|
| 727 |
+
"<|slice_py -> subscript_py|>": 152299,
|
| 728 |
+
"<|slice_py -> unary_operator_py|>": 152489,
|
| 729 |
+
"<|start -> python|>": 152298,
|
| 730 |
+
"<|string_literal_py -> End|>": 152476,
|
| 731 |
+
"<|subscript_py -> End |>": 152020,
|
| 732 |
+
"<|subscript_py -> [_ter|>": 151946,
|
| 733 |
+
"<|subscript_py -> ]_ter|>": 151940,
|
| 734 |
+
"<|subscript_py -> attribute_py|>": 152416,
|
| 735 |
+
"<|subscript_py -> binary_operator_py|>": 152415,
|
| 736 |
+
"<|subscript_py -> boolean_operator_py|>": 152352,
|
| 737 |
+
"<|subscript_py -> call_py|>": 152101,
|
| 738 |
+
"<|subscript_py -> comparison_operator_py|>": 152218,
|
| 739 |
+
"<|subscript_py -> conditional_expression_py|>": 151867,
|
| 740 |
+
"<|subscript_py -> dictionary_py|>": 152005,
|
| 741 |
+
"<|subscript_py -> false_py|>": 151702,
|
| 742 |
+
"<|subscript_py -> float_py|>": 151881,
|
| 743 |
+
"<|subscript_py -> generator_expression_py|>": 152108,
|
| 744 |
+
"<|subscript_py -> identifier_py|>": 152148,
|
| 745 |
+
"<|subscript_py -> identifier_ter|>": 151978,
|
| 746 |
+
"<|subscript_py -> integer_py|>": 152272,
|
| 747 |
+
"<|subscript_py -> lambda_py|>": 152506,
|
| 748 |
+
"<|subscript_py -> list_comprehension_py|>": 152204,
|
| 749 |
+
"<|subscript_py -> list_py|>": 152001,
|
| 750 |
+
"<|subscript_py -> none_py|>": 151813,
|
| 751 |
+
"<|subscript_py -> not_operator_py|>": 152362,
|
| 752 |
+
"<|subscript_py -> parenthesized_expression_py|>": 152316,
|
| 753 |
+
"<|subscript_py -> set_py|>": 152386,
|
| 754 |
+
"<|subscript_py -> slice_py|>": 151848,
|
| 755 |
+
"<|subscript_py -> string_literal_py|>": 152220,
|
| 756 |
+
"<|subscript_py -> subscript_py|>": 151894,
|
| 757 |
+
"<|subscript_py -> true_py|>": 151708,
|
| 758 |
+
"<|subscript_py -> tuple_py|>": 152419,
|
| 759 |
+
"<|subscript_py -> unary_operator_py|>": 151987,
|
| 760 |
+
"<|subscript_py -> value_py|>": 151725,
|
| 761 |
+
"<|superclasses_py -> argument_list_py |>": 151899,
|
| 762 |
+
"<|true_py -> True_ter |>": 151747,
|
| 763 |
+
"<|try_statement_py -> :_ter|>": 151706,
|
| 764 |
+
"<|try_statement_py -> End |>": 151982,
|
| 765 |
+
"<|try_statement_py -> body_py|>": 152383,
|
| 766 |
+
"<|try_statement_py -> except_clause_py|>": 152500,
|
| 767 |
+
"<|try_statement_py -> try_ter|>": 151850,
|
| 768 |
+
"<|tuple_pattern_py -> (_ter|>": 152121,
|
| 769 |
+
"<|tuple_pattern_py -> )_ter|>": 152277,
|
| 770 |
+
"<|tuple_pattern_py -> ,_ter|>": 151920,
|
| 771 |
+
"<|tuple_pattern_py -> End |>": 152267,
|
| 772 |
+
"<|tuple_pattern_py -> attribute_py|>": 152535,
|
| 773 |
+
"<|tuple_pattern_py -> identifier_py|>": 152371,
|
| 774 |
+
"<|tuple_pattern_py -> identifier_ter|>": 152541,
|
| 775 |
+
"<|tuple_pattern_py -> subscript_py|>": 152417,
|
| 776 |
+
"<|tuple_pattern_py -> tuple_pattern_py|>": 152249,
|
| 777 |
+
"<|tuple_py -> (_ter|>": 152254,
|
| 778 |
+
"<|tuple_py -> )_ter|>": 152076,
|
| 779 |
+
"<|tuple_py -> ,_ter|>": 151829,
|
| 780 |
+
"<|tuple_py -> End |>": 151909,
|
| 781 |
+
"<|tuple_py -> attribute_py|>": 152132,
|
| 782 |
+
"<|tuple_py -> binary_operator_py|>": 152501,
|
| 783 |
+
"<|tuple_py -> boolean_operator_py|>": 152360,
|
| 784 |
+
"<|tuple_py -> call_py|>": 152331,
|
| 785 |
+
"<|tuple_py -> comparison_operator_py|>": 152013,
|
| 786 |
+
"<|tuple_py -> conditional_expression_py|>": 151689,
|
| 787 |
+
"<|tuple_py -> dictionary_comprehension_py|>": 151687,
|
| 788 |
+
"<|tuple_py -> dictionary_py|>": 152462,
|
| 789 |
+
"<|tuple_py -> false_py|>": 151748,
|
| 790 |
+
"<|tuple_py -> float_py|>": 151956,
|
| 791 |
+
"<|tuple_py -> generator_expression_py|>": 152443,
|
| 792 |
+
"<|tuple_py -> identifier_py|>": 152381,
|
| 793 |
+
"<|tuple_py -> identifier_ter|>": 152021,
|
| 794 |
+
"<|tuple_py -> integer_py|>": 152157,
|
| 795 |
+
"<|tuple_py -> lambda_py|>": 151761,
|
| 796 |
+
"<|tuple_py -> list_comprehension_py|>": 152186,
|
| 797 |
+
"<|tuple_py -> list_py|>": 152518,
|
| 798 |
+
"<|tuple_py -> list_splat_py|>": 152085,
|
| 799 |
+
"<|tuple_py -> none_py|>": 152290,
|
| 800 |
+
"<|tuple_py -> not_operator_py|>": 151819,
|
| 801 |
+
"<|tuple_py -> parenthesized_expression_py|>": 152368,
|
| 802 |
+
"<|tuple_py -> set_comprehension_py|>": 152135,
|
| 803 |
+
"<|tuple_py -> set_py|>": 152071,
|
| 804 |
+
"<|tuple_py -> string_literal_py|>": 152459,
|
| 805 |
+
"<|tuple_py -> subscript_py|>": 152334,
|
| 806 |
+
"<|tuple_py -> true_py|>": 151832,
|
| 807 |
+
"<|tuple_py -> tuple_py|>": 152264,
|
| 808 |
+
"<|tuple_py -> unary_operator_py|>": 152320,
|
| 809 |
+
"<|type_alias_statement_py -> type_ter left_py =_ter right_py |>": 151701,
|
| 810 |
+
"<|type_parameter_py -> ,_ter|>": 152170,
|
| 811 |
+
"<|type_parameter_py -> End |>": 151979,
|
| 812 |
+
"<|type_parameter_py -> [_ter|>": 151768,
|
| 813 |
+
"<|type_parameter_py -> ]_ter|>": 151964,
|
| 814 |
+
"<|type_parameter_py -> type_py|>": 152296,
|
| 815 |
+
"<|type_py -> attribute_py |>": 151924,
|
| 816 |
+
"<|type_py -> binary_operator_py |>": 152037,
|
| 817 |
+
"<|type_py -> boolean_operator_py |>": 151957,
|
| 818 |
+
"<|type_py -> call_py |>": 152257,
|
| 819 |
+
"<|type_py -> dictionary_py |>": 152241,
|
| 820 |
+
"<|type_py -> false_py |>": 151710,
|
| 821 |
+
"<|type_py -> generic_type_py |>": 152177,
|
| 822 |
+
"<|type_py -> identifier_py |>": 151923,
|
| 823 |
+
"<|type_py -> integer_py |>": 152534,
|
| 824 |
+
"<|type_py -> list_py |>": 151669,
|
| 825 |
+
"<|type_py -> none_py |>": 151700,
|
| 826 |
+
"<|type_py -> parenthesized_expression_py |>": 152467,
|
| 827 |
+
"<|type_py -> set_py |>": 152067,
|
| 828 |
+
"<|type_py -> string_literal_py |>": 152245,
|
| 829 |
+
"<|type_py -> subscript_py |>": 151807,
|
| 830 |
+
"<|type_py -> true_py |>": 152131,
|
| 831 |
+
"<|type_py -> tuple_py |>": 152103,
|
| 832 |
+
"<|type_py -> type_py |>": 151666,
|
| 833 |
+
"<|type_py -> unary_operator_py |>": 151969,
|
| 834 |
+
"<|typed_parameter_py -> identifier_py :_ter type_py |>": 152231,
|
| 835 |
+
"<|typed_parameter_py -> identifier_ter :_ter type_py |>": 152435,
|
| 836 |
+
"<|unary_operator_py -> operator_py argument_py |>": 151767,
|
| 837 |
+
"<|value_py -> attribute_py |>": 152263,
|
| 838 |
+
"<|value_py -> binary_operator_py |>": 152194,
|
| 839 |
+
"<|value_py -> boolean_operator_py |>": 151798,
|
| 840 |
+
"<|value_py -> call_py |>": 151851,
|
| 841 |
+
"<|value_py -> comparison_operator_py |>": 151984,
|
| 842 |
+
"<|value_py -> conditional_expression_py |>": 151685,
|
| 843 |
+
"<|value_py -> dictionary_comprehension_py |>": 152017,
|
| 844 |
+
"<|value_py -> dictionary_py |>": 152251,
|
| 845 |
+
"<|value_py -> false_py |>": 152525,
|
| 846 |
+
"<|value_py -> float_py |>": 152065,
|
| 847 |
+
"<|value_py -> generator_expression_py |>": 152166,
|
| 848 |
+
"<|value_py -> identifier_py |>": 152110,
|
| 849 |
+
"<|value_py -> identifier_ter |>": 151944,
|
| 850 |
+
"<|value_py -> integer_py |>": 151883,
|
| 851 |
+
"<|value_py -> lambda_py |>": 152244,
|
| 852 |
+
"<|value_py -> list_comprehension_py |>": 152483,
|
| 853 |
+
"<|value_py -> list_py |>": 152540,
|
| 854 |
+
"<|value_py -> list_splat_py |>": 151822,
|
| 855 |
+
"<|value_py -> none_py |>": 151808,
|
| 856 |
+
"<|value_py -> not_operator_py |>": 152538,
|
| 857 |
+
"<|value_py -> parenthesized_expression_py |>": 151843,
|
| 858 |
+
"<|value_py -> set_comprehension_py |>": 152004,
|
| 859 |
+
"<|value_py -> set_py |>": 152433,
|
| 860 |
+
"<|value_py -> string_literal_py |>": 152413,
|
| 861 |
+
"<|value_py -> subscript_py |>": 151707,
|
| 862 |
+
"<|value_py -> true_py |>": 151786,
|
| 863 |
+
"<|value_py -> tuple_py |>": 152202,
|
| 864 |
+
"<|value_py -> unary_operator_py |>": 152442,
|
| 865 |
+
"<|video_pad|>": 151656,
|
| 866 |
+
"<|vision_end|>": 151653,
|
| 867 |
+
"<|vision_pad|>": 151654,
|
| 868 |
+
"<|vision_start|>": 151652,
|
| 869 |
+
"<|while_statement_py -> while_ter condition_py :_ter body_py |>": 152519,
|
| 870 |
+
"<|yield_py -> yield_ter attribute_py |>": 152046,
|
| 871 |
+
"<|yield_py -> yield_ter binary_operator_py |>": 151932,
|
| 872 |
+
"<|yield_py -> yield_ter call_py |>": 152367,
|
| 873 |
+
"<|yield_py -> yield_ter comparison_operator_py |>": 151939,
|
| 874 |
+
"<|yield_py -> yield_ter conditional_expression_py |>": 151993,
|
| 875 |
+
"<|yield_py -> yield_ter dictionary_comprehension_py |>": 152010,
|
| 876 |
+
"<|yield_py -> yield_ter dictionary_py |>": 151877,
|
| 877 |
+
"<|yield_py -> yield_ter expression_list_py |>": 152409,
|
| 878 |
+
"<|yield_py -> yield_ter false_py |>": 151778,
|
| 879 |
+
"<|yield_py -> yield_ter float_py |>": 151744,
|
| 880 |
+
"<|yield_py -> yield_ter from_ter attribute_py |>": 152018,
|
| 881 |
+
"<|yield_py -> yield_ter from_ter call_py |>": 151827,
|
| 882 |
+
"<|yield_py -> yield_ter from_ter conditional_expression_py |>": 151869,
|
| 883 |
+
"<|yield_py -> yield_ter from_ter generator_expression_py |>": 151741,
|
| 884 |
+
"<|yield_py -> yield_ter from_ter identifier_py |>": 151771,
|
| 885 |
+
"<|yield_py -> yield_ter from_ter list_py |>": 152123,
|
| 886 |
+
"<|yield_py -> yield_ter from_ter subscript_py |>": 152532,
|
| 887 |
+
"<|yield_py -> yield_ter from_ter tuple_py |>": 151974,
|
| 888 |
+
"<|yield_py -> yield_ter identifier_py |>": 152382,
|
| 889 |
+
"<|yield_py -> yield_ter integer_py |>": 151675,
|
| 890 |
+
"<|yield_py -> yield_ter lambda_py |>": 151718,
|
| 891 |
+
"<|yield_py -> yield_ter list_comprehension_py |>": 152378,
|
| 892 |
+
"<|yield_py -> yield_ter list_py |>": 152455,
|
| 893 |
+
"<|yield_py -> yield_ter none_py |>": 151948,
|
| 894 |
+
"<|yield_py -> yield_ter parenthesized_expression_py |>": 152474,
|
| 895 |
+
"<|yield_py -> yield_ter string_literal_py |>": 152172,
|
| 896 |
+
"<|yield_py -> yield_ter subscript_py |>": 152283,
|
| 897 |
+
"<|yield_py -> yield_ter true_py |>": 151914,
|
| 898 |
+
"<|yield_py -> yield_ter tuple_py |>": 152400,
|
| 899 |
+
"<|yield_py -> yield_ter unary_operator_py |>": 151690,
|
| 900 |
+
"<|yield_py -> yield_ter |>": 152105
|
| 901 |
+
}
|
config.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "/share/zhangzhao/models/qwen2.5-1.5b-grammar",
|
| 3 |
+
"architectures": [
|
| 4 |
+
"Qwen2ForCausalLM"
|
| 5 |
+
],
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 151643,
|
| 8 |
+
"eos_token_id": 151643,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 1536,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 8960,
|
| 13 |
+
"max_position_embeddings": 131072,
|
| 14 |
+
"max_window_layers": 28,
|
| 15 |
+
"model_type": "qwen2",
|
| 16 |
+
"num_attention_heads": 12,
|
| 17 |
+
"num_hidden_layers": 28,
|
| 18 |
+
"num_key_value_heads": 2,
|
| 19 |
+
"rms_norm_eps": 1e-06,
|
| 20 |
+
"rope_scaling": null,
|
| 21 |
+
"rope_theta": 1000000.0,
|
| 22 |
+
"sliding_window": 131072,
|
| 23 |
+
"tie_word_embeddings": true,
|
| 24 |
+
"torch_dtype": "bfloat16",
|
| 25 |
+
"transformers_version": "4.49.0",
|
| 26 |
+
"use_cache": false,
|
| 27 |
+
"use_mrope": false,
|
| 28 |
+
"use_sliding_window": false,
|
| 29 |
+
"vocab_size": 152542
|
| 30 |
+
}
|
generation_config.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"eos_token_id": 151643,
|
| 4 |
+
"max_new_tokens": 2048,
|
| 5 |
+
"transformers_version": "4.49.0"
|
| 6 |
+
}
|
global_step34799/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:b16ca33fc1c328ba4f18616efbd3783bf352ebe7bb439e552972e4818fbc0221
|
| 3 |
+
size 2316974597
|
global_step34799/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:4a13afb7c08d34a8a9774a4d853880658cdcbd994d147cf614536a2d6c740a53
|
| 3 |
+
size 2316976389
|
global_step34799/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:c29e6549e6176e8de7d30a61979b35c31922918818056f1ac53b7f863711fb05
|
| 3 |
+
size 2316976645
|
global_step34799/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:200f6ef068a8e126944bad540d92c0e414263875dca701f001c338989548412d
|
| 3 |
+
size 2316976645
|
global_step34799/bf16_zero_pp_rank_4_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2d6a4558aa889b025fd749c022bcd43d4d58fde9998c3fbf18e0281d2f61f5c
|
| 3 |
+
size 2316976709
|
global_step34799/bf16_zero_pp_rank_5_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:855552ad5df40c2afea18dc8d05f547d075a6a979a1ea1a604bb4159f7d714a0
|
| 3 |
+
size 2316976645
|
global_step34799/bf16_zero_pp_rank_6_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c4ab5b1a54fbce321b6aee4d3e8964af54eb785c203ee89bb3f51c4bf7bd8e7
|
| 3 |
+
size 2316976709
|
global_step34799/bf16_zero_pp_rank_7_mp_rank_00_optim_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3299d4fb1d30616cd4d2725251e3ebac9cd92baf82452f7decc311eed382c8f4
|
| 3 |
+
size 2316976645
|
global_step34799/mp_rank_00_model_states.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e041639319eafda30dcefe57ae5545cc47fd7ceb272b8b8463bdbcebc04376a
|
| 3 |
+
size 3089382501
|
latest
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
global_step34799
|
merges.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0bcd04c7c1da432d5c1c7d291ec48e28cb1cefc69f65d33fe3e97968e976e6e7
|
| 3 |
+
size 3557938016
|
rng_state_0.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:74c8d337722463e03302f4febf685dad8b5696faf483eba44fc08dad412ada63
|
| 3 |
+
size 16389
|
rng_state_1.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53c4237c1614c4c633a43025a0090a990233816338927c9c955846324d5b2a50
|
| 3 |
+
size 16389
|
rng_state_2.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1ef41f6e29cc1a22a05075b00f43810e0c57a9da1e5acbaeb5dbc75ba17687c8
|
| 3 |
+
size 16389
|
rng_state_3.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:230b943449a21bb79084e2e41f16597020eec2c876a22f1a50b7f9e90aeb9a03
|
| 3 |
+
size 16389
|
rng_state_4.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9fb5842a00fbaaf416fd46e2a48f3cc0ebb987e5f71c6539a053019b2579d2e
|
| 3 |
+
size 16389
|
rng_state_5.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:beba699c5fc429b85822cd284c107538cf35942d1dfee2eed2811b645857b2c2
|
| 3 |
+
size 16389
|
rng_state_6.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c0409921d93b5a657666afceacaf68ace4bec5b421ced13ace851fc935778c6
|
| 3 |
+
size 16389
|
rng_state_7.pth
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1db8beb7baf2946f5820ec75d95bd275110ea83cd4d2c10904804078dddf05a2
|
| 3 |
+
size 16389
|
scheduler.pt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1199af05b688039c2c15282e083daca1652c50fba158ac89689cd0fc819bb3c
|
| 3 |
+
size 1465
|
special_tokens_map.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"additional_special_tokens": [
|
| 3 |
+
"<|im_start|>",
|
| 4 |
+
"<|im_end|>",
|
| 5 |
+
"<|object_ref_start|>",
|
| 6 |
+
"<|object_ref_end|>",
|
| 7 |
+
"<|box_start|>",
|
| 8 |
+
"<|box_end|>",
|
| 9 |
+
"<|quad_start|>",
|
| 10 |
+
"<|quad_end|>",
|
| 11 |
+
"<|vision_start|>",
|
| 12 |
+
"<|vision_end|>",
|
| 13 |
+
"<|vision_pad|>",
|
| 14 |
+
"<|image_pad|>",
|
| 15 |
+
"<|video_pad|>"
|
| 16 |
+
],
|
| 17 |
+
"eos_token": {
|
| 18 |
+
"content": "<|endoftext|>",
|
| 19 |
+
"lstrip": false,
|
| 20 |
+
"normalized": false,
|
| 21 |
+
"rstrip": false,
|
| 22 |
+
"single_word": false
|
| 23 |
+
},
|
| 24 |
+
"pad_token": {
|
| 25 |
+
"content": "<|endoftext|>",
|
| 26 |
+
"lstrip": false,
|
| 27 |
+
"normalized": false,
|
| 28 |
+
"rstrip": false,
|
| 29 |
+
"single_word": false
|
| 30 |
+
}
|
| 31 |
+
}
|
tokenizer.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:186f6baba553b452869bf93d7cc258f82498026c81af406284ac20781c6b8173
|
| 3 |
+
size 11609235
|
tokenizer_config.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
trainer_state.json
ADDED
|
@@ -0,0 +1,1251 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"best_metric": null,
|
| 3 |
+
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 3.077741172308577,
|
| 5 |
+
"eval_steps": 500,
|
| 6 |
+
"global_step": 34800,
|
| 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.017688548875671613,
|
| 13 |
+
"grad_norm": 4.9453349113464355,
|
| 14 |
+
"learning_rate": 1.768972227136034e-06,
|
| 15 |
+
"loss": 6.7403,
|
| 16 |
+
"step": 200
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"epoch": 0.03537709775134323,
|
| 20 |
+
"grad_norm": 8.81293773651123,
|
| 21 |
+
"learning_rate": 3.537944454272068e-06,
|
| 22 |
+
"loss": 4.3531,
|
| 23 |
+
"step": 400
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"epoch": 0.05306564662701484,
|
| 27 |
+
"grad_norm": 5.486693382263184,
|
| 28 |
+
"learning_rate": 5.306916681408102e-06,
|
| 29 |
+
"loss": 2.2861,
|
| 30 |
+
"step": 600
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"epoch": 0.07075419550268645,
|
| 34 |
+
"grad_norm": 2.244082450866699,
|
| 35 |
+
"learning_rate": 7.075888908544136e-06,
|
| 36 |
+
"loss": 1.162,
|
| 37 |
+
"step": 800
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"epoch": 0.08844274437835806,
|
| 41 |
+
"grad_norm": 0.6459134221076965,
|
| 42 |
+
"learning_rate": 8.84486113568017e-06,
|
| 43 |
+
"loss": 0.3574,
|
| 44 |
+
"step": 1000
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"epoch": 0.10613129325402967,
|
| 48 |
+
"grad_norm": 0.42250216007232666,
|
| 49 |
+
"learning_rate": 1.0613833362816204e-05,
|
| 50 |
+
"loss": 0.22,
|
| 51 |
+
"step": 1200
|
| 52 |
+
},
|
| 53 |
+
{
|
| 54 |
+
"epoch": 0.12381984212970129,
|
| 55 |
+
"grad_norm": 0.4047611951828003,
|
| 56 |
+
"learning_rate": 1.2382805589952239e-05,
|
| 57 |
+
"loss": 0.1967,
|
| 58 |
+
"step": 1400
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"epoch": 0.1415083910053729,
|
| 62 |
+
"grad_norm": 0.34184110164642334,
|
| 63 |
+
"learning_rate": 1.4151777817088272e-05,
|
| 64 |
+
"loss": 0.1853,
|
| 65 |
+
"step": 1600
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"epoch": 0.1591969398810445,
|
| 69 |
+
"grad_norm": 0.32166364789009094,
|
| 70 |
+
"learning_rate": 1.5920750044224307e-05,
|
| 71 |
+
"loss": 0.1795,
|
| 72 |
+
"step": 1800
|
| 73 |
+
},
|
| 74 |
+
{
|
| 75 |
+
"epoch": 0.1768854887567161,
|
| 76 |
+
"grad_norm": 0.30309006571769714,
|
| 77 |
+
"learning_rate": 1.768972227136034e-05,
|
| 78 |
+
"loss": 0.1777,
|
| 79 |
+
"step": 2000
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"epoch": 0.19457403763238773,
|
| 83 |
+
"grad_norm": 0.28535833954811096,
|
| 84 |
+
"learning_rate": 1.9458694498496373e-05,
|
| 85 |
+
"loss": 0.1728,
|
| 86 |
+
"step": 2200
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"epoch": 0.21226258650805935,
|
| 90 |
+
"grad_norm": 0.2785949409008026,
|
| 91 |
+
"learning_rate": 2.1227666725632408e-05,
|
| 92 |
+
"loss": 0.1707,
|
| 93 |
+
"step": 2400
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"epoch": 0.22995113538373096,
|
| 97 |
+
"grad_norm": 0.28039732575416565,
|
| 98 |
+
"learning_rate": 2.2996638952768443e-05,
|
| 99 |
+
"loss": 0.1682,
|
| 100 |
+
"step": 2600
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"epoch": 0.24763968425940258,
|
| 104 |
+
"grad_norm": 0.2688646614551544,
|
| 105 |
+
"learning_rate": 2.4765611179904478e-05,
|
| 106 |
+
"loss": 0.1663,
|
| 107 |
+
"step": 2800
|
| 108 |
+
},
|
| 109 |
+
{
|
| 110 |
+
"epoch": 0.2653282331350742,
|
| 111 |
+
"grad_norm": 0.2585384249687195,
|
| 112 |
+
"learning_rate": 2.653458340704051e-05,
|
| 113 |
+
"loss": 0.1672,
|
| 114 |
+
"step": 3000
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"epoch": 0.2830167820107458,
|
| 118 |
+
"grad_norm": 0.2583986222743988,
|
| 119 |
+
"learning_rate": 2.8303555634176544e-05,
|
| 120 |
+
"loss": 0.1646,
|
| 121 |
+
"step": 3200
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"epoch": 0.30070533088641743,
|
| 125 |
+
"grad_norm": 0.23997661471366882,
|
| 126 |
+
"learning_rate": 3.007252786131258e-05,
|
| 127 |
+
"loss": 0.1647,
|
| 128 |
+
"step": 3400
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"epoch": 0.318393879762089,
|
| 132 |
+
"grad_norm": 0.2527500092983246,
|
| 133 |
+
"learning_rate": 3.1841500088448614e-05,
|
| 134 |
+
"loss": 0.1629,
|
| 135 |
+
"step": 3600
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"epoch": 0.3360824286377606,
|
| 139 |
+
"grad_norm": 0.23295536637306213,
|
| 140 |
+
"learning_rate": 3.3610472315584645e-05,
|
| 141 |
+
"loss": 0.1615,
|
| 142 |
+
"step": 3800
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"epoch": 0.3537709775134322,
|
| 146 |
+
"grad_norm": 0.24165655672550201,
|
| 147 |
+
"learning_rate": 3.537944454272068e-05,
|
| 148 |
+
"loss": 0.1626,
|
| 149 |
+
"step": 4000
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"epoch": 0.37145952638910384,
|
| 153 |
+
"grad_norm": 0.22286227345466614,
|
| 154 |
+
"learning_rate": 3.7148416769856715e-05,
|
| 155 |
+
"loss": 0.1611,
|
| 156 |
+
"step": 4200
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"epoch": 0.38914807526477546,
|
| 160 |
+
"grad_norm": 0.23912444710731506,
|
| 161 |
+
"learning_rate": 3.8917388996992746e-05,
|
| 162 |
+
"loss": 0.1639,
|
| 163 |
+
"step": 4400
|
| 164 |
+
},
|
| 165 |
+
{
|
| 166 |
+
"epoch": 0.4068366241404471,
|
| 167 |
+
"grad_norm": 0.22330383956432343,
|
| 168 |
+
"learning_rate": 4.0686361224128784e-05,
|
| 169 |
+
"loss": 0.1613,
|
| 170 |
+
"step": 4600
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"epoch": 0.4245251730161187,
|
| 174 |
+
"grad_norm": 0.2139132171869278,
|
| 175 |
+
"learning_rate": 4.2455333451264816e-05,
|
| 176 |
+
"loss": 0.1601,
|
| 177 |
+
"step": 4800
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"epoch": 0.4422137218917903,
|
| 181 |
+
"grad_norm": 0.19250735640525818,
|
| 182 |
+
"learning_rate": 4.4224305678400854e-05,
|
| 183 |
+
"loss": 0.1595,
|
| 184 |
+
"step": 5000
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"epoch": 0.45990227076746193,
|
| 188 |
+
"grad_norm": 0.19502046704292297,
|
| 189 |
+
"learning_rate": 4.5993277905536885e-05,
|
| 190 |
+
"loss": 0.159,
|
| 191 |
+
"step": 5200
|
| 192 |
+
},
|
| 193 |
+
{
|
| 194 |
+
"epoch": 0.47759081964313355,
|
| 195 |
+
"grad_norm": 0.19040720164775848,
|
| 196 |
+
"learning_rate": 4.776225013267292e-05,
|
| 197 |
+
"loss": 0.1578,
|
| 198 |
+
"step": 5400
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"epoch": 0.49527936851880516,
|
| 202 |
+
"grad_norm": 0.20574906468391418,
|
| 203 |
+
"learning_rate": 4.9531222359808955e-05,
|
| 204 |
+
"loss": 0.1603,
|
| 205 |
+
"step": 5600
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"epoch": 0.5129679173944768,
|
| 209 |
+
"grad_norm": 0.19954811036586761,
|
| 210 |
+
"learning_rate": 4.999976891136569e-05,
|
| 211 |
+
"loss": 0.1582,
|
| 212 |
+
"step": 5800
|
| 213 |
+
},
|
| 214 |
+
{
|
| 215 |
+
"epoch": 0.5306564662701484,
|
| 216 |
+
"grad_norm": 0.18808187544345856,
|
| 217 |
+
"learning_rate": 4.999871234414489e-05,
|
| 218 |
+
"loss": 0.1589,
|
| 219 |
+
"step": 6000
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"epoch": 0.54834501514582,
|
| 223 |
+
"grad_norm": 0.17781756818294525,
|
| 224 |
+
"learning_rate": 4.999680029474971e-05,
|
| 225 |
+
"loss": 0.158,
|
| 226 |
+
"step": 6200
|
| 227 |
+
},
|
| 228 |
+
{
|
| 229 |
+
"epoch": 0.5660335640214916,
|
| 230 |
+
"grad_norm": 0.18824966251850128,
|
| 231 |
+
"learning_rate": 4.999403282861248e-05,
|
| 232 |
+
"loss": 0.1572,
|
| 233 |
+
"step": 6400
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"epoch": 0.5837221128971632,
|
| 237 |
+
"grad_norm": 0.20633359253406525,
|
| 238 |
+
"learning_rate": 4.999041004043882e-05,
|
| 239 |
+
"loss": 0.1572,
|
| 240 |
+
"step": 6600
|
| 241 |
+
},
|
| 242 |
+
{
|
| 243 |
+
"epoch": 0.6014106617728349,
|
| 244 |
+
"grad_norm": 0.17536261677742004,
|
| 245 |
+
"learning_rate": 4.998593205420432e-05,
|
| 246 |
+
"loss": 0.1565,
|
| 247 |
+
"step": 6800
|
| 248 |
+
},
|
| 249 |
+
{
|
| 250 |
+
"epoch": 0.6190992106485064,
|
| 251 |
+
"grad_norm": 0.1713794469833374,
|
| 252 |
+
"learning_rate": 4.998059902315038e-05,
|
| 253 |
+
"loss": 0.1554,
|
| 254 |
+
"step": 7000
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"epoch": 0.636787759524178,
|
| 258 |
+
"grad_norm": 0.16785737872123718,
|
| 259 |
+
"learning_rate": 4.997441112977891e-05,
|
| 260 |
+
"loss": 0.1526,
|
| 261 |
+
"step": 7200
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"epoch": 0.6544763083998496,
|
| 265 |
+
"grad_norm": 0.18514026701450348,
|
| 266 |
+
"learning_rate": 4.996736858584613e-05,
|
| 267 |
+
"loss": 0.153,
|
| 268 |
+
"step": 7400
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"epoch": 0.6721648572755212,
|
| 272 |
+
"grad_norm": 0.17102603614330292,
|
| 273 |
+
"learning_rate": 4.995947163235527e-05,
|
| 274 |
+
"loss": 0.1517,
|
| 275 |
+
"step": 7600
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"epoch": 0.6898534061511928,
|
| 279 |
+
"grad_norm": 0.16847601532936096,
|
| 280 |
+
"learning_rate": 4.9950720539548384e-05,
|
| 281 |
+
"loss": 0.1519,
|
| 282 |
+
"step": 7800
|
| 283 |
+
},
|
| 284 |
+
{
|
| 285 |
+
"epoch": 0.7075419550268645,
|
| 286 |
+
"grad_norm": 0.16419926285743713,
|
| 287 |
+
"learning_rate": 4.9941115606897036e-05,
|
| 288 |
+
"loss": 0.1507,
|
| 289 |
+
"step": 8000
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"epoch": 0.7252305039025361,
|
| 293 |
+
"grad_norm": 0.17619839310646057,
|
| 294 |
+
"learning_rate": 4.9930657163092123e-05,
|
| 295 |
+
"loss": 0.15,
|
| 296 |
+
"step": 8200
|
| 297 |
+
},
|
| 298 |
+
{
|
| 299 |
+
"epoch": 0.7429190527782077,
|
| 300 |
+
"grad_norm": 0.16663217544555664,
|
| 301 |
+
"learning_rate": 4.991934556603254e-05,
|
| 302 |
+
"loss": 0.1502,
|
| 303 |
+
"step": 8400
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"epoch": 0.7606076016538793,
|
| 307 |
+
"grad_norm": 0.18116818368434906,
|
| 308 |
+
"learning_rate": 4.990718120281304e-05,
|
| 309 |
+
"loss": 0.1511,
|
| 310 |
+
"step": 8600
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"epoch": 0.7782961505295509,
|
| 314 |
+
"grad_norm": 0.1595318764448166,
|
| 315 |
+
"learning_rate": 4.989416448971088e-05,
|
| 316 |
+
"loss": 0.1502,
|
| 317 |
+
"step": 8800
|
| 318 |
+
},
|
| 319 |
+
{
|
| 320 |
+
"epoch": 0.7959846994052225,
|
| 321 |
+
"grad_norm": 0.15985798835754395,
|
| 322 |
+
"learning_rate": 4.988029587217165e-05,
|
| 323 |
+
"loss": 0.1513,
|
| 324 |
+
"step": 9000
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"epoch": 0.8136732482808942,
|
| 328 |
+
"grad_norm": 0.17328430712223053,
|
| 329 |
+
"learning_rate": 4.9865575824794e-05,
|
| 330 |
+
"loss": 0.1491,
|
| 331 |
+
"step": 9200
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"epoch": 0.8313617971565658,
|
| 335 |
+
"grad_norm": 0.1536557823419571,
|
| 336 |
+
"learning_rate": 4.98500048513134e-05,
|
| 337 |
+
"loss": 0.1474,
|
| 338 |
+
"step": 9400
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"epoch": 0.8490503460322374,
|
| 342 |
+
"grad_norm": 0.15362966060638428,
|
| 343 |
+
"learning_rate": 4.983358348458491e-05,
|
| 344 |
+
"loss": 0.1458,
|
| 345 |
+
"step": 9600
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"epoch": 0.866738894907909,
|
| 349 |
+
"grad_norm": 0.16235561668872833,
|
| 350 |
+
"learning_rate": 4.9816312286564926e-05,
|
| 351 |
+
"loss": 0.1454,
|
| 352 |
+
"step": 9800
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"epoch": 0.8844274437835806,
|
| 356 |
+
"grad_norm": 0.6078733801841736,
|
| 357 |
+
"learning_rate": 4.979819184829197e-05,
|
| 358 |
+
"loss": 0.148,
|
| 359 |
+
"step": 10000
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"epoch": 0.9021159926592522,
|
| 363 |
+
"grad_norm": 0.15071770548820496,
|
| 364 |
+
"learning_rate": 4.9779222789866476e-05,
|
| 365 |
+
"loss": 0.1461,
|
| 366 |
+
"step": 10200
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"epoch": 0.9198045415349239,
|
| 370 |
+
"grad_norm": 0.15512414276599884,
|
| 371 |
+
"learning_rate": 4.9759405760429524e-05,
|
| 372 |
+
"loss": 0.1455,
|
| 373 |
+
"step": 10400
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"epoch": 0.9374930904105955,
|
| 377 |
+
"grad_norm": 0.15411154925823212,
|
| 378 |
+
"learning_rate": 4.9738741438140644e-05,
|
| 379 |
+
"loss": 0.1437,
|
| 380 |
+
"step": 10600
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"epoch": 0.9551816392862671,
|
| 384 |
+
"grad_norm": 0.15488554537296295,
|
| 385 |
+
"learning_rate": 4.9717230530154657e-05,
|
| 386 |
+
"loss": 0.1445,
|
| 387 |
+
"step": 10800
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"epoch": 0.9728701881619387,
|
| 391 |
+
"grad_norm": 0.14975008368492126,
|
| 392 |
+
"learning_rate": 4.9694873772597396e-05,
|
| 393 |
+
"loss": 0.1437,
|
| 394 |
+
"step": 11000
|
| 395 |
+
},
|
| 396 |
+
{
|
| 397 |
+
"epoch": 0.9905587370376103,
|
| 398 |
+
"grad_norm": 0.15676584839820862,
|
| 399 |
+
"learning_rate": 4.967167193054058e-05,
|
| 400 |
+
"loss": 0.1432,
|
| 401 |
+
"step": 11200
|
| 402 |
+
},
|
| 403 |
+
{
|
| 404 |
+
"epoch": 1.0082251752271874,
|
| 405 |
+
"grad_norm": 0.15392336249351501,
|
| 406 |
+
"learning_rate": 4.964762579797558e-05,
|
| 407 |
+
"loss": 0.1355,
|
| 408 |
+
"step": 11400
|
| 409 |
+
},
|
| 410 |
+
{
|
| 411 |
+
"epoch": 1.0259137241028589,
|
| 412 |
+
"grad_norm": 0.1635395586490631,
|
| 413 |
+
"learning_rate": 4.962273619778632e-05,
|
| 414 |
+
"loss": 0.1268,
|
| 415 |
+
"step": 11600
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"epoch": 1.0436022729785306,
|
| 419 |
+
"grad_norm": 0.15909574925899506,
|
| 420 |
+
"learning_rate": 4.959700398172101e-05,
|
| 421 |
+
"loss": 0.1263,
|
| 422 |
+
"step": 11800
|
| 423 |
+
},
|
| 424 |
+
{
|
| 425 |
+
"epoch": 1.061290821854202,
|
| 426 |
+
"grad_norm": 0.16021914780139923,
|
| 427 |
+
"learning_rate": 4.957043003036311e-05,
|
| 428 |
+
"loss": 0.1264,
|
| 429 |
+
"step": 12000
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"epoch": 1.0789793707298738,
|
| 433 |
+
"grad_norm": 0.163675919175148,
|
| 434 |
+
"learning_rate": 4.954301525310113e-05,
|
| 435 |
+
"loss": 0.1262,
|
| 436 |
+
"step": 12200
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"epoch": 1.0966679196055453,
|
| 440 |
+
"grad_norm": 0.15520550310611725,
|
| 441 |
+
"learning_rate": 4.951476058809751e-05,
|
| 442 |
+
"loss": 0.1275,
|
| 443 |
+
"step": 12400
|
| 444 |
+
},
|
| 445 |
+
{
|
| 446 |
+
"epoch": 1.114356468481217,
|
| 447 |
+
"grad_norm": 0.1602706015110016,
|
| 448 |
+
"learning_rate": 4.948566700225654e-05,
|
| 449 |
+
"loss": 0.1268,
|
| 450 |
+
"step": 12600
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"epoch": 1.1320450173568886,
|
| 454 |
+
"grad_norm": 0.15892288088798523,
|
| 455 |
+
"learning_rate": 4.945573549119128e-05,
|
| 456 |
+
"loss": 0.1269,
|
| 457 |
+
"step": 12800
|
| 458 |
+
},
|
| 459 |
+
{
|
| 460 |
+
"epoch": 1.1497335662325603,
|
| 461 |
+
"grad_norm": 0.16024959087371826,
|
| 462 |
+
"learning_rate": 4.9424967079189434e-05,
|
| 463 |
+
"loss": 0.1265,
|
| 464 |
+
"step": 13000
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"epoch": 1.1674221151082318,
|
| 468 |
+
"grad_norm": 0.15324904024600983,
|
| 469 |
+
"learning_rate": 4.939336281917837e-05,
|
| 470 |
+
"loss": 0.1265,
|
| 471 |
+
"step": 13200
|
| 472 |
+
},
|
| 473 |
+
{
|
| 474 |
+
"epoch": 1.1851106639839033,
|
| 475 |
+
"grad_norm": 0.15968984365463257,
|
| 476 |
+
"learning_rate": 4.936092379268902e-05,
|
| 477 |
+
"loss": 0.1269,
|
| 478 |
+
"step": 13400
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"epoch": 1.202799212859575,
|
| 482 |
+
"grad_norm": 0.1491909772157669,
|
| 483 |
+
"learning_rate": 4.932765110981894e-05,
|
| 484 |
+
"loss": 0.1261,
|
| 485 |
+
"step": 13600
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"epoch": 1.2204877617352468,
|
| 489 |
+
"grad_norm": 0.15451796352863312,
|
| 490 |
+
"learning_rate": 4.929354590919424e-05,
|
| 491 |
+
"loss": 0.1273,
|
| 492 |
+
"step": 13800
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"epoch": 1.2381763106109183,
|
| 496 |
+
"grad_norm": 0.1513613909482956,
|
| 497 |
+
"learning_rate": 4.9258609357930686e-05,
|
| 498 |
+
"loss": 0.1264,
|
| 499 |
+
"step": 14000
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"epoch": 1.2558648594865898,
|
| 503 |
+
"grad_norm": 0.1397712677717209,
|
| 504 |
+
"learning_rate": 4.9222842651593736e-05,
|
| 505 |
+
"loss": 0.1268,
|
| 506 |
+
"step": 14200
|
| 507 |
+
},
|
| 508 |
+
{
|
| 509 |
+
"epoch": 1.2735534083622615,
|
| 510 |
+
"grad_norm": 0.13348053395748138,
|
| 511 |
+
"learning_rate": 4.918624701415763e-05,
|
| 512 |
+
"loss": 0.1267,
|
| 513 |
+
"step": 14400
|
| 514 |
+
},
|
| 515 |
+
{
|
| 516 |
+
"epoch": 1.2912419572379332,
|
| 517 |
+
"grad_norm": 0.15651994943618774,
|
| 518 |
+
"learning_rate": 4.9148823697963465e-05,
|
| 519 |
+
"loss": 0.1258,
|
| 520 |
+
"step": 14600
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"epoch": 1.3089305061136047,
|
| 524 |
+
"grad_norm": 0.16271665692329407,
|
| 525 |
+
"learning_rate": 4.9110573983676414e-05,
|
| 526 |
+
"loss": 0.1258,
|
| 527 |
+
"step": 14800
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"epoch": 1.3266190549892762,
|
| 531 |
+
"grad_norm": 0.15141454339027405,
|
| 532 |
+
"learning_rate": 4.907149918024185e-05,
|
| 533 |
+
"loss": 0.1252,
|
| 534 |
+
"step": 15000
|
| 535 |
+
},
|
| 536 |
+
{
|
| 537 |
+
"epoch": 1.344307603864948,
|
| 538 |
+
"grad_norm": 0.14476826786994934,
|
| 539 |
+
"learning_rate": 4.903160062484056e-05,
|
| 540 |
+
"loss": 0.1263,
|
| 541 |
+
"step": 15200
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"epoch": 1.3619961527406195,
|
| 545 |
+
"grad_norm": 0.14604584872722626,
|
| 546 |
+
"learning_rate": 4.8990879682842964e-05,
|
| 547 |
+
"loss": 0.1267,
|
| 548 |
+
"step": 15400
|
| 549 |
+
},
|
| 550 |
+
{
|
| 551 |
+
"epoch": 1.3796847016162912,
|
| 552 |
+
"grad_norm": 0.1551065295934677,
|
| 553 |
+
"learning_rate": 4.8949337747762465e-05,
|
| 554 |
+
"loss": 0.1268,
|
| 555 |
+
"step": 15600
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"epoch": 1.3973732504919627,
|
| 559 |
+
"grad_norm": 0.15430127084255219,
|
| 560 |
+
"learning_rate": 4.890697624120767e-05,
|
| 561 |
+
"loss": 0.1258,
|
| 562 |
+
"step": 15800
|
| 563 |
+
},
|
| 564 |
+
{
|
| 565 |
+
"epoch": 1.4150617993676344,
|
| 566 |
+
"grad_norm": 0.1534918248653412,
|
| 567 |
+
"learning_rate": 4.886379661283379e-05,
|
| 568 |
+
"loss": 0.1245,
|
| 569 |
+
"step": 16000
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"epoch": 1.432750348243306,
|
| 573 |
+
"grad_norm": 0.15945963561534882,
|
| 574 |
+
"learning_rate": 4.881980034029303e-05,
|
| 575 |
+
"loss": 0.1251,
|
| 576 |
+
"step": 16200
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"epoch": 1.4504388971189777,
|
| 580 |
+
"grad_norm": 0.15190242230892181,
|
| 581 |
+
"learning_rate": 4.877498892918403e-05,
|
| 582 |
+
"loss": 0.1246,
|
| 583 |
+
"step": 16400
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"epoch": 1.4681274459946492,
|
| 587 |
+
"grad_norm": 0.14410296082496643,
|
| 588 |
+
"learning_rate": 4.872936391300029e-05,
|
| 589 |
+
"loss": 0.1251,
|
| 590 |
+
"step": 16600
|
| 591 |
+
},
|
| 592 |
+
{
|
| 593 |
+
"epoch": 1.485815994870321,
|
| 594 |
+
"grad_norm": 0.13909801840782166,
|
| 595 |
+
"learning_rate": 4.868292685307776e-05,
|
| 596 |
+
"loss": 0.1255,
|
| 597 |
+
"step": 16800
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"epoch": 1.5035045437459924,
|
| 601 |
+
"grad_norm": 0.14646555483341217,
|
| 602 |
+
"learning_rate": 4.8635679338541364e-05,
|
| 603 |
+
"loss": 0.1243,
|
| 604 |
+
"step": 17000
|
| 605 |
+
},
|
| 606 |
+
{
|
| 607 |
+
"epoch": 1.521193092621664,
|
| 608 |
+
"grad_norm": 0.14244422316551208,
|
| 609 |
+
"learning_rate": 4.858762298625065e-05,
|
| 610 |
+
"loss": 0.1248,
|
| 611 |
+
"step": 17200
|
| 612 |
+
},
|
| 613 |
+
{
|
| 614 |
+
"epoch": 1.5388816414973356,
|
| 615 |
+
"grad_norm": 0.15146219730377197,
|
| 616 |
+
"learning_rate": 4.853875944074442e-05,
|
| 617 |
+
"loss": 0.1235,
|
| 618 |
+
"step": 17400
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"epoch": 1.5565701903730074,
|
| 622 |
+
"grad_norm": 0.14190447330474854,
|
| 623 |
+
"learning_rate": 4.848909037418449e-05,
|
| 624 |
+
"loss": 0.1242,
|
| 625 |
+
"step": 17600
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"epoch": 1.5742587392486789,
|
| 629 |
+
"grad_norm": 0.13961580395698547,
|
| 630 |
+
"learning_rate": 4.8438617486298455e-05,
|
| 631 |
+
"loss": 0.1235,
|
| 632 |
+
"step": 17800
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"epoch": 1.5919472881243504,
|
| 636 |
+
"grad_norm": 0.13622143864631653,
|
| 637 |
+
"learning_rate": 4.838734250432152e-05,
|
| 638 |
+
"loss": 0.1231,
|
| 639 |
+
"step": 18000
|
| 640 |
+
},
|
| 641 |
+
{
|
| 642 |
+
"epoch": 1.609635837000022,
|
| 643 |
+
"grad_norm": 0.140974760055542,
|
| 644 |
+
"learning_rate": 4.833526718293736e-05,
|
| 645 |
+
"loss": 0.1229,
|
| 646 |
+
"step": 18200
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"epoch": 1.6273243858756938,
|
| 650 |
+
"grad_norm": 0.1440068930387497,
|
| 651 |
+
"learning_rate": 4.828239330421815e-05,
|
| 652 |
+
"loss": 0.1233,
|
| 653 |
+
"step": 18400
|
| 654 |
+
},
|
| 655 |
+
{
|
| 656 |
+
"epoch": 1.6450129347513653,
|
| 657 |
+
"grad_norm": 0.13277290761470795,
|
| 658 |
+
"learning_rate": 4.822872267756351e-05,
|
| 659 |
+
"loss": 0.122,
|
| 660 |
+
"step": 18600
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"epoch": 1.6627014836270368,
|
| 664 |
+
"grad_norm": 0.1427055150270462,
|
| 665 |
+
"learning_rate": 4.817425713963861e-05,
|
| 666 |
+
"loss": 0.123,
|
| 667 |
+
"step": 18800
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"epoch": 1.6803900325027086,
|
| 671 |
+
"grad_norm": 0.14716538786888123,
|
| 672 |
+
"learning_rate": 4.8118998554311336e-05,
|
| 673 |
+
"loss": 0.1235,
|
| 674 |
+
"step": 19000
|
| 675 |
+
},
|
| 676 |
+
{
|
| 677 |
+
"epoch": 1.6980785813783803,
|
| 678 |
+
"grad_norm": 0.14058035612106323,
|
| 679 |
+
"learning_rate": 4.806294881258846e-05,
|
| 680 |
+
"loss": 0.1219,
|
| 681 |
+
"step": 19200
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"epoch": 1.7157671302540518,
|
| 685 |
+
"grad_norm": 0.1426689326763153,
|
| 686 |
+
"learning_rate": 4.800610983255098e-05,
|
| 687 |
+
"loss": 0.1223,
|
| 688 |
+
"step": 19400
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"epoch": 1.7334556791297233,
|
| 692 |
+
"grad_norm": 0.142822727560997,
|
| 693 |
+
"learning_rate": 4.7948483559288445e-05,
|
| 694 |
+
"loss": 0.1217,
|
| 695 |
+
"step": 19600
|
| 696 |
+
},
|
| 697 |
+
{
|
| 698 |
+
"epoch": 1.751144228005395,
|
| 699 |
+
"grad_norm": 0.14739733934402466,
|
| 700 |
+
"learning_rate": 4.7890071964832426e-05,
|
| 701 |
+
"loss": 0.122,
|
| 702 |
+
"step": 19800
|
| 703 |
+
},
|
| 704 |
+
{
|
| 705 |
+
"epoch": 1.7688327768810668,
|
| 706 |
+
"grad_norm": 0.1422308385372162,
|
| 707 |
+
"learning_rate": 4.7830877048088974e-05,
|
| 708 |
+
"loss": 0.1209,
|
| 709 |
+
"step": 20000
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"epoch": 1.7865213257567383,
|
| 713 |
+
"grad_norm": 0.13312865793704987,
|
| 714 |
+
"learning_rate": 4.777090083477027e-05,
|
| 715 |
+
"loss": 0.1209,
|
| 716 |
+
"step": 20200
|
| 717 |
+
},
|
| 718 |
+
{
|
| 719 |
+
"epoch": 1.8042098746324098,
|
| 720 |
+
"grad_norm": 0.1410498321056366,
|
| 721 |
+
"learning_rate": 4.771014537732529e-05,
|
| 722 |
+
"loss": 0.1202,
|
| 723 |
+
"step": 20400
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"epoch": 1.8218984235080815,
|
| 727 |
+
"grad_norm": 0.14671219885349274,
|
| 728 |
+
"learning_rate": 4.764861275486956e-05,
|
| 729 |
+
"loss": 0.1195,
|
| 730 |
+
"step": 20600
|
| 731 |
+
},
|
| 732 |
+
{
|
| 733 |
+
"epoch": 1.839586972383753,
|
| 734 |
+
"grad_norm": 0.13390739262104034,
|
| 735 |
+
"learning_rate": 4.758630507311399e-05,
|
| 736 |
+
"loss": 0.1204,
|
| 737 |
+
"step": 20800
|
| 738 |
+
},
|
| 739 |
+
{
|
| 740 |
+
"epoch": 1.8572755212594245,
|
| 741 |
+
"grad_norm": 0.1377139389514923,
|
| 742 |
+
"learning_rate": 4.7523224464292855e-05,
|
| 743 |
+
"loss": 0.1194,
|
| 744 |
+
"step": 21000
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"epoch": 1.8749640701350963,
|
| 748 |
+
"grad_norm": 0.13953597843647003,
|
| 749 |
+
"learning_rate": 4.745937308709079e-05,
|
| 750 |
+
"loss": 0.1196,
|
| 751 |
+
"step": 21200
|
| 752 |
+
},
|
| 753 |
+
{
|
| 754 |
+
"epoch": 1.892652619010768,
|
| 755 |
+
"grad_norm": 0.14722049236297607,
|
| 756 |
+
"learning_rate": 4.739475312656895e-05,
|
| 757 |
+
"loss": 0.1189,
|
| 758 |
+
"step": 21400
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"epoch": 1.9103411678864395,
|
| 762 |
+
"grad_norm": 0.129732146859169,
|
| 763 |
+
"learning_rate": 4.7329366794090205e-05,
|
| 764 |
+
"loss": 0.1195,
|
| 765 |
+
"step": 21600
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"epoch": 1.928029716762111,
|
| 769 |
+
"grad_norm": 0.13127955794334412,
|
| 770 |
+
"learning_rate": 4.726321632724346e-05,
|
| 771 |
+
"loss": 0.1188,
|
| 772 |
+
"step": 21800
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"epoch": 1.9457182656377827,
|
| 776 |
+
"grad_norm": 0.1353120505809784,
|
| 777 |
+
"learning_rate": 4.719630398976714e-05,
|
| 778 |
+
"loss": 0.1184,
|
| 779 |
+
"step": 22000
|
| 780 |
+
},
|
| 781 |
+
{
|
| 782 |
+
"epoch": 1.9634068145134544,
|
| 783 |
+
"grad_norm": 0.14046898484230042,
|
| 784 |
+
"learning_rate": 4.7128632071471667e-05,
|
| 785 |
+
"loss": 0.1185,
|
| 786 |
+
"step": 22200
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"epoch": 1.981095363389126,
|
| 790 |
+
"grad_norm": 0.13207530975341797,
|
| 791 |
+
"learning_rate": 4.7060202888161106e-05,
|
| 792 |
+
"loss": 0.1174,
|
| 793 |
+
"step": 22400
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"epoch": 1.9987839122647975,
|
| 797 |
+
"grad_norm": 0.1329745352268219,
|
| 798 |
+
"learning_rate": 4.6991018781553926e-05,
|
| 799 |
+
"loss": 0.1181,
|
| 800 |
+
"step": 22600
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"epoch": 2.0164503504543747,
|
| 804 |
+
"grad_norm": 0.13534873723983765,
|
| 805 |
+
"learning_rate": 4.692108211920287e-05,
|
| 806 |
+
"loss": 0.097,
|
| 807 |
+
"step": 22800
|
| 808 |
+
},
|
| 809 |
+
{
|
| 810 |
+
"epoch": 2.0341388993300464,
|
| 811 |
+
"grad_norm": 0.13999226689338684,
|
| 812 |
+
"learning_rate": 4.685039529441393e-05,
|
| 813 |
+
"loss": 0.096,
|
| 814 |
+
"step": 23000
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"epoch": 2.0518274482057177,
|
| 818 |
+
"grad_norm": 0.14331400394439697,
|
| 819 |
+
"learning_rate": 4.677896072616444e-05,
|
| 820 |
+
"loss": 0.0956,
|
| 821 |
+
"step": 23200
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"epoch": 2.0695159970813894,
|
| 825 |
+
"grad_norm": 0.1391351968050003,
|
| 826 |
+
"learning_rate": 4.67067808590203e-05,
|
| 827 |
+
"loss": 0.0955,
|
| 828 |
+
"step": 23400
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"epoch": 2.087204545957061,
|
| 832 |
+
"grad_norm": 0.15080305933952332,
|
| 833 |
+
"learning_rate": 4.6633858163052324e-05,
|
| 834 |
+
"loss": 0.0966,
|
| 835 |
+
"step": 23600
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"epoch": 2.1048930948327325,
|
| 839 |
+
"grad_norm": 0.14853306114673615,
|
| 840 |
+
"learning_rate": 4.656019513375171e-05,
|
| 841 |
+
"loss": 0.0955,
|
| 842 |
+
"step": 23800
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"epoch": 2.122581643708404,
|
| 846 |
+
"grad_norm": 0.14308440685272217,
|
| 847 |
+
"learning_rate": 4.648579429194463e-05,
|
| 848 |
+
"loss": 0.0959,
|
| 849 |
+
"step": 24000
|
| 850 |
+
},
|
| 851 |
+
{
|
| 852 |
+
"epoch": 2.140270192584076,
|
| 853 |
+
"grad_norm": 0.14518137276172638,
|
| 854 |
+
"learning_rate": 4.641065818370597e-05,
|
| 855 |
+
"loss": 0.0964,
|
| 856 |
+
"step": 24200
|
| 857 |
+
},
|
| 858 |
+
{
|
| 859 |
+
"epoch": 2.1579587414597476,
|
| 860 |
+
"grad_norm": 0.14385883510112762,
|
| 861 |
+
"learning_rate": 4.6334789380272235e-05,
|
| 862 |
+
"loss": 0.0966,
|
| 863 |
+
"step": 24400
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"epoch": 2.175647290335419,
|
| 867 |
+
"grad_norm": 0.14189130067825317,
|
| 868 |
+
"learning_rate": 4.625819047795349e-05,
|
| 869 |
+
"loss": 0.0969,
|
| 870 |
+
"step": 24600
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"epoch": 2.1933358392110907,
|
| 874 |
+
"grad_norm": 0.14711739122867584,
|
| 875 |
+
"learning_rate": 4.6180864098044584e-05,
|
| 876 |
+
"loss": 0.0967,
|
| 877 |
+
"step": 24800
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"epoch": 2.2110243880867624,
|
| 881 |
+
"grad_norm": 0.14622507989406586,
|
| 882 |
+
"learning_rate": 4.610281288673539e-05,
|
| 883 |
+
"loss": 0.0967,
|
| 884 |
+
"step": 25000
|
| 885 |
+
},
|
| 886 |
+
{
|
| 887 |
+
"epoch": 2.228712936962434,
|
| 888 |
+
"grad_norm": 0.1425817757844925,
|
| 889 |
+
"learning_rate": 4.6024039515020276e-05,
|
| 890 |
+
"loss": 0.0981,
|
| 891 |
+
"step": 25200
|
| 892 |
+
},
|
| 893 |
+
{
|
| 894 |
+
"epoch": 2.2464014858381054,
|
| 895 |
+
"grad_norm": 0.1472136527299881,
|
| 896 |
+
"learning_rate": 4.5944546678606706e-05,
|
| 897 |
+
"loss": 0.0993,
|
| 898 |
+
"step": 25400
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"epoch": 2.264090034713777,
|
| 902 |
+
"grad_norm": 0.14232853055000305,
|
| 903 |
+
"learning_rate": 4.586433709782296e-05,
|
| 904 |
+
"loss": 0.0985,
|
| 905 |
+
"step": 25600
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"epoch": 2.281778583589449,
|
| 909 |
+
"grad_norm": 0.1511968970298767,
|
| 910 |
+
"learning_rate": 4.578341351752511e-05,
|
| 911 |
+
"loss": 0.098,
|
| 912 |
+
"step": 25800
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"epoch": 2.2994671324651206,
|
| 916 |
+
"grad_norm": 0.14743036031723022,
|
| 917 |
+
"learning_rate": 4.570177870700298e-05,
|
| 918 |
+
"loss": 0.0974,
|
| 919 |
+
"step": 26000
|
| 920 |
+
},
|
| 921 |
+
{
|
| 922 |
+
"epoch": 2.317155681340792,
|
| 923 |
+
"grad_norm": 0.1461828500032425,
|
| 924 |
+
"learning_rate": 4.561943545988548e-05,
|
| 925 |
+
"loss": 0.0969,
|
| 926 |
+
"step": 26200
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"epoch": 2.3348442302164636,
|
| 930 |
+
"grad_norm": 0.1614687293767929,
|
| 931 |
+
"learning_rate": 4.5536386594044956e-05,
|
| 932 |
+
"loss": 0.0988,
|
| 933 |
+
"step": 26400
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"epoch": 2.3525327790921353,
|
| 937 |
+
"grad_norm": 0.1400858461856842,
|
| 938 |
+
"learning_rate": 4.5452634951500745e-05,
|
| 939 |
+
"loss": 0.0969,
|
| 940 |
+
"step": 26600
|
| 941 |
+
},
|
| 942 |
+
{
|
| 943 |
+
"epoch": 2.3702213279678066,
|
| 944 |
+
"grad_norm": 0.14338116347789764,
|
| 945 |
+
"learning_rate": 4.536818339832197e-05,
|
| 946 |
+
"loss": 0.0961,
|
| 947 |
+
"step": 26800
|
| 948 |
+
},
|
| 949 |
+
{
|
| 950 |
+
"epoch": 2.3879098768434783,
|
| 951 |
+
"grad_norm": 0.1501627415418625,
|
| 952 |
+
"learning_rate": 4.528303482452943e-05,
|
| 953 |
+
"loss": 0.0969,
|
| 954 |
+
"step": 27000
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"epoch": 2.40559842571915,
|
| 958 |
+
"grad_norm": 0.14346472918987274,
|
| 959 |
+
"learning_rate": 4.519719214399667e-05,
|
| 960 |
+
"loss": 0.0958,
|
| 961 |
+
"step": 27200
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"epoch": 2.423286974594822,
|
| 965 |
+
"grad_norm": 0.1539745032787323,
|
| 966 |
+
"learning_rate": 4.5110658294350326e-05,
|
| 967 |
+
"loss": 0.0966,
|
| 968 |
+
"step": 27400
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"epoch": 2.4409755234704935,
|
| 972 |
+
"grad_norm": 0.1377008557319641,
|
| 973 |
+
"learning_rate": 4.502343623686956e-05,
|
| 974 |
+
"loss": 0.0971,
|
| 975 |
+
"step": 27600
|
| 976 |
+
},
|
| 977 |
+
{
|
| 978 |
+
"epoch": 2.458664072346165,
|
| 979 |
+
"grad_norm": 0.1407323032617569,
|
| 980 |
+
"learning_rate": 4.493552895638472e-05,
|
| 981 |
+
"loss": 0.0974,
|
| 982 |
+
"step": 27800
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"epoch": 2.4763526212218365,
|
| 986 |
+
"grad_norm": 0.1503271609544754,
|
| 987 |
+
"learning_rate": 4.48469394611752e-05,
|
| 988 |
+
"loss": 0.0975,
|
| 989 |
+
"step": 28000
|
| 990 |
+
},
|
| 991 |
+
{
|
| 992 |
+
"epoch": 2.4940411700975083,
|
| 993 |
+
"grad_norm": 0.14528031647205353,
|
| 994 |
+
"learning_rate": 4.475767078286652e-05,
|
| 995 |
+
"loss": 0.0974,
|
| 996 |
+
"step": 28200
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"epoch": 2.5117297189731795,
|
| 1000 |
+
"grad_norm": 0.14073877036571503,
|
| 1001 |
+
"learning_rate": 4.466772597632654e-05,
|
| 1002 |
+
"loss": 0.0963,
|
| 1003 |
+
"step": 28400
|
| 1004 |
+
},
|
| 1005 |
+
{
|
| 1006 |
+
"epoch": 2.5294182678488513,
|
| 1007 |
+
"grad_norm": 0.14889408648014069,
|
| 1008 |
+
"learning_rate": 4.457710811956094e-05,
|
| 1009 |
+
"loss": 0.0963,
|
| 1010 |
+
"step": 28600
|
| 1011 |
+
},
|
| 1012 |
+
{
|
| 1013 |
+
"epoch": 2.547106816724523,
|
| 1014 |
+
"grad_norm": 0.14946310222148895,
|
| 1015 |
+
"learning_rate": 4.4485820313607906e-05,
|
| 1016 |
+
"loss": 0.0967,
|
| 1017 |
+
"step": 28800
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"epoch": 2.5647953656001947,
|
| 1021 |
+
"grad_norm": 0.1508057564496994,
|
| 1022 |
+
"learning_rate": 4.4393865682431955e-05,
|
| 1023 |
+
"loss": 0.0973,
|
| 1024 |
+
"step": 29000
|
| 1025 |
+
},
|
| 1026 |
+
{
|
| 1027 |
+
"epoch": 2.5824839144758664,
|
| 1028 |
+
"grad_norm": 0.1469687819480896,
|
| 1029 |
+
"learning_rate": 4.4301247372817077e-05,
|
| 1030 |
+
"loss": 0.0971,
|
| 1031 |
+
"step": 29200
|
| 1032 |
+
},
|
| 1033 |
+
{
|
| 1034 |
+
"epoch": 2.6001724633515377,
|
| 1035 |
+
"grad_norm": 0.14045564830303192,
|
| 1036 |
+
"learning_rate": 4.420796855425905e-05,
|
| 1037 |
+
"loss": 0.0959,
|
| 1038 |
+
"step": 29400
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"epoch": 2.6178610122272095,
|
| 1042 |
+
"grad_norm": 0.14008161425590515,
|
| 1043 |
+
"learning_rate": 4.411403241885693e-05,
|
| 1044 |
+
"loss": 0.0966,
|
| 1045 |
+
"step": 29600
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"epoch": 2.635549561102881,
|
| 1049 |
+
"grad_norm": 0.15664730966091156,
|
| 1050 |
+
"learning_rate": 4.4019442181203884e-05,
|
| 1051 |
+
"loss": 0.0969,
|
| 1052 |
+
"step": 29800
|
| 1053 |
+
},
|
| 1054 |
+
{
|
| 1055 |
+
"epoch": 2.6532381099785525,
|
| 1056 |
+
"grad_norm": 0.146159827709198,
|
| 1057 |
+
"learning_rate": 4.3924201078277105e-05,
|
| 1058 |
+
"loss": 0.0969,
|
| 1059 |
+
"step": 30000
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"epoch": 2.670926658854224,
|
| 1063 |
+
"grad_norm": 0.14852313697338104,
|
| 1064 |
+
"learning_rate": 4.382831236932711e-05,
|
| 1065 |
+
"loss": 0.0955,
|
| 1066 |
+
"step": 30200
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"epoch": 2.688615207729896,
|
| 1070 |
+
"grad_norm": 0.15001444518566132,
|
| 1071 |
+
"learning_rate": 4.3731779335766154e-05,
|
| 1072 |
+
"loss": 0.0959,
|
| 1073 |
+
"step": 30400
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"epoch": 2.7063037566055677,
|
| 1077 |
+
"grad_norm": 0.14691965281963348,
|
| 1078 |
+
"learning_rate": 4.363460528105597e-05,
|
| 1079 |
+
"loss": 0.0957,
|
| 1080 |
+
"step": 30600
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"epoch": 2.723992305481239,
|
| 1084 |
+
"grad_norm": 0.14318469166755676,
|
| 1085 |
+
"learning_rate": 4.35367935305947e-05,
|
| 1086 |
+
"loss": 0.0967,
|
| 1087 |
+
"step": 30800
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"epoch": 2.7416808543569107,
|
| 1091 |
+
"grad_norm": 0.14508825540542603,
|
| 1092 |
+
"learning_rate": 4.34383474316031e-05,
|
| 1093 |
+
"loss": 0.0951,
|
| 1094 |
+
"step": 31000
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"epoch": 2.7593694032325824,
|
| 1098 |
+
"grad_norm": 0.15151719748973846,
|
| 1099 |
+
"learning_rate": 4.333927035301001e-05,
|
| 1100 |
+
"loss": 0.0958,
|
| 1101 |
+
"step": 31200
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"epoch": 2.7770579521082537,
|
| 1105 |
+
"grad_norm": 0.1437998265028,
|
| 1106 |
+
"learning_rate": 4.3239565685337044e-05,
|
| 1107 |
+
"loss": 0.0955,
|
| 1108 |
+
"step": 31400
|
| 1109 |
+
},
|
| 1110 |
+
{
|
| 1111 |
+
"epoch": 2.7947465009839254,
|
| 1112 |
+
"grad_norm": 0.14122720062732697,
|
| 1113 |
+
"learning_rate": 4.3139236840582575e-05,
|
| 1114 |
+
"loss": 0.0951,
|
| 1115 |
+
"step": 31600
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"epoch": 2.812435049859597,
|
| 1119 |
+
"grad_norm": 0.1338931769132614,
|
| 1120 |
+
"learning_rate": 4.303828725210498e-05,
|
| 1121 |
+
"loss": 0.0959,
|
| 1122 |
+
"step": 31800
|
| 1123 |
+
},
|
| 1124 |
+
{
|
| 1125 |
+
"epoch": 2.830123598735269,
|
| 1126 |
+
"grad_norm": 0.144461989402771,
|
| 1127 |
+
"learning_rate": 4.293672037450512e-05,
|
| 1128 |
+
"loss": 0.0951,
|
| 1129 |
+
"step": 32000
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"epoch": 2.8478121476109406,
|
| 1133 |
+
"grad_norm": 0.13668565452098846,
|
| 1134 |
+
"learning_rate": 4.2834539683508166e-05,
|
| 1135 |
+
"loss": 0.0959,
|
| 1136 |
+
"step": 32200
|
| 1137 |
+
},
|
| 1138 |
+
{
|
| 1139 |
+
"epoch": 2.865500696486612,
|
| 1140 |
+
"grad_norm": 0.15980184078216553,
|
| 1141 |
+
"learning_rate": 4.27317486758446e-05,
|
| 1142 |
+
"loss": 0.0951,
|
| 1143 |
+
"step": 32400
|
| 1144 |
+
},
|
| 1145 |
+
{
|
| 1146 |
+
"epoch": 2.8831892453622836,
|
| 1147 |
+
"grad_norm": 0.14222297072410583,
|
| 1148 |
+
"learning_rate": 4.262835086913058e-05,
|
| 1149 |
+
"loss": 0.0948,
|
| 1150 |
+
"step": 32600
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"epoch": 2.9008777942379553,
|
| 1154 |
+
"grad_norm": 0.1509125828742981,
|
| 1155 |
+
"learning_rate": 4.25243498017476e-05,
|
| 1156 |
+
"loss": 0.0949,
|
| 1157 |
+
"step": 32800
|
| 1158 |
+
},
|
| 1159 |
+
{
|
| 1160 |
+
"epoch": 2.9185663431136266,
|
| 1161 |
+
"grad_norm": 0.14582620561122894,
|
| 1162 |
+
"learning_rate": 4.241974903272132e-05,
|
| 1163 |
+
"loss": 0.0943,
|
| 1164 |
+
"step": 33000
|
| 1165 |
+
},
|
| 1166 |
+
{
|
| 1167 |
+
"epoch": 2.9362548919892983,
|
| 1168 |
+
"grad_norm": 0.130904421210289,
|
| 1169 |
+
"learning_rate": 4.231455214159985e-05,
|
| 1170 |
+
"loss": 0.0945,
|
| 1171 |
+
"step": 33200
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"epoch": 2.95394344086497,
|
| 1175 |
+
"grad_norm": 0.1373138129711151,
|
| 1176 |
+
"learning_rate": 4.220876272833121e-05,
|
| 1177 |
+
"loss": 0.0936,
|
| 1178 |
+
"step": 33400
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"epoch": 2.971631989740642,
|
| 1182 |
+
"grad_norm": 0.14548689126968384,
|
| 1183 |
+
"learning_rate": 4.210238441314017e-05,
|
| 1184 |
+
"loss": 0.0934,
|
| 1185 |
+
"step": 33600
|
| 1186 |
+
},
|
| 1187 |
+
{
|
| 1188 |
+
"epoch": 2.9893205386163135,
|
| 1189 |
+
"grad_norm": 0.13954471051692963,
|
| 1190 |
+
"learning_rate": 4.199542083640432e-05,
|
| 1191 |
+
"loss": 0.0937,
|
| 1192 |
+
"step": 33800
|
| 1193 |
+
},
|
| 1194 |
+
{
|
| 1195 |
+
"epoch": 3.0069869768058903,
|
| 1196 |
+
"grad_norm": 0.14478568732738495,
|
| 1197 |
+
"learning_rate": 4.188787565852952e-05,
|
| 1198 |
+
"loss": 0.0847,
|
| 1199 |
+
"step": 34000
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"epoch": 3.024675525681562,
|
| 1203 |
+
"grad_norm": 0.15503637492656708,
|
| 1204 |
+
"learning_rate": 4.177975255982463e-05,
|
| 1205 |
+
"loss": 0.0718,
|
| 1206 |
+
"step": 34200
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"epoch": 3.0423640745572333,
|
| 1210 |
+
"grad_norm": 0.16748104989528656,
|
| 1211 |
+
"learning_rate": 4.1671055240375575e-05,
|
| 1212 |
+
"loss": 0.0714,
|
| 1213 |
+
"step": 34400
|
| 1214 |
+
},
|
| 1215 |
+
{
|
| 1216 |
+
"epoch": 3.060052623432905,
|
| 1217 |
+
"grad_norm": 0.15309254825115204,
|
| 1218 |
+
"learning_rate": 4.156178741991872e-05,
|
| 1219 |
+
"loss": 0.0724,
|
| 1220 |
+
"step": 34600
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"epoch": 3.077741172308577,
|
| 1224 |
+
"grad_norm": 0.15351246297359467,
|
| 1225 |
+
"learning_rate": 4.1451952837713556e-05,
|
| 1226 |
+
"loss": 0.0722,
|
| 1227 |
+
"step": 34800
|
| 1228 |
+
}
|
| 1229 |
+
],
|
| 1230 |
+
"logging_steps": 200,
|
| 1231 |
+
"max_steps": 113060,
|
| 1232 |
+
"num_input_tokens_seen": 0,
|
| 1233 |
+
"num_train_epochs": 10,
|
| 1234 |
+
"save_steps": 200,
|
| 1235 |
+
"stateful_callbacks": {
|
| 1236 |
+
"TrainerControl": {
|
| 1237 |
+
"args": {
|
| 1238 |
+
"should_epoch_stop": false,
|
| 1239 |
+
"should_evaluate": false,
|
| 1240 |
+
"should_log": false,
|
| 1241 |
+
"should_save": true,
|
| 1242 |
+
"should_training_stop": false
|
| 1243 |
+
},
|
| 1244 |
+
"attributes": {}
|
| 1245 |
+
}
|
| 1246 |
+
},
|
| 1247 |
+
"total_flos": 1.0180563807244386e+20,
|
| 1248 |
+
"train_batch_size": 9,
|
| 1249 |
+
"trial_name": null,
|
| 1250 |
+
"trial_params": null
|
| 1251 |
+
}
|
training_args.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8e0ca058fbdf0074da43c08f58e1ce54d3cdb66ab040c892c722ccc273fd1644
|
| 3 |
+
size 7761
|
vocab.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
zero_to_fp32.py
ADDED
|
@@ -0,0 +1,760 @@
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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:
|
| 14 |
+
# python zero_to_fp32.py . output_dir/
|
| 15 |
+
# or
|
| 16 |
+
# python zero_to_fp32.py . output_dir/ --safe_serialization
|
| 17 |
+
|
| 18 |
+
import argparse
|
| 19 |
+
import torch
|
| 20 |
+
import glob
|
| 21 |
+
import math
|
| 22 |
+
import os
|
| 23 |
+
import re
|
| 24 |
+
import gc
|
| 25 |
+
import json
|
| 26 |
+
import numpy as np
|
| 27 |
+
from tqdm import tqdm
|
| 28 |
+
from collections import OrderedDict
|
| 29 |
+
from dataclasses import dataclass
|
| 30 |
+
|
| 31 |
+
# while this script doesn't use deepspeed to recover data, since the checkpoints are pickled with
|
| 32 |
+
# DeepSpeed data structures it has to be available in the current python environment.
|
| 33 |
+
from deepspeed.utils import logger
|
| 34 |
+
from deepspeed.checkpoint.constants import (DS_VERSION, OPTIMIZER_STATE_DICT, SINGLE_PARTITION_OF_FP32_GROUPS,
|
| 35 |
+
FP32_FLAT_GROUPS, ZERO_STAGE, PARTITION_COUNT, PARAM_SHAPES, BUFFER_NAMES,
|
| 36 |
+
FROZEN_PARAM_SHAPES, FROZEN_PARAM_FRAGMENTS)
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
@dataclass
|
| 40 |
+
class zero_model_state:
|
| 41 |
+
buffers: dict()
|
| 42 |
+
param_shapes: dict()
|
| 43 |
+
shared_params: list
|
| 44 |
+
ds_version: int
|
| 45 |
+
frozen_param_shapes: dict()
|
| 46 |
+
frozen_param_fragments: dict()
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
debug = 0
|
| 50 |
+
|
| 51 |
+
# load to cpu
|
| 52 |
+
device = torch.device('cpu')
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
def atoi(text):
|
| 56 |
+
return int(text) if text.isdigit() else text
|
| 57 |
+
|
| 58 |
+
|
| 59 |
+
def natural_keys(text):
|
| 60 |
+
'''
|
| 61 |
+
alist.sort(key=natural_keys) sorts in human order
|
| 62 |
+
http://nedbatchelder.com/blog/200712/human_sorting.html
|
| 63 |
+
(See Toothy's implementation in the comments)
|
| 64 |
+
'''
|
| 65 |
+
return [atoi(c) for c in re.split(r'(\d+)', text)]
|
| 66 |
+
|
| 67 |
+
|
| 68 |
+
def get_model_state_file(checkpoint_dir, zero_stage):
|
| 69 |
+
if not os.path.isdir(checkpoint_dir):
|
| 70 |
+
raise FileNotFoundError(f"Directory '{checkpoint_dir}' doesn't exist")
|
| 71 |
+
|
| 72 |
+
# there should be only one file
|
| 73 |
+
if zero_stage <= 2:
|
| 74 |
+
file = os.path.join(checkpoint_dir, "mp_rank_00_model_states.pt")
|
| 75 |
+
elif zero_stage == 3:
|
| 76 |
+
file = os.path.join(checkpoint_dir, "zero_pp_rank_0_mp_rank_00_model_states.pt")
|
| 77 |
+
|
| 78 |
+
if not os.path.exists(file):
|
| 79 |
+
raise FileNotFoundError(f"can't find model states file at '{file}'")
|
| 80 |
+
|
| 81 |
+
return file
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
def get_checkpoint_files(checkpoint_dir, glob_pattern):
|
| 85 |
+
# XXX: need to test that this simple glob rule works for multi-node setup too
|
| 86 |
+
ckpt_files = sorted(glob.glob(os.path.join(checkpoint_dir, glob_pattern)), key=natural_keys)
|
| 87 |
+
|
| 88 |
+
if len(ckpt_files) == 0:
|
| 89 |
+
raise FileNotFoundError(f"can't find {glob_pattern} files in directory '{checkpoint_dir}'")
|
| 90 |
+
|
| 91 |
+
return ckpt_files
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def get_optim_files(checkpoint_dir):
|
| 95 |
+
return get_checkpoint_files(checkpoint_dir, "*_optim_states.pt")
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
def get_model_state_files(checkpoint_dir):
|
| 99 |
+
return get_checkpoint_files(checkpoint_dir, "*_model_states.pt")
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def parse_model_states(files):
|
| 103 |
+
zero_model_states = []
|
| 104 |
+
for file in files:
|
| 105 |
+
state_dict = torch.load(file, map_location=device, weights_only=False)
|
| 106 |
+
|
| 107 |
+
if BUFFER_NAMES not in state_dict:
|
| 108 |
+
raise ValueError(f"{file} is not a model state checkpoint")
|
| 109 |
+
buffer_names = state_dict[BUFFER_NAMES]
|
| 110 |
+
if debug:
|
| 111 |
+
print("Found buffers:", buffer_names)
|
| 112 |
+
|
| 113 |
+
# recover just the buffers while restoring them to fp32 if they were saved in fp16
|
| 114 |
+
buffers = {k: v.float() for k, v in state_dict["module"].items() if k in buffer_names}
|
| 115 |
+
param_shapes = state_dict[PARAM_SHAPES]
|
| 116 |
+
|
| 117 |
+
# collect parameters that are included in param_shapes
|
| 118 |
+
param_names = []
|
| 119 |
+
for s in param_shapes:
|
| 120 |
+
for name in s.keys():
|
| 121 |
+
param_names.append(name)
|
| 122 |
+
|
| 123 |
+
# update with frozen parameters
|
| 124 |
+
frozen_param_shapes = state_dict.get(FROZEN_PARAM_SHAPES, None)
|
| 125 |
+
if frozen_param_shapes is not None:
|
| 126 |
+
if debug:
|
| 127 |
+
print(f"Found frozen_param_shapes: {frozen_param_shapes}")
|
| 128 |
+
param_names += list(frozen_param_shapes.keys())
|
| 129 |
+
|
| 130 |
+
# handle shared params
|
| 131 |
+
shared_params = [[k, v] for k, v in state_dict["shared_params"].items()]
|
| 132 |
+
|
| 133 |
+
ds_version = state_dict.get(DS_VERSION, None)
|
| 134 |
+
|
| 135 |
+
frozen_param_fragments = state_dict.get(FROZEN_PARAM_FRAGMENTS, None)
|
| 136 |
+
|
| 137 |
+
z_model_state = zero_model_state(buffers=buffers,
|
| 138 |
+
param_shapes=param_shapes,
|
| 139 |
+
shared_params=shared_params,
|
| 140 |
+
ds_version=ds_version,
|
| 141 |
+
frozen_param_shapes=frozen_param_shapes,
|
| 142 |
+
frozen_param_fragments=frozen_param_fragments)
|
| 143 |
+
zero_model_states.append(z_model_state)
|
| 144 |
+
|
| 145 |
+
return zero_model_states
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
def parse_optim_states(files, ds_checkpoint_dir):
|
| 149 |
+
total_files = len(files)
|
| 150 |
+
state_dicts = []
|
| 151 |
+
for f in tqdm(files, desc='Loading checkpoint shards'):
|
| 152 |
+
state_dict = torch.load(f, map_location=device, mmap=True, weights_only=False)
|
| 153 |
+
# immediately discard the potentially huge 2 optimizer states as we only care for fp32 master weights
|
| 154 |
+
# and also handle the case where it was already removed by another helper script
|
| 155 |
+
state_dict["optimizer_state_dict"].pop("optimizer_state_dict", None)
|
| 156 |
+
state_dicts.append(state_dict)
|
| 157 |
+
|
| 158 |
+
if not ZERO_STAGE in state_dicts[0][OPTIMIZER_STATE_DICT]:
|
| 159 |
+
raise ValueError(f"{files[0]} is not a zero checkpoint")
|
| 160 |
+
zero_stage = state_dicts[0][OPTIMIZER_STATE_DICT][ZERO_STAGE]
|
| 161 |
+
world_size = state_dicts[0][OPTIMIZER_STATE_DICT][PARTITION_COUNT]
|
| 162 |
+
|
| 163 |
+
# For ZeRO-2 each param group can have different partition_count as data parallelism for expert
|
| 164 |
+
# parameters can be different from data parallelism for non-expert parameters. So we can just
|
| 165 |
+
# use the max of the partition_count to get the dp world_size.
|
| 166 |
+
|
| 167 |
+
if type(world_size) is list:
|
| 168 |
+
world_size = max(world_size)
|
| 169 |
+
|
| 170 |
+
if world_size != total_files:
|
| 171 |
+
raise ValueError(
|
| 172 |
+
f"Expected {world_size} of '*_optim_states.pt' under '{ds_checkpoint_dir}' but found {total_files} files. "
|
| 173 |
+
"Possibly due to an overwrite of an old checkpoint, or a checkpoint didn't get saved by one or more processes."
|
| 174 |
+
)
|
| 175 |
+
|
| 176 |
+
# the groups are named differently in each stage
|
| 177 |
+
if zero_stage <= 2:
|
| 178 |
+
fp32_groups_key = SINGLE_PARTITION_OF_FP32_GROUPS
|
| 179 |
+
elif zero_stage == 3:
|
| 180 |
+
fp32_groups_key = FP32_FLAT_GROUPS
|
| 181 |
+
else:
|
| 182 |
+
raise ValueError(f"unknown zero stage {zero_stage}")
|
| 183 |
+
|
| 184 |
+
fp32_flat_groups = [state_dicts[i][OPTIMIZER_STATE_DICT][fp32_groups_key] for i in range(len(state_dicts))]
|
| 185 |
+
return zero_stage, world_size, fp32_flat_groups
|
| 186 |
+
|
| 187 |
+
|
| 188 |
+
def _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters):
|
| 189 |
+
"""
|
| 190 |
+
Returns fp32 state_dict reconstructed from ds checkpoint
|
| 191 |
+
|
| 192 |
+
Args:
|
| 193 |
+
- ``ds_checkpoint_dir``: path to the deepspeed checkpoint folder (where the optimizer files are)
|
| 194 |
+
|
| 195 |
+
"""
|
| 196 |
+
print(f"Processing zero checkpoint '{ds_checkpoint_dir}'")
|
| 197 |
+
|
| 198 |
+
optim_files = get_optim_files(ds_checkpoint_dir)
|
| 199 |
+
zero_stage, world_size, fp32_flat_groups = parse_optim_states(optim_files, ds_checkpoint_dir)
|
| 200 |
+
print(f"Detected checkpoint of type zero stage {zero_stage}, world_size: {world_size}")
|
| 201 |
+
|
| 202 |
+
model_files = get_model_state_files(ds_checkpoint_dir)
|
| 203 |
+
|
| 204 |
+
zero_model_states = parse_model_states(model_files)
|
| 205 |
+
print(f'Parsing checkpoint created by deepspeed=={zero_model_states[0].ds_version}')
|
| 206 |
+
|
| 207 |
+
if zero_stage <= 2:
|
| 208 |
+
return _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 209 |
+
exclude_frozen_parameters)
|
| 210 |
+
elif zero_stage == 3:
|
| 211 |
+
return _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 212 |
+
exclude_frozen_parameters)
|
| 213 |
+
|
| 214 |
+
|
| 215 |
+
def _zero2_merge_frozen_params(state_dict, zero_model_states):
|
| 216 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 217 |
+
return
|
| 218 |
+
|
| 219 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 220 |
+
frozen_param_fragments = zero_model_states[0].frozen_param_fragments
|
| 221 |
+
|
| 222 |
+
if debug:
|
| 223 |
+
num_elem = sum(s.numel() for s in frozen_param_shapes.values())
|
| 224 |
+
print(f'rank 0: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 225 |
+
|
| 226 |
+
wanted_params = len(frozen_param_shapes)
|
| 227 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 228 |
+
avail_numel = sum([p.numel() for p in frozen_param_fragments.values()])
|
| 229 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 230 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 231 |
+
|
| 232 |
+
total_params = 0
|
| 233 |
+
total_numel = 0
|
| 234 |
+
for name, shape in frozen_param_shapes.items():
|
| 235 |
+
total_params += 1
|
| 236 |
+
unpartitioned_numel = shape.numel()
|
| 237 |
+
total_numel += unpartitioned_numel
|
| 238 |
+
|
| 239 |
+
state_dict[name] = frozen_param_fragments[name]
|
| 240 |
+
|
| 241 |
+
if debug:
|
| 242 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 243 |
+
|
| 244 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
def _has_callable(obj, fn):
|
| 248 |
+
attr = getattr(obj, fn, None)
|
| 249 |
+
return callable(attr)
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
def _zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 253 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 254 |
+
|
| 255 |
+
# Reconstruction protocol:
|
| 256 |
+
#
|
| 257 |
+
# XXX: document this
|
| 258 |
+
|
| 259 |
+
if debug:
|
| 260 |
+
for i in range(world_size):
|
| 261 |
+
for j in range(len(fp32_flat_groups[0])):
|
| 262 |
+
print(f"{FP32_FLAT_GROUPS}[{i}][{j}].shape={fp32_flat_groups[i][j].shape}")
|
| 263 |
+
|
| 264 |
+
# XXX: memory usage doubles here (zero2)
|
| 265 |
+
num_param_groups = len(fp32_flat_groups[0])
|
| 266 |
+
merged_single_partition_of_fp32_groups = []
|
| 267 |
+
for i in range(num_param_groups):
|
| 268 |
+
merged_partitions = [sd[i] for sd in fp32_flat_groups]
|
| 269 |
+
full_single_fp32_vector = torch.cat(merged_partitions, 0)
|
| 270 |
+
merged_single_partition_of_fp32_groups.append(full_single_fp32_vector)
|
| 271 |
+
avail_numel = sum(
|
| 272 |
+
[full_single_fp32_vector.numel() for full_single_fp32_vector in merged_single_partition_of_fp32_groups])
|
| 273 |
+
|
| 274 |
+
if debug:
|
| 275 |
+
wanted_params = sum([len(shapes) for shapes in param_shapes])
|
| 276 |
+
wanted_numel = sum([sum(shape.numel() for shape in shapes.values()) for shapes in param_shapes])
|
| 277 |
+
# not asserting if there is a mismatch due to possible padding
|
| 278 |
+
print(f"Have {avail_numel} numels to process.")
|
| 279 |
+
print(f"Need {wanted_numel} numels in {wanted_params} params.")
|
| 280 |
+
|
| 281 |
+
# params
|
| 282 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 283 |
+
# out-of-core computing solution
|
| 284 |
+
total_numel = 0
|
| 285 |
+
total_params = 0
|
| 286 |
+
for shapes, full_single_fp32_vector in zip(param_shapes, merged_single_partition_of_fp32_groups):
|
| 287 |
+
offset = 0
|
| 288 |
+
avail_numel = full_single_fp32_vector.numel()
|
| 289 |
+
for name, shape in shapes.items():
|
| 290 |
+
|
| 291 |
+
unpartitioned_numel = shape.numel() if _has_callable(shape, 'numel') else math.prod(shape)
|
| 292 |
+
total_numel += unpartitioned_numel
|
| 293 |
+
total_params += 1
|
| 294 |
+
|
| 295 |
+
if debug:
|
| 296 |
+
print(f"{name} full shape: {shape} unpartitioned numel {unpartitioned_numel} ")
|
| 297 |
+
state_dict[name] = full_single_fp32_vector.narrow(0, offset, unpartitioned_numel).view(shape)
|
| 298 |
+
offset += unpartitioned_numel
|
| 299 |
+
|
| 300 |
+
# Z2 started to align to 2*world_size to improve nccl performance. Therefore both offset and
|
| 301 |
+
# avail_numel can differ by anywhere between 0..2*world_size. Due to two unrelated complex
|
| 302 |
+
# paddings performed in the code it's almost impossible to predict the exact numbers w/o the
|
| 303 |
+
# live optimizer object, so we are checking that the numbers are within the right range
|
| 304 |
+
align_to = 2 * world_size
|
| 305 |
+
|
| 306 |
+
def zero2_align(x):
|
| 307 |
+
return align_to * math.ceil(x / align_to)
|
| 308 |
+
|
| 309 |
+
if debug:
|
| 310 |
+
print(f"original offset={offset}, avail_numel={avail_numel}")
|
| 311 |
+
|
| 312 |
+
offset = zero2_align(offset)
|
| 313 |
+
avail_numel = zero2_align(avail_numel)
|
| 314 |
+
|
| 315 |
+
if debug:
|
| 316 |
+
print(f"aligned offset={offset}, avail_numel={avail_numel}")
|
| 317 |
+
|
| 318 |
+
# Sanity check
|
| 319 |
+
if offset != avail_numel:
|
| 320 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 321 |
+
|
| 322 |
+
print(f"Reconstructed fp32 state dict with {total_params} params {total_numel} elements")
|
| 323 |
+
|
| 324 |
+
|
| 325 |
+
def _get_fp32_state_dict_from_zero2_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 326 |
+
exclude_frozen_parameters):
|
| 327 |
+
state_dict = OrderedDict()
|
| 328 |
+
|
| 329 |
+
# buffers
|
| 330 |
+
buffers = zero_model_states[0].buffers
|
| 331 |
+
state_dict.update(buffers)
|
| 332 |
+
if debug:
|
| 333 |
+
print(f"added {len(buffers)} buffers")
|
| 334 |
+
|
| 335 |
+
if not exclude_frozen_parameters:
|
| 336 |
+
_zero2_merge_frozen_params(state_dict, zero_model_states)
|
| 337 |
+
|
| 338 |
+
_zero2_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 339 |
+
|
| 340 |
+
# recover shared parameters
|
| 341 |
+
for pair in zero_model_states[0].shared_params:
|
| 342 |
+
if pair[1] in state_dict:
|
| 343 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 344 |
+
|
| 345 |
+
return state_dict
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
def zero3_partitioned_param_info(unpartitioned_numel, world_size):
|
| 349 |
+
remainder = unpartitioned_numel % world_size
|
| 350 |
+
padding_numel = (world_size - remainder) if remainder else 0
|
| 351 |
+
partitioned_numel = math.ceil(unpartitioned_numel / world_size)
|
| 352 |
+
return partitioned_numel, padding_numel
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
def _zero3_merge_frozen_params(state_dict, world_size, zero_model_states):
|
| 356 |
+
if zero_model_states[0].frozen_param_shapes is None or len(zero_model_states[0].frozen_param_shapes) == 0:
|
| 357 |
+
return
|
| 358 |
+
|
| 359 |
+
if debug:
|
| 360 |
+
for i in range(world_size):
|
| 361 |
+
num_elem = sum(s.numel() for s in zero_model_states[i].frozen_param_fragments.values())
|
| 362 |
+
print(f'rank {i}: {FROZEN_PARAM_SHAPES}.numel = {num_elem}')
|
| 363 |
+
|
| 364 |
+
frozen_param_shapes = zero_model_states[0].frozen_param_shapes
|
| 365 |
+
wanted_params = len(frozen_param_shapes)
|
| 366 |
+
wanted_numel = sum(s.numel() for s in frozen_param_shapes.values())
|
| 367 |
+
avail_numel = sum([p.numel() for p in zero_model_states[0].frozen_param_fragments.values()]) * world_size
|
| 368 |
+
print(f'Frozen params: Have {avail_numel} numels to process.')
|
| 369 |
+
print(f'Frozen params: Need {wanted_numel} numels in {wanted_params} params')
|
| 370 |
+
|
| 371 |
+
total_params = 0
|
| 372 |
+
total_numel = 0
|
| 373 |
+
for name, shape in zero_model_states[0].frozen_param_shapes.items():
|
| 374 |
+
total_params += 1
|
| 375 |
+
unpartitioned_numel = shape.numel()
|
| 376 |
+
total_numel += unpartitioned_numel
|
| 377 |
+
|
| 378 |
+
param_frags = tuple(model_state.frozen_param_fragments[name] for model_state in zero_model_states)
|
| 379 |
+
state_dict[name] = torch.cat(param_frags, 0).narrow(0, 0, unpartitioned_numel).view(shape)
|
| 380 |
+
|
| 381 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 382 |
+
|
| 383 |
+
if debug:
|
| 384 |
+
print(
|
| 385 |
+
f"Frozen params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 386 |
+
)
|
| 387 |
+
|
| 388 |
+
print(f"Reconstructed Frozen fp32 state dict with {total_params} params {total_numel} elements")
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
class GatheredTensor:
|
| 392 |
+
"""
|
| 393 |
+
A pseudo tensor that collects partitioned weights.
|
| 394 |
+
It is more memory efficient when there are multiple groups.
|
| 395 |
+
"""
|
| 396 |
+
|
| 397 |
+
def __init__(self, flat_groups, flat_groups_offset, offset, partitioned_numel, shape):
|
| 398 |
+
self.flat_groups = flat_groups
|
| 399 |
+
self.flat_groups_offset = flat_groups_offset
|
| 400 |
+
self.offset = offset
|
| 401 |
+
self.partitioned_numel = partitioned_numel
|
| 402 |
+
self.shape = shape
|
| 403 |
+
self.dtype = self.flat_groups[0][0].dtype
|
| 404 |
+
|
| 405 |
+
def contiguous(self):
|
| 406 |
+
"""
|
| 407 |
+
Merge partitioned weights from flat_groups into a single tensor.
|
| 408 |
+
"""
|
| 409 |
+
end_idx = self.offset + self.partitioned_numel
|
| 410 |
+
world_size = len(self.flat_groups)
|
| 411 |
+
pad_flat_param_chunks = []
|
| 412 |
+
|
| 413 |
+
for rank_i in range(world_size):
|
| 414 |
+
# for each rank, we need to collect weights from related group/groups
|
| 415 |
+
flat_groups_at_rank_i = self.flat_groups[rank_i]
|
| 416 |
+
start_group_id = None
|
| 417 |
+
end_group_id = None
|
| 418 |
+
for group_id in range(len(self.flat_groups_offset)):
|
| 419 |
+
if self.flat_groups_offset[group_id] <= self.offset < self.flat_groups_offset[group_id + 1]:
|
| 420 |
+
start_group_id = group_id
|
| 421 |
+
if self.flat_groups_offset[group_id] < end_idx <= self.flat_groups_offset[group_id + 1]:
|
| 422 |
+
end_group_id = group_id
|
| 423 |
+
break
|
| 424 |
+
# collect weights from related group/groups
|
| 425 |
+
for group_id in range(start_group_id, end_group_id + 1):
|
| 426 |
+
flat_tensor = flat_groups_at_rank_i[group_id]
|
| 427 |
+
start_offset = self.offset - self.flat_groups_offset[group_id]
|
| 428 |
+
end_offset = min(end_idx, self.flat_groups_offset[group_id + 1]) - self.flat_groups_offset[group_id]
|
| 429 |
+
pad_flat_param_chunks.append(flat_tensor[start_offset:end_offset])
|
| 430 |
+
|
| 431 |
+
# collect weights from all ranks
|
| 432 |
+
pad_flat_param = torch.cat(pad_flat_param_chunks, dim=0)
|
| 433 |
+
param = pad_flat_param[:self.shape.numel()].view(self.shape).contiguous()
|
| 434 |
+
return param
|
| 435 |
+
|
| 436 |
+
|
| 437 |
+
def _zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states):
|
| 438 |
+
param_shapes = zero_model_states[0].param_shapes
|
| 439 |
+
avail_numel = sum([flat_group.numel() for flat_group in fp32_flat_groups[0]]) * world_size
|
| 440 |
+
|
| 441 |
+
# Reconstruction protocol: For zero3 we need to zip the partitions together at boundary of each
|
| 442 |
+
# param, re-consolidating each param, while dealing with padding if any
|
| 443 |
+
|
| 444 |
+
# merge list of dicts, preserving order
|
| 445 |
+
param_shapes = {k: v for d in param_shapes for k, v in d.items()}
|
| 446 |
+
|
| 447 |
+
if debug:
|
| 448 |
+
for i in range(world_size):
|
| 449 |
+
print(f"{FP32_FLAT_GROUPS}[{i}].shape={fp32_flat_groups[i].shape}")
|
| 450 |
+
|
| 451 |
+
wanted_params = len(param_shapes)
|
| 452 |
+
wanted_numel = sum(shape.numel() for shape in param_shapes.values())
|
| 453 |
+
# not asserting if there is a mismatch due to possible padding
|
| 454 |
+
avail_numel = fp32_flat_groups[0].numel() * world_size
|
| 455 |
+
print(f"Trainable params: Have {avail_numel} numels to process.")
|
| 456 |
+
print(f"Trainable params: Need {wanted_numel} numels in {wanted_params} params.")
|
| 457 |
+
|
| 458 |
+
# params
|
| 459 |
+
# XXX: for huge models that can't fit into the host's RAM we will have to recode this to support
|
| 460 |
+
# out-of-core computing solution
|
| 461 |
+
offset = 0
|
| 462 |
+
total_numel = 0
|
| 463 |
+
total_params = 0
|
| 464 |
+
flat_groups_offset = [0] + list(np.cumsum([flat_tensor.numel() for flat_tensor in fp32_flat_groups[0]]))
|
| 465 |
+
for name, shape in tqdm(param_shapes.items(), desc='Gathering sharded weights'):
|
| 466 |
+
unpartitioned_numel = shape.numel()
|
| 467 |
+
total_numel += unpartitioned_numel
|
| 468 |
+
total_params += 1
|
| 469 |
+
partitioned_numel, partitioned_padding_numel = zero3_partitioned_param_info(unpartitioned_numel, world_size)
|
| 470 |
+
|
| 471 |
+
if debug:
|
| 472 |
+
print(
|
| 473 |
+
f"Trainable params: {total_params} {name} full shape: {shape} partition0 numel={partitioned_numel} partitioned_padding_numel={partitioned_padding_numel}"
|
| 474 |
+
)
|
| 475 |
+
|
| 476 |
+
# memory efficient tensor
|
| 477 |
+
tensor = GatheredTensor(fp32_flat_groups, flat_groups_offset, offset, partitioned_numel, shape)
|
| 478 |
+
state_dict[name] = tensor
|
| 479 |
+
offset += partitioned_numel
|
| 480 |
+
|
| 481 |
+
offset *= world_size
|
| 482 |
+
|
| 483 |
+
# Sanity check
|
| 484 |
+
if offset != avail_numel:
|
| 485 |
+
raise ValueError(f"consumed {offset} numels out of {avail_numel} - something is wrong")
|
| 486 |
+
|
| 487 |
+
print(f"Reconstructed Trainable fp32 state dict with {total_params} params {total_numel} elements")
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
def _get_fp32_state_dict_from_zero3_checkpoint(world_size, fp32_flat_groups, zero_model_states,
|
| 491 |
+
exclude_frozen_parameters):
|
| 492 |
+
state_dict = OrderedDict()
|
| 493 |
+
|
| 494 |
+
# buffers
|
| 495 |
+
buffers = zero_model_states[0].buffers
|
| 496 |
+
state_dict.update(buffers)
|
| 497 |
+
if debug:
|
| 498 |
+
print(f"added {len(buffers)} buffers")
|
| 499 |
+
|
| 500 |
+
if not exclude_frozen_parameters:
|
| 501 |
+
_zero3_merge_frozen_params(state_dict, world_size, zero_model_states)
|
| 502 |
+
|
| 503 |
+
_zero3_merge_trainable_params(state_dict, world_size, fp32_flat_groups, zero_model_states)
|
| 504 |
+
|
| 505 |
+
# recover shared parameters
|
| 506 |
+
for pair in zero_model_states[0].shared_params:
|
| 507 |
+
if pair[1] in state_dict:
|
| 508 |
+
state_dict[pair[0]] = state_dict[pair[1]]
|
| 509 |
+
|
| 510 |
+
return state_dict
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
def to_torch_tensor(state_dict, return_empty_tensor=False):
|
| 514 |
+
"""
|
| 515 |
+
Convert state_dict of GatheredTensor to torch tensor
|
| 516 |
+
"""
|
| 517 |
+
torch_state_dict = {}
|
| 518 |
+
converted_tensors = {}
|
| 519 |
+
for name, tensor in state_dict.items():
|
| 520 |
+
tensor_id = id(tensor)
|
| 521 |
+
if tensor_id in converted_tensors: # shared tensors
|
| 522 |
+
shared_tensor = torch_state_dict[converted_tensors[tensor_id]]
|
| 523 |
+
torch_state_dict[name] = shared_tensor
|
| 524 |
+
else:
|
| 525 |
+
converted_tensors[tensor_id] = name
|
| 526 |
+
if return_empty_tensor:
|
| 527 |
+
torch_state_dict[name] = torch.empty(tensor.shape, dtype=tensor.dtype)
|
| 528 |
+
else:
|
| 529 |
+
torch_state_dict[name] = tensor.contiguous()
|
| 530 |
+
return torch_state_dict
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
def get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 534 |
+
tag=None,
|
| 535 |
+
exclude_frozen_parameters=False,
|
| 536 |
+
lazy_mode=False):
|
| 537 |
+
"""
|
| 538 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated state_dict that can be loaded with
|
| 539 |
+
``load_state_dict()`` and used for training without DeepSpeed or shared with others, for example
|
| 540 |
+
via a model hub.
|
| 541 |
+
|
| 542 |
+
Args:
|
| 543 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder
|
| 544 |
+
- ``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``
|
| 545 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 546 |
+
- ``lazy_mode``: get state_dict in lazy mode. It returns a dict of pesduo tensor instead of torch tensor, which is more memory efficient.
|
| 547 |
+
Convert the pesduo tensor to torch tensor by ``.contiguous()``
|
| 548 |
+
|
| 549 |
+
Returns:
|
| 550 |
+
- pytorch ``state_dict``
|
| 551 |
+
|
| 552 |
+
A typical usage might be ::
|
| 553 |
+
|
| 554 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 555 |
+
# do the training and checkpoint saving
|
| 556 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir) # already on cpu
|
| 557 |
+
model = model.cpu() # move to cpu
|
| 558 |
+
model.load_state_dict(state_dict)
|
| 559 |
+
# submit to model hub or save the model to share with others
|
| 560 |
+
|
| 561 |
+
In this example the ``model`` will no longer be usable in the deepspeed context of the same
|
| 562 |
+
application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 563 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 564 |
+
|
| 565 |
+
If you want it all done for you, use ``load_state_dict_from_zero_checkpoint`` instead.
|
| 566 |
+
|
| 567 |
+
Note: the above usage may not work if your application doesn't have sufficient free CPU memory.
|
| 568 |
+
You may need to use the offline approach using the ``zero_to_fp32.py`` script that is saved with
|
| 569 |
+
the checkpoint. Or you can load state_dict in lazy mode ::
|
| 570 |
+
|
| 571 |
+
from deepspeed.utils.zero_to_fp32 import get_fp32_state_dict_from_zero_checkpoint
|
| 572 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, lazy_mode=True) # not on cpu
|
| 573 |
+
for name, lazy_tensor in state_dict.item():
|
| 574 |
+
tensor = lazy_tensor.contiguous() # to cpu
|
| 575 |
+
print(name, tensor)
|
| 576 |
+
# del tensor to release memory if it no longer in use
|
| 577 |
+
"""
|
| 578 |
+
if tag is None:
|
| 579 |
+
latest_path = os.path.join(checkpoint_dir, 'latest')
|
| 580 |
+
if os.path.isfile(latest_path):
|
| 581 |
+
with open(latest_path, 'r') as fd:
|
| 582 |
+
tag = fd.read().strip()
|
| 583 |
+
else:
|
| 584 |
+
raise ValueError(f"Unable to find 'latest' file at {latest_path}")
|
| 585 |
+
|
| 586 |
+
ds_checkpoint_dir = os.path.join(checkpoint_dir, tag)
|
| 587 |
+
|
| 588 |
+
if not os.path.isdir(ds_checkpoint_dir):
|
| 589 |
+
raise FileNotFoundError(f"Directory '{ds_checkpoint_dir}' doesn't exist")
|
| 590 |
+
|
| 591 |
+
state_dict = _get_fp32_state_dict_from_zero_checkpoint(ds_checkpoint_dir, exclude_frozen_parameters)
|
| 592 |
+
if lazy_mode:
|
| 593 |
+
return state_dict
|
| 594 |
+
else:
|
| 595 |
+
return to_torch_tensor(state_dict)
|
| 596 |
+
|
| 597 |
+
|
| 598 |
+
def convert_zero_checkpoint_to_fp32_state_dict(checkpoint_dir,
|
| 599 |
+
output_dir,
|
| 600 |
+
max_shard_size="5GB",
|
| 601 |
+
safe_serialization=False,
|
| 602 |
+
tag=None,
|
| 603 |
+
exclude_frozen_parameters=False):
|
| 604 |
+
"""
|
| 605 |
+
Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict`` file that can be
|
| 606 |
+
loaded with ``torch.load(file)`` + ``load_state_dict()`` and used for training without DeepSpeed.
|
| 607 |
+
|
| 608 |
+
Args:
|
| 609 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 610 |
+
- ``output_dir``: directory to the pytorch fp32 state_dict output files
|
| 611 |
+
- ``max_shard_size``: the maximum size for a checkpoint before being sharded, default value is 5GB
|
| 612 |
+
- ``safe_serialization``: whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).
|
| 613 |
+
- ``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``
|
| 614 |
+
- ``exclude_frozen_parameters``: exclude frozen parameters
|
| 615 |
+
"""
|
| 616 |
+
|
| 617 |
+
# Dependency pre-check
|
| 618 |
+
if safe_serialization:
|
| 619 |
+
try:
|
| 620 |
+
from safetensors.torch import save_file
|
| 621 |
+
except ImportError:
|
| 622 |
+
print('If you want to use `safe_serialization`, please `pip install safetensors`')
|
| 623 |
+
raise
|
| 624 |
+
if max_shard_size is not None:
|
| 625 |
+
try:
|
| 626 |
+
from huggingface_hub import split_torch_state_dict_into_shards
|
| 627 |
+
except ImportError:
|
| 628 |
+
print('If you want to use `max_shard_size`, please `pip install huggingface_hub`')
|
| 629 |
+
raise
|
| 630 |
+
|
| 631 |
+
# Convert zero checkpoint to state_dict
|
| 632 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir,
|
| 633 |
+
tag,
|
| 634 |
+
exclude_frozen_parameters,
|
| 635 |
+
lazy_mode=True)
|
| 636 |
+
|
| 637 |
+
# Shard the model if it is too big.
|
| 638 |
+
weights_name = "model.safetensors" if safe_serialization else "pytorch_model.bin"
|
| 639 |
+
if max_shard_size is not None:
|
| 640 |
+
filename_pattern = weights_name.replace(".bin", "{suffix}.bin").replace(".safetensors", "{suffix}.safetensors")
|
| 641 |
+
# an memory-efficient approach for sharding
|
| 642 |
+
empty_state_dict = to_torch_tensor(state_dict, return_empty_tensor=True)
|
| 643 |
+
state_dict_split = split_torch_state_dict_into_shards(empty_state_dict,
|
| 644 |
+
filename_pattern=filename_pattern,
|
| 645 |
+
max_shard_size=max_shard_size)
|
| 646 |
+
else:
|
| 647 |
+
from collections import namedtuple
|
| 648 |
+
StateDictSplit = namedtuple("StateDictSplit", ["is_sharded", "filename_to_tensors"])
|
| 649 |
+
state_dict_split = StateDictSplit(is_sharded=False,
|
| 650 |
+
filename_to_tensors={weights_name: list(state_dict.keys())})
|
| 651 |
+
|
| 652 |
+
# Save the model by shard
|
| 653 |
+
os.makedirs(output_dir, exist_ok=True)
|
| 654 |
+
filename_to_tensors = state_dict_split.filename_to_tensors.items()
|
| 655 |
+
for shard_file, tensors in tqdm(filename_to_tensors, desc="Saving checkpoint shards"):
|
| 656 |
+
shard_state_dict = {tensor_name: state_dict[tensor_name] for tensor_name in tensors}
|
| 657 |
+
shard_state_dict = to_torch_tensor(shard_state_dict)
|
| 658 |
+
output_path = os.path.join(output_dir, shard_file)
|
| 659 |
+
if safe_serialization:
|
| 660 |
+
save_file(shard_state_dict, output_path, metadata={"format": "pt"})
|
| 661 |
+
else:
|
| 662 |
+
torch.save(shard_state_dict, output_path)
|
| 663 |
+
# release the memory of current shard
|
| 664 |
+
for tensor_name in list(shard_state_dict.keys()):
|
| 665 |
+
del state_dict[tensor_name]
|
| 666 |
+
del shard_state_dict[tensor_name]
|
| 667 |
+
del shard_state_dict
|
| 668 |
+
gc.collect()
|
| 669 |
+
|
| 670 |
+
# Save index if sharded
|
| 671 |
+
if state_dict_split.is_sharded:
|
| 672 |
+
index = {
|
| 673 |
+
"metadata": state_dict_split.metadata,
|
| 674 |
+
"weight_map": state_dict_split.tensor_to_filename,
|
| 675 |
+
}
|
| 676 |
+
save_index_file = "model.safetensors.index.json" if safe_serialization else "pytorch_model.bin.index.json"
|
| 677 |
+
save_index_file = os.path.join(output_dir, save_index_file)
|
| 678 |
+
with open(save_index_file, "w", encoding="utf-8") as f:
|
| 679 |
+
content = json.dumps(index, indent=2, sort_keys=True) + "\n"
|
| 680 |
+
f.write(content)
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def load_state_dict_from_zero_checkpoint(model, checkpoint_dir, tag=None):
|
| 684 |
+
"""
|
| 685 |
+
1. Put the provided model to cpu
|
| 686 |
+
2. Convert ZeRO 2 or 3 checkpoint into a single fp32 consolidated ``state_dict``
|
| 687 |
+
3. Load it into the provided model
|
| 688 |
+
|
| 689 |
+
Args:
|
| 690 |
+
- ``model``: the model object to update
|
| 691 |
+
- ``checkpoint_dir``: path to the desired checkpoint folder. (one that contains the tag-folder, like ``global_step14``)
|
| 692 |
+
- ``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``
|
| 693 |
+
|
| 694 |
+
Returns:
|
| 695 |
+
- ``model`: modified model
|
| 696 |
+
|
| 697 |
+
Make sure you have plenty of CPU memory available before you call this function. If you don't
|
| 698 |
+
have enough use the ``zero_to_fp32.py`` utility to do the conversion. You will find it
|
| 699 |
+
conveniently placed for you in the checkpoint folder.
|
| 700 |
+
|
| 701 |
+
A typical usage might be ::
|
| 702 |
+
|
| 703 |
+
from deepspeed.utils.zero_to_fp32 import load_state_dict_from_zero_checkpoint
|
| 704 |
+
model = load_state_dict_from_zero_checkpoint(trainer.model, checkpoint_dir)
|
| 705 |
+
# submit to model hub or save the model to share with others
|
| 706 |
+
|
| 707 |
+
Note, that once this was run, the ``model`` will no longer be usable in the deepspeed context
|
| 708 |
+
of the same application. i.e. you will need to re-initialize the deepspeed engine, since
|
| 709 |
+
``model.load_state_dict(state_dict)`` will remove all the deepspeed magic from it.
|
| 710 |
+
|
| 711 |
+
"""
|
| 712 |
+
logger.info(f"Extracting fp32 weights")
|
| 713 |
+
state_dict = get_fp32_state_dict_from_zero_checkpoint(checkpoint_dir, tag)
|
| 714 |
+
|
| 715 |
+
logger.info(f"Overwriting model with fp32 weights")
|
| 716 |
+
model = model.cpu()
|
| 717 |
+
model.load_state_dict(state_dict, strict=False)
|
| 718 |
+
|
| 719 |
+
return model
|
| 720 |
+
|
| 721 |
+
|
| 722 |
+
if __name__ == "__main__":
|
| 723 |
+
parser = argparse.ArgumentParser()
|
| 724 |
+
parser.add_argument("checkpoint_dir",
|
| 725 |
+
type=str,
|
| 726 |
+
help="path to the desired checkpoint folder, e.g., path/checkpoint-12")
|
| 727 |
+
parser.add_argument("output_dir",
|
| 728 |
+
type=str,
|
| 729 |
+
help="directory to the pytorch fp32 state_dict output files"
|
| 730 |
+
"(e.g. path/checkpoint-12-output/)")
|
| 731 |
+
parser.add_argument(
|
| 732 |
+
"--max_shard_size",
|
| 733 |
+
type=str,
|
| 734 |
+
default="5GB",
|
| 735 |
+
help="The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size"
|
| 736 |
+
"lower than this size. If expressed as a string, needs to be digits followed by a unit (like `5MB`"
|
| 737 |
+
"We default it to 5GB in order for models to be able to run easily on free-tier google colab instances"
|
| 738 |
+
"without CPU OOM issues.")
|
| 739 |
+
parser.add_argument(
|
| 740 |
+
"--safe_serialization",
|
| 741 |
+
default=False,
|
| 742 |
+
action='store_true',
|
| 743 |
+
help="Whether to save the model using `safetensors` or the traditional PyTorch way (that uses `pickle`).")
|
| 744 |
+
parser.add_argument("-t",
|
| 745 |
+
"--tag",
|
| 746 |
+
type=str,
|
| 747 |
+
default=None,
|
| 748 |
+
help="checkpoint tag used as a unique identifier for checkpoint. e.g., global_step1")
|
| 749 |
+
parser.add_argument("--exclude_frozen_parameters", action='store_true', help="exclude frozen parameters")
|
| 750 |
+
parser.add_argument("-d", "--debug", action='store_true', help="enable debug")
|
| 751 |
+
args = parser.parse_args()
|
| 752 |
+
|
| 753 |
+
debug = args.debug
|
| 754 |
+
|
| 755 |
+
convert_zero_checkpoint_to_fp32_state_dict(args.checkpoint_dir,
|
| 756 |
+
args.output_dir,
|
| 757 |
+
max_shard_size=args.max_shard_size,
|
| 758 |
+
safe_serialization=args.safe_serialization,
|
| 759 |
+
tag=args.tag,
|
| 760 |
+
exclude_frozen_parameters=args.exclude_frozen_parameters)
|