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

Resume training, how to change learning scheduler? #19865

Open
jzhanghzau opened this issue May 13, 2024 · 1 comment
Open

Resume training, how to change learning scheduler? #19865

jzhanghzau opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working needs triage Waiting to be triaged by maintainers ver: 2.2.x

Comments

@jzhanghzau
Copy link

Bug description

I used the cosine learning scheduler in my first round training and after reaching the set max steps, I stopped the training. And now I need to restart the training and replace the learning rate scheduler with a new one because if I don't, the learning rate should always be 0. My question is how to restarting the training with a new learning rate scheduler?

I just replace a new learning rate scheduler in def configure_optimizers() and then set last checkpoint in trainer.fit()?

Thanks so much !

JJ

What version are you seeing the problem on?

master

How to reproduce the bug

No response

Error messages and logs

# Error messages and logs here please

Environment

Current environment
#- Lightning Component (e.g. Trainer, LightningModule, LightningApp, LightningWork, LightningFlow):
#- PyTorch Lightning Version (e.g., 1.5.0):
#- Lightning App Version (e.g., 0.5.2):
#- PyTorch Version (e.g., 2.0):
#- Python version (e.g., 3.9):
#- OS (e.g., Linux):
#- CUDA/cuDNN version:
#- GPU models and configuration:
#- How you installed Lightning(`conda`, `pip`, source):
#- Running environment of LightningApp (e.g. local, cloud):

More info

No response

@jzhanghzau jzhanghzau added bug Something isn't working needs triage Waiting to be triaged by maintainers labels May 13, 2024
@jzhanghzau
Copy link
Author

I only want to load weights, everything else will be initialized, how can I do this?

By the way, I want combine this with lightingCLI?

Thanks in advance!

Bests,

JJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs triage Waiting to be triaged by maintainers ver: 2.2.x
Projects
None yet
Development

No branches or pull requests

1 participant