Lightning CLI ckpt_path not loading model weights or hyperparams #19092
Unanswered
mhbakalar
asked this question in
Lightning App API: LightningApp, LightningFlow, LightningWork
Replies: 1 comment
-
I haven't looked at the error details. But it is likely that #18105 is related. That is my proposal to properly support |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am having trouble loading a model from checkpoint using the lightning CLI. I have confirmed that I am calling save_hyperparams() in the model init. I also have no problem loading the model using pure lightning code. However, when calling:
python trainer.py validate --ckpt_path lightning_logs/version_0/checkpoints/epoch=19-step=9940.ckpt
, the parameters seem to all have NoneType values. Two snippets below – the successful checkpoint loading using pure lightning, followed by the error message when using lightning CLI. Thanks for the help.Beta Was this translation helpful? Give feedback.
All reactions