fpx_weight_only¶
- torchao.quantization.fpx_weight_only(ebits: int, mbits: int)[源代码]¶
由 ebits(指数位)和 mbits(尾数位)定义的亚字节浮点数据类型,例如 fp6_e3_m2、fp6_e2_m3 等。打包格式和内核来自 fp6-llm 论文:https://arxiv.org/abs/2401.14112 github 仓库:https://github.com/usyd-fsalab/fp6_llm,现已重命名为 quant-llm。有关打包的更多详细信息,请参阅:
FpxTensorCoreAQTTensorImpl
这是实验性的,未来将与 to_affine_quantized_floatx 合并