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

Potential issues if multiple checkpoints for one config #19

Closed
eddiebergman opened this issue Oct 23, 2023 · 1 comment
Closed

Potential issues if multiple checkpoints for one config #19

eddiebergman opened this issue Oct 23, 2023 · 1 comment
Milestone

Comments

@eddiebergman
Copy link
Contributor

ckpt_files = glob.glob(str(checkpoint_dir / "*.ckpt"))
if ckpt_files:
# Load the checkpoint and retrieve necessary data
checkpoint_path = ckpt_files[-1]
checkpoint = torch.load(checkpoint_path)

This just grabs the last checkpoint found by glob which gives no guaranteed order of what it returns. For now it might be safer to just error if multiple are found. Not sure about a long term solution

@eddiebergman eddiebergman added this to the Runtime milestone Jul 30, 2024
@eddiebergman
Copy link
Contributor Author

This was solved by #126

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant