Glossary

What is Mixed-precision training?

In Turkish: Karma hassasiyetli eğitim · Topic: Models and training

A method for training neural networks that does most calculations in low-precision number formats and keeps critical parts in high precision, saving memory and time.

How does it work?

Computers store numbers using a certain number of bits. Fewer bits mean less memory and faster math, but less exact numbers. In mixed precision, most forward and backward calculations are done in 16-bit formats. The master copy of the weights, and the place where small updates accumulate, is kept in a more precise format such as 32-bit. Extra techniques such as loss scaling are also used to stop very small values from being rounded to zero.

Why does it matter?

Training large language models is very expensive, and GPU memory is limited. Mixed precision makes it possible to train larger models on the same hardware or to finish training sooner. For this reason it is close to a standard approach in training large models today.

Example

On modern GPUs, training often uses 16-bit formats such as bfloat16 and FP16, while a precise copy of the weights may be kept separately in a 32-bit format.

FAQ

Is mixed-precision training the same as quantization?

No. Mixed precision gains speed and memory savings during training. Quantization usually means storing and running an already trained model with fewer bits.

Does low precision reduce model quality?

When done properly, there is usually no noticeable loss in quality. If set up poorly, training can become unstable, which is why the sensitive parts are kept in higher precision.

All terms