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

Mention pytorch-lightning's LightningCLI #79

Closed
mauvilsa opened this issue Jul 14, 2022 · 1 comment
Closed

Mention pytorch-lightning's LightningCLI #79

mauvilsa opened this issue Jul 14, 2022 · 1 comment

Comments

@mauvilsa
Copy link

Given what is currently in the course, it might be worth considering to mention pytorch-lightning's LightningCLI. Already pytorch-lightning is in M14 - Minimizing boilerplate. But LightningCLI could be a good complement to what is in other sections. The main goals that LightningCLI addresses are:

  • Automatically save the full config (reproducibility)
  • Separation of code from config (good practice)
  • Make things automatically configurable (minimize boilerplate)

When the code is well written, i.e. parameters with type hints, descriptions in docstrings, defined where they are used (M7 - Good coding practice), all of these parameters automatically become configurable M10 - Config files. There is no need to learn how to use another framework like Hydra.

@SkafteNicki
Copy link
Owner

Add in 6338916, thanks for the suggestion.

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

No branches or pull requests

2 participants