torch.compile - exclude certain pl.Trainer functions #17213
Closed
Unanswered
mishooax
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
opened an issue here: #17214 |
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.
-
Hi, I'm torch.compiling my lightning model - while I do see a non-negligible (~ 20%!) speedup in training, torch.dynamo errors out in the validation loop when it encounters a
self.logger.experiment.log
call to Weights&Biases (see below)Is there anything i can do to stop torch.dynamo from choking on this bit of code? Maybe some decorator that tells JIT to ignore the offending
self.logger.experiment.log
call? Many thanks!Beta Was this translation helpful? Give feedback.
All reactions