Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saved model name not customizable #37

Open
ke-lara opened this issue Jul 18, 2022 · 0 comments
Open

Saved model name not customizable #37

ke-lara opened this issue Jul 18, 2022 · 0 comments

Comments

@ke-lara
Copy link

ke-lara commented Jul 18, 2022

def training_epoch_end(self, training_step_outputs): """ save tokenizer and model on epoch end """ self.average_training_loss = np.round( torch.mean(torch.stack([x["loss"] for x in training_step_outputs])).item(), 4, ) path = f"{self.outputdir}/simplet5-epoch-{self.current_epoch}-train-loss-{str(self.average_training_loss)}-val-loss-{str(self.average_validation_loss)}"

Will be very helpful if you can allow the name customizable (note the 'path' assignment).

Btw, SimpleT5 is simply cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant