Skip to content

Commit

Permalink
Enable eval on start
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragjn committed Dec 8, 2024
1 parent d2ebf28 commit c7fc338
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/axolotl/core/trainer_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1492,7 +1492,10 @@ def build(self, total_num_steps):
else max(min(int(0.005 * total_num_steps), 10), 1)
)

training_arguments_kwargs = {"average_tokens_across_devices": True}
training_arguments_kwargs = {
"average_tokens_across_devices": True,
"eval_on_start": True,
}
if self.cfg.bf16 == "full":
training_arguments_kwargs["bf16_full_eval"] = True
else:
Expand Down

0 comments on commit c7fc338

Please sign in to comment.