w4a8权重提供实验性支持
| 项目 | 信息 |
|---|---|
| 原始模型名 | DeepSeek-V4.1-Flash |
| 原始模型链接 | DeepSeek-V4.1-Flash |
| msmodelslim 私仓 | https://gitcode.com/rookie_hongchuan/msmodelslim/tree/w4a8-v2.5 |
| msmodelslim commit id | e01e6fdcb9d2eabc19384c79d6557564ba3f53cf |
| 精度测试机型 | Atlas 800T A2 1台 |
| 精度测试平台 | docker vllm-ascend |
| 版本 | v0.30.0rc1 及更高版本 |
| 链接 | quay.io/ascend/vllm-ascend:v0.30.0rc1 |
分两步,此量化流程做了后处理调整:
msmodelslim quant \
--model_path weights/DeepSeek-V4.1-Flash \
--save_path weights/DeepSeek-V4.1-Flash-w4a8 \
--device npu --device_id 0 1 2 3 4 5 6 7 \
--model_type DeepSeek-V4.1-Flash \
--config w4a8.yaml \
--log_level info移除 ep8 导出里两个冗余 mtp tensor:
并同步:
| 模型名 | 量化格式 | 数据集 | 测试精度 % | 官方浮点精度 % |
|---|---|---|---|---|
| DeepSeek-V4.1-Flash-w4a8 | w4a8 | GPQA | 89.9 | 90.9 |
--max-model-len 131072,精度存在波动,建议多次测试。