INT8
INT8 is an 8-bit fixed-point integer format corresponding to 256 discrete numerical levels. It is commonly used in deep learning model quantization to balance accuracy against storage and computational overhead.
Core Facts
A 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.
FP32 uses 4 bytes per parameter, FP16/BF16 uses 2 bytes, INT8 quantization uses 1 byte, and INT4 quantization uses 0.5 bytes.
Quantization (such as INT8 and FP8) can reduce memory usage and improve throughput while maintaining acceptable accuracy loss in most scenarios.
Timeline (last 90 days)
A 0.5B-level model, after quantization (such as INT8 or INT4), can be compressed to a few hundred MB and perform inference locally, bringing advantages such as low latency, privacy protection and offline availability.
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.
Quantizing to INT8 or INT4 can significantly reduce the VRAM requirements of large language models.
INT8/INT4 quantization can reduce memory footprint and bandwidth requirements severalfold, but may introduce quantization noise that affects the fineness of audio generation.
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.
The optimization measures for running Hy-Nomas on a single RTX 4090 include an INT8-quantized DiT model, an FP8 version of the video decoder, and a CPU offload strategy.
For uniform quantization, the theoretical SQNR ≈ 6.02 × bit count + 1.76 dB, so the theoretical upper limit is about 49.9 dB for INT8 and about 25.8 dB for INT4.
Quantization techniques can compress trained neural network weights from FP16/FP32 to INT8/INT4, significantly reducing model size, lowering memory usage, and improving inference speed, at the cost of possible accuracy loss.
The 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.
For existing post-training quantization methods to reach precision close to FP32, they basically must use INT8 fixed-point integers, and performance drops noticeably when the bit width is below INT8.
17 more timeline events
All Facts (20)
A 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%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%VerifiedFP16 stores values using 16 bits (1 sign bit, 5 exponent bits, 10 mantissa bits) and can represent approximately 65,000 discrete values
75%VerifiedThe core principle of quantization is to convert model parameters from high-precision floating-point representations (such as FP32's 32-bit floating point) to low-precision representations (such as INT8's 8-bit integer or INT4's 4-bit integer).
70%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%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%UnverifiedQuantization techniques can compress trained neural network weights from FP16/FP32 to INT8/INT4, significantly reducing model size, lowering memory usage, and improving inference speed, at the cost of possible accuracy loss.
60%UnverifiedA 0.5B-level model, after quantization (such as INT8 or INT4), can be compressed to a few hundred MB and perform inference locally, bringing advantages such as low latency, privacy protection and offline availability.
50%UnverifiedCommon 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.
50%UnverifiedQuantizing to INT8 or INT4 can significantly reduce the VRAM requirements of large language models.
50%UnverifiedINT8/INT4 quantization can reduce memory footprint and bandwidth requirements severalfold, but may introduce quantization noise that affects the fineness of audio generation.
50%UnverifiedIn 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.
50%UnverifiedThe optimization measures for running Hy-Nomas on a single RTX 4090 include an INT8-quantized DiT model, an FP8 version of the video decoder, and a CPU offload strategy.
50%UnverifiedFor uniform quantization, the theoretical SQNR ≈ 6.02 × bit count + 1.76 dB, so the theoretical upper limit is about 49.9 dB for INT8 and about 25.8 dB for INT4.
50%UnverifiedFor existing post-training quantization methods to reach precision close to FP32, they basically must use INT8 fixed-point integers, and performance drops noticeably when the bit width is below INT8.
50%UnverifiedCommonly used inference frameworks include vLLM, TensorRT-LLM, Ollama, etc., while quantization commonly uses methods such as INT8 and INT4 to compress model size.
50%UnverifiedA common industry practice is to quantize weights to INT4 or INT8 while retaining higher precision for critical layers, in order to strike a balance between cost and quality.
50%UnverifiedInteger arithmetic on CPUs is generally faster than floating-point arithmetic, especially when combined with dedicated acceleration instructions, which can improve inference speed and reduce power consumption.
50%