Instantiate custom ClusterEnvironment from LightningCLI #13156
Unanswered
Darktex
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
The registries are being deprecated, see #13221. The only benefit that the registries provided was being able to specify a class just by its name instead of the full class path. You should be able to configure environments just like it is done for callbacks. It would be specifying elements in the trainer:
plugins:
- class_path: pytorch_lightning.plugins.environments.SLURMEnvironment
init_args:
auto_requeue: true |
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.
-
Love the LightningCLI API! According to the docs, we seem to be able to register only callbacks and not generic plugins.
I was wondering if there was any workaround for ClusterEnvironments. In my case, I don't necessarily need to construct the ClusterEnvironment from CLI as it will always be launched there. I just don't want to lose the other goodies of LightningCLI and revert back to the "old" argparse style...
Beta Was this translation helpful? Give feedback.
All reactions