跳到主要内容Skip to main content

量化Quantization

Quantization

  • 硬件与部署Hardware & deployment
  • 第五段 · 跑起来Stage 5 · Running It
  • 引用核验 2026-11-03refs checked 2026-11-03
解决什么问题What problem it solves

把模型权重从高精度压成低精度,省显存、提速,代价是质量下降。Compress model weights from high to low precision, saving VRAM and speeding things up at the cost of quality.

这是什么What it is

用更少的位数表示每个权重数值。常见单位是 bpw(每个权重平均占多少比特)。

位数越低越省,但质量损失越大。

Representing each weight value with fewer bits. The common unit is bpw — average bits per weight.

Fewer bits saves more but loses more quality.

FP32/FP16/INT8/INT4 use fewer bits per weight; memory and bandwidth drop, while accuracy loss and calibration cost rise.
FP32/FP16/INT8/INT4 每权重占的位数越来越少;显存和带宽下降,但精度损失和校准成本上升。FP32/FP16/INT8/INT4 use fewer bits per weight; memory and bandwidth drop, while accuracy loss and calibration cost rise.
为什么需要知道Why it matters

这是本地部署最核心的技术手段。同样一个模型,选对量化档能决定能不能跑起来。The core technique in local deployment. For the same model, choosing the right quantisation tier often decides whether it runs at all.

出处Sources
  • 五档量化规则的说明The five quantisation tiers explained ↗
  • 从业者深版:GPU 事实与成本数学(AI 模型站)Practitioner deep-dive: GPU facts & cost math (AI Models site) ↗
用这个术语做任务Use this term in a task

别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →