Global device default #8772
Unanswered
jeff-hykin
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 1 reply
-
On your first issue, what exactly do you mean by taking "full advantage of available hardware"? Do you mean all available GPUs? |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a configuration option for having all trainers default to taking full advantage of available hardware instead of having to opt-in every time for every trainer?
I searched through the Trainer docs, but wasn't able to find an option.
Although this isn't the best interface, what I roughly looking for was
On a similar note (and maybe this deserves it's own separate discussion), when inheriting from pl.LightningModule, is there some way to set
self.device
to default to a device other than CPU? Even if the model is sent to GPU, after a training session is run it seems the trainer forcibly sends the model back to the CPUBeta Was this translation helpful? Give feedback.
All reactions