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

[WIP] Shift to Single Checkpoint Files #9333

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

rasswanth-s
Copy link
Collaborator

Description

The PR shifts checkpoints to single files, for easy portability.
It also adds the ability to load checkpoints from custom paths

Affected Dependencies

List any dependencies that are required for this change.

How has this been tested?

  • Describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • List any relevant details for your test configuration.

Checklist

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Base automatically changed from shubham/notebooks-with-state to dev October 1, 2024 13:17
checkpoint_path = chkpt_dir / f"{name}.zip"

# get a temporary directory to save the checkpoint
temp_dir = Path(tempfile.mkdtemp())
Copy link
Contributor

Choose a reason for hiding this comment

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

why change to tempfile?

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