It runs most operations in 16-bit floats (FP16 or BF16) while keeping a master copy of weights in FP32, cutting memory use and speeding up training on modern GPUs.
FP16 has a narrow range, so it needs loss scaling to avoid gradient underflow; BF16 has the range of FP32 and usually needs no loss scaling.
Risks: numerical instability in some operations (softmax, normalization, loss), so keep those in higher precision.
Loading…