logo

Our Blog

Try Kriyam AI
Multimodal & Language Models

Understanding LLM Precision — How Bit Formats Shape Training, Inference, and Quality

From full-precision training to compressed inference — the bit format of your model weights determines everything from memory footprint to output quality.
By: Avishek Jana | 9 min read | June 4, 2026
1_QKMWDFTC5jcwe07NPc1VjA.webp

Every time you send a prompt to a Large Language Model, what happens under the hood is straightforward in principle. A massive collection of numbers — stored in the form of matrices — are multiplied together billions of times over until the final output emerges.

 

But what are these numbers exactly?

There are two kinds.

  • First, your text prompt itself gets converted into numbers — because the model does not understand words.
  • Second, every Large Language Model has weights — the trained parameters that encode everything the model has learned. These weights are stored in a specific numerical format, and that format turns out to matter enormously.

Weights can be stored at different levels of precision — 32-bit, 16-bit, 8-bit, or even 4-bit. The precision you choose directly determines how much memory the model needs to load onto a GPU, how fast it runs, and how much quality you trade away in the process.

This is the story of floating-point numbers — the invisible foundation beneath every LLM. Understanding their precision is the key to understanding how modern AI models are built, compressed, and deployed.

What Is a Floating-Point Number?

A floating-point number is simply a way of representing a decimal number in a computer.

For Example:

  • 0.47382910
  • 5.128292
  • 263.3

These are all floating-point numbers. Now, for a computer, we use something called the IEEE Standard for Floating-Point Arithmetic, or IEEE 754, Which gives us a more common representation of floating-point numbers to do the computation. Let’s see an example of how floating-point numbers look like In 32-bit precision.

Representation of a floating-point number in IEEE 754 32-bit format

Say, our input is: 263.3

Step 1: Convert the input to binary

 

1_LxTn9apqZLALxcl3dY9kZA.webp

Step 2: Represent the Binary in Scientific Form

In this step, we need to shift the decimal point to The leftmost bit reaches the first element in the binary representation.

1_f1gMRhiaUSLOUXeaeHq4qg.webp

Step 3: Convert to IEEE 754 format

1_2GvmHZ10Yy-7P0Gf88q2cg.webp

As per IEEE 754 format every floating-point number has three parts:

  • Sign: The first 1 bit is reserved for the sign bit. If the number is positive, then it is 0. If negative, then 1.
  • Exponent: The next 8 bits are reserved for the exponential bit. The exponents have to cover negative and positive numbers. They have given a certain number as a bias value. The exponent bias for a single-precision number is 127.
1_9sFY0sRN1a0comqYGW1tyw.webp
  • Mantissa: The last 23 bits represents the significant digits of the number. More mantissa bits means finer precision. This is the field that determines how accurately each model weight is represented — and the first to be sacrificed when you move to lower precision formats.
1_Un037f4o8qRs62wDlqYohA.webp

Final IEEE 754 representation of the input 263.3 would be:

1_FxmMwicyOjvDwCIoqDfgRg.webp

Different Floating Point Precision Formats — And How They Determine Memory

Not all floating-point numbers are created equal. The same three-part structure — sign, exponent, mantissa — exists across all formats, but how many bits are allocated to each field changes dramatically. And those changes have direct consequences for memory, speed, and accuracy.

Here are the five formats you will encounter most often in the world of LLMs:

1_hgrMXhXQmNzf72j0cLNBoQ.webp

FP32 — Full Precision

FP32 is the gold standard. With 32 bits — 1 for sign, 8 for exponent, and 23 for mantissa — it can represent numbers with extremely fine precision. This is the format most models are originally trained in, and it is the baseline against which everything else is measured.

The cost is straightforward: every single weight takes up 4 bytes of memory. For a 7 billion parameter model, that is 28 GB just for the weights alone.

FP16 — Half Precision

FP16 cuts the bit count in half — 1 bit for sign, 5 for exponent, and 10 for mantissa. The result is 2 bytes per weight instead of 4, halving the memory footprint immediately.

FP16 is used more commonly for inference.

BF16 — Brain Float 16

BF16 is a clever compromise developed by Google. Like FP16, it uses 16 bits total — but it allocates them differently: 1 for sign, 8 for exponent, and only 7 for mantissa.

By keeping the same exponent range as FP32, BF16 avoids the overflow and underflow issues that plague FP16 during training. It sacrifices mantissa precision instead — meaning values are less finely resolved, but the range stays stable.

 

BF16 has become the dominant format for training modern LLMs.

INT8–8-bit Integer

INT8 is a departure from floating-point entirely. Rather than storing a decimal number with sign, exponent, and mantissa, it stores a simple integer between −128 and 127.

This cuts memory to 1 byte per weight — a 4× reduction from FP32. The challenge is that model weights are not naturally integers, so a conversion process called quantization is required to map floating-point values into this integer range. Done carefully, the quality loss is minimal. Done poorly, the model degrades noticeably.

INT4–4-bit Integer

