Skip to content

Commit

Permalink
update save model.
Browse files Browse the repository at this point in the history
  • Loading branch information
shibing624 committed Feb 13, 2022
1 parent 285da40 commit a26aac5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions autocomplete/gpt2_coder.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ def train_model(
max_grad_norm=max_grad_norm,
max_steps=max_steps
)

self.save_model(output_dir, model=self.model)
logger.info(f" Training of GPT2 model complete. Saved to {output_dir}.")

return global_step, training_details
Expand Down

0 comments on commit a26aac5

Please sign in to comment.