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

[model checkpoint] checkpoint hook #598

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

kurisusnowdeng
Copy link
Member

Updated checkpoint hook

interval (int, optional): Saving interval, defaults to 1.
checkpoint_dir (str, optional): Directory of saving checkpoint, defaults to None.
suffix (str, optional): Saving suffix of the file, defaults to ''.
interval (int, optional): Number of epochs between saving the checkpoint, defaults to 1.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why in saving in the interval of epoch?
What about using iterations.

Copy link
Member Author

@kurisusnowdeng kurisusnowdeng Apr 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@feifeibear We are absolutely able to do so. Just add an after_train_step function for this hook.

@feifeibear feifeibear changed the title Feature/Checkpoint hook [model checkpoint] checkpoint hook Apr 1, 2022
@feifeibear feifeibear merged commit 28b515d into hpcaitech:main Apr 1, 2022
@kurisusnowdeng kurisusnowdeng deleted the feature/checkpoint-hook branch April 2, 2022 02:07
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

Successfully merging this pull request may close these issues.

2 participants