← Back to LLMs Mind Map
⚡ LLMsID: low-bit

Low-Bit INT8/INT4

低比特 INT8/INT4
🎯Core Definition
Low-bit quantization drops weights/activations to 8-bit or 4-bit integers. Storage goes from 2 bytes (FP16) to 1 byte (INT8) to 0.5 byte (INT4) per weight — INT4 weights cut weight memory by 75% (FP16 70B needs 140GB, INT4 only ~35GB). Each tensor is aligned with a scale ss and zero-point zz: xq=round(x/s)+zx_q = \text{round}(x/s) + z; 4-bit typically uses group-wise quantization (e.g., one shared scale per 128 weights) to avoid small-scale channels being swallowed by a wide range.
💡Use Cases
memory-constrained deployment (7B-70B on consumer GPUs and edge devices), inference bandwidth optimization, KV cache quantization, and offline one-shot conversion pipelines.
⚡Key Problems Solved
bigger models mean costlier memory and bandwidth; INT4 removes 75% of weight memory with no added latency, and calibration-set choice plus group-wise quantization keep accuracy loss manageable — the calibration set is the key to precision, since distribution mismatch is the main killer at low bits.
🎯Core Interview Exam Points
Fundamentals · Production Scenarios · Deep Dive
Core Def
Explain the core definition, underlying mechanism/math, and key principles of Low-Bit INT8/INT4.
Use Cases
In production engineering, what are the primary use cases for Low-Bit INT8/INT4 and what core pain points does it solve?
🔥 High-Frequency Deep-Dive Questions
1
What are the memory/bandwidth savings of INT8/INT4 vs FP16?
2
Why does INT4 save 75% memory — walk through the math?
3
What is group-wise quantization and why does it help at low bits?
4
How do you choose the calibration set, and why is it accuracy-critical?
5
What are common accuracy-loss sources at low bits and how to mitigate them?
Updated 2026-08-12
🎯
Verify Mastery: Practice Exam Questions for "Low-Bit INT8/INT4"
Take pitfall multiple-choice questions with derivation options; mistakes are automatically logged.
🚀 Start Card Practice ➔
← Previous CardQuantization PTQ/QATNext Card →SmoothQuant/AWQ & FP8

🔗 More LLMs Knowledge Cards

引用出处: TalentMe 450+ 工业级 AI 架构考点知识库 (Tech Vault) · 遵循 CC-BY-4.0 知识共享协议
URL: https://talentme.airsota.com/resources/tech/roadmap/mindmap/LLM/card/low-bit
中文速览与面试要点

低比特 INT8/INT4 (Low-Bit INT8/INT4)

定义: 低比特量化把权重/激活降到 8-bit 或 4-bit 整数。权重存储从 FP16 的 2 字节降到 INT8 的 1 字节、INT4 的 0.5 字节——权重 INT4 化使显存占用直接省 75% (FP16 70B 需 140GB,INT4 仅约 35GB)。每张量用 scale s 与 zero-point z 对齐表示范围: x_q = round(x/s) + z;4-bit 常用分组量化 (group-wise, 如每 128 个权重一组共享一个 scale),缓解小尺度通道被大范围吞没的问题。 使用场景: 显存受限部署 (消费级显卡、边缘设备跑 7B-70B)、推理带宽优化 (低比特加载省显存带宽)、KV cache 量化,以及训练完成后一次性转换的离线服务链路。 解决的问题: 模型越大显存与带宽越贵;INT4 省 75% 权重显存且不增加服务延迟,配合校准集与分组量化把精度损失控制在可接受范围——校准集的选择与校准算法是精度关键,分布失配是低比特下最主要的精度杀手。

核心要点

  • INT8/INT4 相比 FP16 的显存与带宽收益各是多少?
  • 为什么说 INT4 省 75% 显存?计算过程是什么?
  • 分组量化 (group-wise) 是什么?为什么低比特下更有效?
  • 校准集如何选择?为什么它是精度关键?
  • 低比特下常见的精度损失来源有哪些?如何缓解?