Skip to content

How does LightningLite handle the grad scaler state dict of torch.amp? #10727

Discussion options

You must be logged in to vote

Hey @hiyyg.

You can access the scale through the precision plugin as follows:

self._precision_plugin.scaler

I believe you could get the state and reload it manually.

Best,
T.C

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hiyyg
Comment options

Answer selected by hiyyg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment