s4 icon indicating copy to clipboard operation
s4 copied to clipboard

Does current codebase support fp16/bf16?

Open jzhang38 opened this issue 2 years ago • 1 comments

I attempted to execute the code while enabling bf16 but came across some error messages. Furthermore, I conducted a search for the keywords "bf16" or "fp16" within this repository but found no results. Could this imply that this codebase does not presently support low-precision training?

jzhang38 avatar May 04 '23 13:05 jzhang38

I've used mixed precision (fp16) in the past through Pytorch Lightning's automatic features. It's as simple as passing in a flag to the Trainer: https://lightning.ai/docs/pytorch/stable/common/precision_intermediate.html

albertfgu avatar May 05 '23 15:05 albertfgu