MiniCPM icon indicating copy to clipboard operation
MiniCPM copied to clipboard

MiniCPM-2B-sft-int4 lora微调后,似乎无法merge权重

Open lonelydancer opened this issue 1 year ago • 0 comments

Is there an existing issue ? / 是否已有相关的 issue ?

  • [X] I have searched, and there is no existing issue. / 我已经搜索过了,没有相关的 issue。

Describe the bug / 描述这个 bug

MiniCPM-2B-sft-int4 lora微调后,无法merge权重。

raise ValueError("Cannot merge LORA layers when the model is gptq quantized")

To Reproduce / 如何复现

https://github.com/yangjianxin1/Firefly/blob/master/script/merge_lora.py

Expected behavior / 期望的结果

No response

Screenshots / 截图

No response

Environment / 环境

- OS: [e.g. Ubuntu 20.04]
- Pytorch: [e.g. torch 2.0.0]
- CUDA: [e.g. CUDA 11.8]
- Device: [e.g. A10, RTX3090]

Additional context / 其他信息

No response

请问需要自己用bf16版本做微调merge后做量化? 如果自己用gptq做量化,数据集应该用什么呢?

lonelydancer avatar Apr 24 '24 07:04 lonelydancer