Skip to content

Commit

Permalink
feat: Add save_strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Nov 23, 2023
1 parent ce7780b commit ef5d4d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coral_models/wav2vec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def load_training_arguments(self) -> TrainingArguments:
evaluation_strategy="steps" if do_eval else "no",
eval_steps=self.cfg.eval_steps if do_eval else None,
save_steps=self.cfg.save_steps,
save_strategy="no" if self.cfg.save_total_limit == 0 else "steps",
logging_steps=self.cfg.logging_steps,
length_column_name="input_length",
gradient_checkpointing=True,
Expand Down

0 comments on commit ef5d4d5

Please sign in to comment.