从 AMP 到 Mixed Precision:训练和推理为什么不使用同一种精度2026-08-23·13 分钟Deep-Learning Mixed-Precision Amp Quantization Bf16 Inference起因 # 以前在商汤做 CV 的时候,有一段时间在做目标检测模型的 INT8 量化。目标很直接:降低 inference latency,减少 model memory 和 bandwidth,同时利用 INT8 hardware throughput。
从 IEEE 754 到 BF16:理解 ML Infra 中的浮点精度选择2026-08-23·14 分钟Deep-Learning Floating-Point Bf16 Fp16 Tf32 Inference起因 # 上一篇讨论模型显存时,我直接用了一张表: