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

How to load checkpoint and continue training? #39

Open
CoconutSweet999 opened this issue Apr 26, 2024 · 1 comment
Open

How to load checkpoint and continue training? #39

CoconutSweet999 opened this issue Apr 26, 2024 · 1 comment

Comments

@CoconutSweet999
Copy link

I wonder how to load checkpoint and continue training. Because of the OOM (maybe at 30 epochs), I have to load checkpoint and continue training after OOM. I try to add ckpt_path = '....ckpt' (path from lightning_logs/checkpoint), but it seems useless. How should I solve this problem? Thanks a lot!

@SunHaoOne
Copy link

For example, you can have a try to use different lr or use the default lr.

model = QCNet.load_from_checkpoint(checkpoint_path=ckpt_path)
model = QCNet.load_from_checkpoint(checkpoint_path=ckpt_path, lr=lr)

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