INT4 pushes compression to its current practical limit. At just 4 bits per weight — it delivers an 8× memory reduction compared to FP32. A 7B model that would need 28 GB in FP32 can fit into roughly 3.5 GB in INT4.

The precision loss is significant. With only 16 possible values to represent each weight, the model is working with very coarse approximations. For many tasks this is surprisingly tolerable — but for tasks requiring fine reasoning or high factual accuracy, the quality gap becomes noticeable.

1_orfvzCsou_kf2KXBzp4J9w.webp

How Precision Affects Computation Speed

Lower precision does not just reduce memory — it also makes computation significantly faster. This is one of the most important and least understood benefits of quantization.

Modern GPUs are designed with dedicated hardware for specific precision formats. NVIDIA’s Tensor Cores, introduced with the Volta architecture and refined in every generation since, can process FP16 and BF16 operations at dramatically higher throughput than FP32. On the H100, the theoretical peak throughput for BF16 matrix multiplications is nearly 2× that of FP32.

But the speed gains do not stop there. INT8 and INT4 push this even further. Because integer arithmetic is simpler than floating-point arithmetic, GPUs can pack more operations into the same hardware. The H100 can process INT8 matrix multiplications at roughly 4× the throughput of FP32, and INT4 at nearly 8×.

There is a second, more subtle reason lower precision is faster — memory bandwidth. As we covered in previous article, the GPU’s biggest bottleneck during inference is feeding data to the compute cores fast enough. Smaller weights mean more of them can fit in SRAM at once, and the GPU spends less time waiting for data to travel from DRAM. Lower precision makes the entire data pipeline more efficient, not just the computation itself.

This is why the move from FP32 to BF16 for training — and from FP16 to INT4 for inference — has been so consequential. It is not a compromise. For most practical purposes it is a strict improvement — smaller, faster, and accessible on cheaper hardware.


Quantization: The Technique That Shrinks LLMs Into Lower Precision

As I mentioned, training usually happens nowadays in BF16 or FP32 — high precision formats that keep the model numerically stable and accurate throughout the training process. The result is a set of weights that are large, precise, and ready to use — but expensive to store and serve.

This is where quantization comes in. Quantization is the process of taking those high-precision trained weights and converting them into a lower precision format — INT8 or INT4 — after training is already complete. The goal is to make the model smaller and faster to run, without having to retrain it from scratch.

Two Main Approaches

Post-Training Quantization (PTQ) quantizes the model after training is complete. It is fast, practical, and requires no retraining. Most open-weight models you download today — in GGUF, GPTQ, or AWQ format — have been post-training quantized.

Quantization-Aware Training (QAT) simulates the effect of quantization during training itself, allowing the model to adapt its weights to lower precision from the start. It produces better quality at the same bit width — but requires significantly more compute.


The Quality Tradeoff

Moving from FP32 to BF16 or FP16 produces virtually no measurable quality difference for most tasks. This is why all modern LLMs are trained in BF16 and served in FP16 — there is no meaningful cost.

INT8 is similarly robust. A well-quantized INT8 model performs within 1–2% of its FP16 counterpart across standard benchmarks. For most production deployments, this is entirely acceptable.

INT4 is where the gap becomes noticeable. With only 16 possible values per weight, the first things to degrade are mathematical reasoning, factual precision, and coherence in long conversations. For everyday tasks — summarization, writing — a well-quantized INT4 model remains surprisingly capable.


Mental Models to Keep

  • A weight is just a number in a box. The size of the box — 32-bit, 16-bit, 8-bit, 4-bit — determines how precisely that number is stored, how much memory it occupies, and how fast the GPU can process it.
  • Precision and memory are directly proportional. Cut the bits in half, cut the memory in half. Go from FP32 to INT4 and you fit 8× more weights in the same space. There is no trick — it is just arithmetic.
  • Lower precision is faster, not just smaller. Modern GPU Tensor Cores are purpose-built for low-precision math. INT4 does not just save memory — it unlocks significantly higher compute throughput on the same hardware.
  • Quality loss follows a curve, not a cliff. FP32 → BF16 → FP16 → INT8 is nearly lossless. INT4 is where you start to feel it — but for most tasks, a well-quantized model remains remarkably capable.
  • Quantization is how a trained model gets made smaller. It comes in two forms — Post-Training Quantization, which is fast and requires no retraining, and Quantization-Aware Training, which produces better quality but costs significantly more compute.

Weights are only half the memory story. The model weights are static — they never change during inference. But once tokens start generating, something else begins filling up GPU memory — and it grows with every word in your conversation. It is called the KV Cache, and that is exactly what we will unpack in the next article.

 

 

Press enter or click to view image in full size


 

Related Articles
100 Billion Neurons and One Big Idea That Built Modern AI

March 15, 2026

100 Billion Neurons and One Big Idea That Built Modern AI

A journey from neurons to neural networks, from biology to artificial intelligence

Kriyam Labs is the research arm of Kriyam (Geogo Techsolutions Private Limited, Bengaluru, India).

© All rights reserved | Kriyam.ai 2026

About

About Kriyam.aiKriyam AI StudioOpen project initiative
wave1wave2