FP16
A 16-bit half-precision floating-point format and a commonly used numerical precision standard in deep learning. Compared with FP32 it halves memory usage, while retaining a higher dynamic range than quantized formats such as INT8.
Core Facts
FP8 is an 8-bit floating-point format natively supported by newer architectures such as the NVIDIA H100, which can compress data volume by half compared to FP16/BF16
Quantized KV caches (such as storing KV vectors in FP8 or INT4) can compress the cache size to 1/2 or even 1/4 of the original.
Mixed-precision training stores weights in FP32 while using FP16 or BF16 for forward and backward pass computations, which can reduce memory usage by nearly half.
Timeline (last 90 days)
Changes to large model services such as weight fine-tuning, lowering inference precision from FP16 to INT8, shrinking the context window, and adjusting system prompts may alter model behavior without any declaration of a version number change.
Outliers far larger than the mean often appear in activations, and direct quantization severely degrades accuracy; mainstream approaches include per-token/channel dynamic quantization, SmoothQuant-type methods, and retaining FP16 for outlier channels.
Large-model weights are typically stored by default in 16-bit floating-point (FP16) precision.
Mixed-precision training (AMP) uses low-precision formats such as FP16 or FP8, whose dynamic range is narrower and which is prone to gradient underflow or overflow.
Common technical triggers for NPU fallback include: unsupported operators, data type mismatches (e.g., the NPU only supports specific INT8/FP16 combinations), tensor shape or layout constraints (e.g., channel alignment, unsupported NHWC/NCHW conversion), and dynamic control flow or data-dependent branching.
The precision of weight values (such as FP16 or BF16) introduces representation overhead when serialized into text, further inflating the input size.
Mixed-precision operators mean mixing FP16/BF16 with FP32 within the same forward computation, using low precision for compute-intensive operators to improve throughput and retaining FP32 in numerically sensitive parts to avoid overflow and the accumulation of rounding errors.
A 7B-parameter model requires about 14GB of VRAM at FP16 precision, and actual requirements are higher once KV Cache and inference framework overhead are added.
In MoE inference, lowering weight bit width from FP16 to FP8/INT8 reduces the number of bytes proportionally, thereby shortening latency, provided that model throughput is limited by bandwidth rather than compute.
n-gram tables are usually stored at full precision (such as FP16 or BF16), further amplifying memory usage.
23 more timeline events
All Facts (20)
FP8 is an 8-bit floating-point format natively supported by newer architectures such as the NVIDIA H100, which can compress data volume by half compared to FP16/BF16
90%VerifiedQuantized KV caches (such as storing KV vectors in FP8 or INT4) can compress the cache size to 1/2 or even 1/4 of the original.
90%VerifiedMixed-precision training stores weights in FP32 while using FP16 or BF16 for forward and backward pass computations, which can reduce memory usage by nearly half.
90%VerifiedCompared to FP16, BF16 has the same 8-bit exponent width as FP32 and therefore a larger dynamic range, making it the mainstream precision choice for current large model training.
90%VerifiedA 70B-parameter FP16 model requires approximately 140 GB of video memory, approximately 70 GB after INT8 quantization, and approximately 35–40 GB after INT4 quantization.
90%VerifiedFP32 uses 4 bytes per parameter, FP16/BF16 uses 2 bytes, INT8 quantization uses 1 byte, and INT4 quantization uses 0.5 bytes.
80%VerifiedIn FP16 precision, large models require approximately 2 GB of VRAM per 1 billion parameters.
80%VerifiedQ4 means each weight is stored using 4-bit integers, reducing the size by approximately 75% compared to the original 16-bit floating point
75%VerifiedFP32 uses 32 bits to represent floating-point numbers, consisting of 1 sign bit, 8 exponent bits, and 23 mantissa bits.
75%VerifiedQuantization (such as INT8 and FP8) can reduce memory usage and improve throughput while maintaining acceptable accuracy loss in most scenarios.
75%VerifiedQuantizing from FP32 to INT8 can reduce the model size to one quarter of the original.
75%VerifiedIn mixed-precision training, the forward pass uses FP16 to leverage Tensor Core acceleration while parameter updates retain FP32 to maintain numerical stability, which has become standard practice for large model training.
75%VerifiedFP16 stores values using 16 bits (1 sign bit, 5 exponent bits, 10 mantissa bits) and can represent approximately 65,000 discrete values
75%VerifiedA 35B model requires approximately 70GB of VRAM at FP16 precision, far exceeding the RTX 5090's 32GB capacity, so single-GPU deployment requires quantization.
75%VerifiedThe KV cache size can be expressed with the formula cache = 2 (K and V) × layers × KV heads × head dim × tokens × 2 bytes, where 2 bytes corresponds to FP16, doubling when using FP32, and halving when using INT8 quantization.
65%VerifiedQuantization compresses the storage precision of model parameters from 16-bit down to 8-bit or even 4-bit, thereby reducing memory usage, but at the cost of potential loss in model accuracy.
65%VerifiedA 2.4-trillion-parameter model requires approximately 9.6 TB of VRAM in FP32, about 4.8 TB in BF16, about 2.4 TB in INT8, and about 1.2 TB in INT4.
65%UnverifiedFP16格式下,大模型显存需求的估算公式为:参数量 × 2 = 所需显存(GB),即每个参数以16位(2字节)浮点数存储
95%Unverified4-bit quantization means each parameter occupies only 0.5 bytes, reducing VRAM usage by 75% compared to FP16.
70%UnverifiedCompared to FP16, BF16 has a wider exponent field and a narrower mantissa field, which may cause the optimal configuration path for certain GPU kernels to differ from FP16 or FP32 scenarios.
70%