what is the best practice to get a fabric instance? #18839
Unanswered
tanganke
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
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.
-
To train a deep neural network with lightning.Fabric, it's common to use the following template
note that for every function call, we pass a fabric object in.
This means that for existing code, migrating from vanilla pytorch code to the fabric framework requires changing the signatures of all functions.
It's a lot of work and it's easy to make mistakes.
My question is:
Is there a singleton pattern in Fabric's design, or is it possible to get a list of launched fabric instances through a function?
for example:
Beta Was this translation helpful? Give feedback.
All reactions