Choosing Precision for AI Models: FP32, BF16, FP16, FP8, and INT8 for Speed and Accuracy
Fewer bits can reduce memory use and speed up some operations, but do not guarantee faster execution or unchanged model quality. This guide compares the range, arithmetic, accumulation, and scaling trade-offs of FP32, TF32, FP16, BF16, FP8, and INT8, then shows how to evaluate quality, latency, and memory under the same conditions.
Choosing Precision for AI Models: FP32, BF16, FP16, FP8, and INT8 for Speed and Accuracy
Using fewer bits can reduce the amount of memory used by model values and may make some operations more efficient on supported hardware. It does not guarantee lower latency or unchanged model quality. The right choice depends on value range and rounding, the arithmetic and accumulation paths, device and library support, and the quality metric for the task you actually run.
This guide compares FP32, TF32, FP16, BF16, FP8, and INT8 in model training and inference. Runtime details are bounded to PyTorch 2.15, NVIDIA TensorRT 11.5, and NVIDIA Transformer Engine 2.21 documentation checked on November 19, 2026. Other accelerators and software may support different formats and behavior.
Separate storage from computation
Saying “the model uses FP16” does not fully describe its numerical path. We need to ask separately how weights and activations are stored, which type enters an operation, what type accumulates its products, and what type is returned. Scaling and conversions add another choice.
For example, TensorRT documents a pattern that uses FP16 inputs while accumulating a matrix product in FP32. PyTorch automatic mixed precision (AMP) also chooses a type per operation: its documentation says linear layers and convolutions can be faster in lower precision, while reductions may need FP32 range. A model can therefore mix types instead of converting every operation to one format.[^1][^2]
| What to inspect | Question | Why it matters |
|---|---|---|
| Storage type | How many bytes does each weight or intermediate use? | Affects memory capacity and traffic. |
| Operation input/output | Which type enters a multiply or convolution, and which type leaves it? | Affects rounding and access to supported low-precision hardware paths. |
| Accumulation type | What type adds the many products together? | Affects accumulated error and overflow. |
| Conversion or quantization | Which scale, calibration data, and conversions are applied? | Changes approximation error and may add runtime work. |
How the common formats differ
Floating-point values use sign, exponent, and significand bits. A wider exponent makes it easier to represent very large or very small values; a wider significand gives finer spacing between nearby values. Bit count alone therefore does not say which format is more accurate for a given workload.
| Format | Raw storage per value | Representation and trade-off |
|---|---|---|
| FP32 | 4 bytes | 1 sign / 8 exponent / 23 significand bits. A common reference format with broader range and more significant bits than the reduced formats here. |
| TF32 | FP32 input data remains 4 bytes | In NVIDIA TensorRT, a Tensor Core computation path for FP32 data uses an 8-bit exponent and 10-bit significand. This is not a separate 19-bit storage format. Check the device and runtime settings. |
| FP16 (binary16) | 2 bytes | 1 / 5 / 10 bits; largest finite value 65,504. It distinguishes nearby values more finely than BF16, but has a narrower range and greater overflow or underflow risk. |
| BF16 | 2 bytes | 1 / 8 / 7 bits; same exponent width as FP32. It covers a wider range than FP16, with coarser spacing between nearby values. |
| FP8 E4M3 / E5M2 | 1 byte | E4M3 uses 1 / 4 / 3 bits and is documented up to ±448; E5M2 uses 1 / 5 / 2 bits and up to ±57,344. Scaling is commonly part of the recipe; check the exact hardware and library support. |
| INT8 | 1 byte | A scaled integer approximation, not floating point. TensorRT INT8 values range from −128 to 127. Scale selection, rounding, and clipping affect error. |
These sizes count only the value itself. They omit scale metadata, padding, runtime buffers, activations, and optimizer state. TF32 should be distinguished from a change to stored values: TensorRT 11.x describes its kTF32 setting as controlling Tensor Core use for FP32 data.[^1][^3]
Why fewer bits may help, but not always
Fewer bytes per value can reduce memory traffic. As an illustrative calculation, 100 million weights take about 400 MB as FP32 values, 200 MB at 16 bits, or 100 MB at 8 bits, using decimal megabytes. This counts the weights alone; it is not a measured model footprint.
A supported low-precision path can also improve throughput for compute-heavy matrix multiplication or convolution. But a model may be limited by another stage, use small batches, or lack an efficient kernel for the chosen type. Conversion, reformatting, or quantization-scale work can add cost. “Half the bits means half the runtime” is not a valid prediction.[^1][^2]
Latency depends on the target GPU, framework and runtime versions, operators, batch and sequence lengths, and concurrent requests. TensorRT 11.x also requires strongly typed networks, where tensor types are specified in the model graph. Do not copy a global-flag recipe from an older version without checking the current documentation.[^3]
Accuracy depends on where rounding happens
Finite-precision arithmetic rounds values that a format cannot represent. A change smaller than the gap between adjacent representable values may disappear. Values outside the range can overflow; very small values can underflow. FP16, for example, cannot represent a finite value above 65,504. BF16 has a much wider exponent range, but its shorter significand rounds nearby values more coarsely.[^1]
INT8 converts a floating-point value by dividing by a scale, rounding, and clipping to the allowed integer range; dequantization multiplies by the scale again. A scale that covers a wider range can leave larger gaps between values, while a narrow scale may clip large values. TensorRT identifies rounding and clipping as sources of quantization error and recommends representative calibration data for post-training quantization (PTQ). Quantization-aware training (QAT) can help recover quality, with additional training and data requirements.[^4][^5]
Numerical error and task accuracy are not the same metric. Small output changes can alter a classification boundary or next-token choice; some intermediate differences may have little effect on final quality. Operations such as Softmax or Sigmoid can be sensitive to small changes, and accumulation can magnify error. Compare intermediate values where useful and always evaluate the task metric.[^1][^2]
Example: testing a memory-constrained inference model
This is an illustrative procedure, not a benchmark. If a model has 100 million weights, the raw weights take roughly 400 MB in FP32 and 200 MB in a 16-bit format. That makes a 16-bit candidate worth testing when weight memory matters, but FP16 and BF16 still have different ranges and value spacing.
Record the existing FP32 task metric and latency. On supported hardware, test FP16 and BF16 separately with the same inputs, batch, and sequence length. If FP16 produces Inf or NaN values or misses the quality requirement, try BF16 or widen only the sensitive operation to FP32. TensorRT documents FP16 inputs with FP32 accumulation as one possible pattern. You do not have to lower every layer to use a faster path.[^1][^3]
If weight memory remains a bottleneck, test FP8 or INT8 as separate inference candidates. For FP8, first verify the exact scaling recipe and device support. For INT8, use calibration data that represents service inputs or consider QAT. Compare the same task metric before deciding whether any speed or memory benefit is worth a quality change.[^4][^5]
A repeatable comparison process
**Fix a baseline.** Record the model, preprocessing, validation data, and task metric using FP32 or the current production format.
**Fix deployment conditions.** Keep GPU, driver, framework/runtime version, batch, input length, and concurrent requests the same. Check that the relevant operators are supported on that device.
**Change one format at a time.** Compare FP16 and BF16 mixed precision first when appropriate; evaluate FP8 or INT8 separately if quantization is needed.
**Measure quality and performance separately.** Choose the task metric—such as classification accuracy, regression error, or a generation evaluation—and define an acceptable threshold from the application’s requirements. Measure latency or throughput and peak memory under the same conditions. Do not claim “accuracy is unchanged” before setting and checking the criterion.
**Find the first divergence if a candidate fails.** Check NaN/Inf values, output distributions, and intermediate tensors against the baseline. For range failures, try BF16 or FP32 for the affected operation. For INT8, check calibration data, scale, and clipping; consider QAT if needed.
**Keep a deployment record.** Record model, device, software versions, format policy, quality, latency, memory, and conversion settings so the result can be reproduced.
For FP16 mixed-precision training, PyTorch 2.15 documents torch.amp.GradScaler as a way to reduce gradient underflow: it scales the loss during backpropagation and unscales gradients before the optimizer update. It does not make every model stable. The documentation warns that some BF16-pretrained models can overflow in FP16’s narrower range, so check losses and gradients for Inf or NaN and compare training quality with the baseline.[^2]
Which candidate should you try first?
If you already have an FP32 baseline, start with a low-precision mixed path supported by the target device and library, then measure it. FP16 has finer spacing than BF16 but a narrower range; BF16 has a wider range and coarser significand precision.
If FP16 overflows, evaluate BF16, or keep only the sensitive operation in FP32. Validate the task metric because BF16’s lower significand precision can matter.
In TensorRT, check TF32 for FP32 calculations when appropriate. It changes the computation path, not the stored model size.
If inference memory or bandwidth remains the bottleneck, evaluate FP8 or INT8 only when the hardware and runtime support them. Include scaling or calibration work in the evaluation.
If no reduced-precision candidate meets the required quality, keep higher precision or widen sensitive operations. The lowest bit count is not the goal by itself.
Sources
[NVIDIA TensorRT 11.5 — Accuracy Considerations](https://docs.nvidia.com/deeplearning/tensorrt/latest/inference-library/accuracy-considerations.html) — FP16, BF16, and TF32 properties, overflow, sensitive operations, and mixed precision.
[NVIDIA TensorRT 11.5 — Precision Control](https://docs.nvidia.com/deeplearning/tensorrt/latest/inference-library/precision-control.html) — strongly typed networks and accumulation precision.
[NVIDIA TensorRT 11.5 — Quantization Workflows](https://docs.nvidia.com/deeplearning/tensorrt/latest/inference-library/quantized-types-workflows.html) — PTQ calibration and QAT.
[NVIDIA TensorRT 11.5 — Quantization Schemes](https://docs.nvidia.com/deeplearning/tensorrt/latest/inference-library/quantized-types-schemes.html) — INT8 and FP8 scaling, rounding, and clipping.
[PyTorch 2.15 — Automatic Mixed Precision](https://docs.pytorch.org/docs/2.15/amp.html) — per-operation dtype choices and FP16 gradient scaling.
[NVIDIA Transformer Engine 2.21 — FP8 Current Scaling](https://docs.nvidia.com/deeplearning/transformer-engine/features/low_precision_training/fp8_current_scaling/fp8_current_scaling.html) — E4M3/E5M2 and scaling.
[NVIDIA CUDA Programming Guide 13.2 — Floating-Point Computation](https://docs.nvidia.com/cuda/cuda-programming-guide/pdf/cuda-programming-guide.pdf) — rounding and why finite-precision operation order can change results; see section 5.5.
[^1]: TensorRT 11.5, Accuracy Considerations. [^2]: PyTorch 2.15, torch.amp. [^3]: TensorRT 11.5, Precision Control. [^4]: TensorRT 11.5, Quantization Workflows and Quantization Schemes. [^5]: NVIDIA Transformer Engine 2.21, FP8 Current Scaling.