Fix restoring steps
Browse files- run_mlm_flax_stream.py +1 -1
run_mlm_flax_stream.py
CHANGED
@@ -691,7 +691,7 @@ if __name__ == "__main__":
|
|
691 |
eval_samples = advance_iter_and_group_samples(training_iter, data_args.num_eval_samples, max_seq_length)
|
692 |
|
693 |
steps = tqdm(range(num_train_steps), desc="Training...", position=0)
|
694 |
-
for step in range(
|
695 |
if step < saved_step:
|
696 |
steps.update(1)
|
697 |
continue
|
|
|
691 |
eval_samples = advance_iter_and_group_samples(training_iter, data_args.num_eval_samples, max_seq_length)
|
692 |
|
693 |
steps = tqdm(range(num_train_steps), desc="Training...", position=0)
|
694 |
+
for step in range(0, num_train_steps):
|
695 |
if step < saved_step:
|
696 |
steps.update(1)
|
697 |
continue
|