-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
deprecationIncludes a deprecationIncludes a deprecationdesignIncludes a design discussionIncludes a design discussionrefactor
Milestone
Description
Proposed refactoring or deprecation
Currently we have two methods to specifying devices. Let's take GPUs for example:
- The standard case that we've all grown used to and are mostly aware of.
trainer = Trainer(gpus=2)- Introduced in 1.5, tries to make the number of devices agnostic. This means if you specify
accelerator='tpu'we automatically know to use 2 TPU cores.
trainer = Trainer(devices=2, accelerator='gpu')Recently, it has come up in #10404 (comment) that we may want to deprecate and prevent further device specific names from appearing in the Trainer (such as hpus).
Related conversation #9053 (comment)
I see two options:
🚀 We keep both device specific arguments (gpus tpu_cores ipus for the Trainer) and devices
👀 We drop gpus tpu_cores ipus in the future and fully rely on devices. (Potentially this would likely be done in Lightning 2.0, instead of after 2 minor releases)
kaushikb11 and SeanNarenjustusschock, carmocca, rohitgr7, tchaton, ananthsub and 2 more
Metadata
Metadata
Assignees
Labels
deprecationIncludes a deprecationIncludes a deprecationdesignIncludes a design discussionIncludes a design discussionrefactor