Skip to content
Discussion options

You must be logged in to vote

It is possible. First you would subclass Trainer and add methods for each of the subcommands you want. These new methods should be usable independent of the CLI. Then you would need to subclass LightningCLI, in the __init__ make your new trainer the default and override https://github.com/Lightning-AI/lightning/blob/d4c7f91fec6f4cd8edf5124a5cdfac08a07c4bde/src/pytorch_lightning/utilities/cli.py#L534-L543

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vikigenius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lightningcli pl.cli.LightningCLI pl Generic label for PyTorch Lightning package
2 participants