How to add torch.compile() in LightningModule #15896
Unanswered
mactavish91
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
You can simply pass your LM to compiled_model = torch.compile(your_lightning_module)
trainer.fit(compiled_model) Issues/PRs/discussions labelled "pytorch 2.0" might have useful information for you :) |
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.
-
I want to use pytorch2.0 to accelerate training, is there any method?
Beta Was this translation helpful? Give feedback.
All reactions