Case & CodeA FIELD GUIDE TO AI
Start learning
Advanced

Bit depth and precision

Also: numerical precision, storage precision, lower precision, mixed precision, FP16, FP32, BF16, INT8, 4-bit, 8-bit, 16-bit

In plain words

How much detail each number in a model is stored with. Fewer bits means a smaller, faster, slightly rougher model.

The fuller definition

Numerical precision describes how values are represented with bits. Formats differ in range and precision, not just size; AI systems may mix formats for weights and computation.

Same eight billion values, different storage precision
32 bits32 GB
16 bits16 GB
8 bits8 GB
4 bits4 GB

Idealized value storage only, in decimal GB. Metadata, caches, mixed precision, and runtime overhead add to actual requirements. This is not a GPU purchasing calculator.

A concrete example

An idealized eight-billion-value array uses 16 billion bytes at 16 bits per value, before metadata and other overhead.

The distinction that matters

File-size arithmetic is a lower-level estimate, not a complete hardware requirement.

Related terms

Where it is taught

Understand the hardware a local model needs

Source and further reading

Hugging Face · Model inference and quantization

The definition and example are written for this library. The link gives background, official documentation or legal authority as labelled. Legal scope depends on the jurisdiction and current text; product features depend on release and settings.

Lessons, terms, practical guides and sources ESC