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

checkpoint as a model config parameter for warmup cosine learning rates #66

Merged
merged 5 commits into from
Jan 25, 2024

Conversation

edyoshikun
Copy link
Contributor

This PR adds the an extra parameter for the CLI to provide the checkpoint path to be loaded such that is compatible when using warmup cosine learning rates. By default, the lightning CLI has a ckpt_path, but this loads the previous checkpoint's learning rate as well as the weights. When using the latter option, the re-training for next model starts as a 'sine' function rather than cosine.

@edyoshikun edyoshikun requested a review from ziw-liu January 25, 2024 00:50
@edyoshikun edyoshikun marked this pull request as ready for review January 25, 2024 00:50
@edyoshikun edyoshikun marked this pull request as draft January 25, 2024 00:54
@edyoshikun edyoshikun marked this pull request as ready for review January 25, 2024 01:16
viscy/light/engine.py Outdated Show resolved Hide resolved
@edyoshikun edyoshikun merged commit 582a4c8 into main Jan 25, 2024
3 checks passed
@edyoshikun edyoshikun deleted the chkpt_loader branch January 25, 2024 17:38
edyoshikun added a commit that referenced this pull request Jun 12, 2024
…es (#66)

* adding chkpt path optional to configfile to use warmup cosine learning rate

* fixing the loading of weights

* remove additional blank

---------

Co-authored-by: Ziwen Liu <[email protected]>
edyoshikun added a commit that referenced this pull request Jun 12, 2024
…es (#66)

* adding chkpt path optional to configfile to use warmup cosine learning rate

* fixing the loading of weights

* remove additional blank

---------

Co-authored-by: Ziwen Liu <[email protected]>
edyoshikun added a commit that referenced this pull request Jun 12, 2024
…es (#66)

* adding chkpt path optional to configfile to use warmup cosine learning rate

* fixing the loading of weights

* remove additional blank

---------

Co-authored-by: Ziwen Liu <[email protected]>
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