How to provide a pretrained model as an argument to Lightning CLI? #20139
Unanswered
SirDavidLudwig
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 3 replies
-
By "pretrained" I suppose you mean that you want an encoder instantiated and some pretrained weights loaded, right? If so, the CLI by itself is not able to do that. The logic to load weights would need to be implemented in the module or the decoder and exposed as an init parameter. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a Lightning model that expects a pretrained encoder for one of its constructor parameters like so:
Using LightningCLI, how can I go about loading this pretrained encoder and passing it into the model via CLI arguments or a yaml config?
Beta Was this translation helpful? Give feedback.
All reactions