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

Restore latest checkpoint #374

Closed
gianlucadetommaso opened this issue Jun 25, 2023 · 2 comments
Closed

Restore latest checkpoint #374

gianlucadetommaso opened this issue Jun 25, 2023 · 2 comments

Comments

@gianlucadetommaso
Copy link

gianlucadetommaso commented Jun 25, 2023

Hello,
is there available functionality to restore the latest checkpoint stored in a directory? I'm looking for something analogous to flax.checkpoints.latest_checkpoint. In particular, I would like to obtain the path to the latest checkpoint in a given directory.

Currently it is not super clear to me what happens when I pass a directory to CheckpointManager.restore. Do I automatically get the latest checkpoint? If so, is there a way to access its path?

Thanks!

@cpgaffney1
Copy link
Collaborator

See https://orbax.readthedocs.io/en/latest/api_reference/checkpoint.checkpoint_manager.html#id1. CheckpointManager.restore requires that you pass a step, and it provides methods to help you get all current steps, latest step, or best step according to some metric.

@gianlucadetommaso
Copy link
Author

Thanks, I had missed it!

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

2 participants