File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1170,7 +1170,7 @@ def refine_tuning_config(cls, tune_max_num_tokens: int):
1170
1170
DynamicTensorSpec (
1171
1171
(0 , 1 , 2 , 3 , 4 , 5 ),
1172
1172
(0 , 0 , 0 , 0 , 0 , 0 ),
1173
- get_last_power_of_2_num_tokens_buckets (tune_max_num_tokens ),
1173
+ get_last_power_of_2_num_tokens_buckets (tune_max_num_tokens , 8 ),
1174
1174
lambda x : min (last_positive_power_of_2 (x ), tune_max_num_tokens ),
1175
1175
cls .dynamic_tensor_initializers ,
1176
1176
),
@@ -1181,7 +1181,7 @@ def refine_tuning_config(cls, tune_max_num_tokens: int):
1181
1181
DynamicTensorSpec (
1182
1182
(0 , 1 , 2 , 3 , 4 ),
1183
1183
(0 , 0 , 0 , 0 , 0 ),
1184
- get_last_power_of_2_num_tokens_buckets (tune_max_num_tokens ),
1184
+ get_last_power_of_2_num_tokens_buckets (tune_max_num_tokens , 8 ),
1185
1185
lambda x : min (last_positive_power_of_2 (x ), tune_max_num_tokens ),
1186
1186
cls .dynamic_tensor_initializers [:5 ],
1187
1187
),
You can’t perform that action at this time.
0 commit comments