Skip to content

Commit

Permalink
lightning cli
Browse files Browse the repository at this point in the history
  • Loading branch information
SkafteNicki committed Nov 28, 2022
1 parent 8996b7f commit 6338916
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion s4_debugging_and_logging/M14_boilerplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,15 @@ framework to do some of the heavy lifting you need to have gone through some of
[profiler]https://pytorch-lightning.readthedocs.io/en/latest/tuning/profiler.html) argument in
the `Trainer` object.

11. Free exercise: Experiment with what the lightning framework is capable of. Either try out more of the trainer flags,
11. (Optional) Another great feature of Lightning is that the allow for easily defining command line interfaces through
the [Lightning CLI](https://pytorch-lightning.readthedocs.io/en/stable/cli/lightning_cli.html) feature. The
Lightning CLI is essentially a drop in replacement for defining command line interfaces (covered in
[this module](../s10_extra/M29_cli.md)) and can also replace the need for config files (covered in
[this module](../s3_reproducibility/M10_config_files.md)) for securing reproducibility when working inside the
Lightning framework. We highly recommend checking out the feature and that you try to refactor your code such that
you do not need to call `trainer.fit` anymore but it is instead directly controlled from the Lightning CLI.

12. Free exercise: Experiment with what the lightning framework is capable of. Either try out more of the trainer flags,
some of the other callbacks, or maybe look into some of the other methods that can be implemented in your lightning
module. Only your imagination is the limit!

Expand Down

0 comments on commit 6338916

Please sign in to comment.