Correct behavior when using precision=16 with Tensor-Cores #16698
-
I have notices that setting
Does this means that I should avoid Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@SerezD Good question.
This is a global setting, so you can put it anywhere you want. But of course, preferably before training starts :) Just a heads up: For future questions, consider posting them in our new Forum over at lightning.ai/forums. We are slowly beginning the migration away from GH discussions. |
Beta Was this translation helpful? Give feedback.
@SerezD Good question.
This setting is independent of the "precision" setting in the Trainer. It is regarding how matrix multiplications are performed in general. Note that precision=16 conceptually means "mixed precision", so not everything is in float-16 precision. So you can potentially benefit from this setting regardless.
This is a global setting, so you can put it anywhere you want. But of course, preferably before training starts :)
Just a heads up: For future questions, consider posting them in our new Forum over at lightning.ai/forums. We are slowly beginning the migration away from GH discussions.