量化#
創建於: 2019年10月09日 | 最後更新於: 2025年08月19日
我們正在將所有與量化相關的開發集中到 torchao,請檢視我們的新文件頁面: https://docs.pytorch.com.tw/ao/stable/index.html
現有量化流程計劃: 1. Eager 模式量化 (torch.ao.quantization.quantize, torch.ao.quantization.quantize_dynamic),請遷移使用 torchao eager 模式 quantize_ API 代替。
2. FX 圖模式量化 (torch.ao.quantization.quantize_fx.prepare_fx torch.ao.quantization.quantize_fx.convert_fx),請遷移使用 torchao pt2e 量化 API 代替 (torchao.quantization.pt2e.quantize_pt2e.prepare_pt2e, torchao.quantization.pt2e.quantize_pt2e.convert_pt2e)
3. pt2e 量化已遷移到 torchao (pytorch/ao),詳情請參閱 pytorch/ao#2259
我們計劃在 2.10 版本中刪除 torch.ao.quantization,除非有阻止因素,或在所有阻止因素清除後的最早 PyTorch 版本中刪除。