Fine-Tuning, and When Not ToLesson 15 of 84

Module 2 · How training actually works

Precision, and why bf16 ended a class of bugs

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 6 of 9 in this chapter

This chapter’s goalTrace one optimisation step from a batch of tokens to a changed weight, and predict which way loss, memory and stability move when you change the learning rate, the batch size, the precision or the number of epochs.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Three ways to store a number

A floating-point number is a sign bit, some exponent bits and some mantissa bits. The exponent sets the range: how large and how small a value can be. The mantissa sets the precision: how finely values are distinguished within that range.

  • fp32: 1 sign, 8 exponent, 23 mantissa. Range to about 3 × 10³⁸, roughly seven decimal digits of precision.
  • fp16: 1, 5, 10. Maximum value 65,504. Smallest normal value about 6 × 10⁻⁵. Three decimal digits.
  • bf16: 1, 8, 7. The same exponent range as fp32, with only three mantissa bits’ worth of precision more than a rounding error.

That comparison is the whole story. bf16 gave up precision to keep range, and for neural network training range turned out to matter enormously and precision hardly at all.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Running Models Yourself exam.

Stuck on something?Ask Rafael, your AI tutor

How to cite: Addaly (2026) ‘Precision, and why bf16 ended a class of bugs’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/precision-and-mixed-precision (Accessed: 27 November 2026).