QwenLM / Qwen

The official repo of Qwen (通义千问) chat & pretrained large language model proposed by Alibaba Cloud.
Apache License 2.0
13.59k stars 1.11k forks source link

[BUG] <title>微调qwen-chat-7B-int4的时候Target module QuantLinear() is not supported. #1045

Closed Yining0907 closed 8 months ago

Yining0907 commented 8 months ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

当前行为 | Current Behavior

Target module QuantLinear() is not supported. Currently, only the following modules are supported: torch.nn.Linear, torch.nn.Embedding, torch.nn.Conv2d, transformers.pytorch_utils.Conv1D.

期望行为 | Expected Behavior

无报错

复现方法 | Steps To Reproduce

No response

运行环境 | Environment

- OS:
- Python:3.8
- Transformers:4.34.0
- PyTorch:2.0.1
- auto-gptq:0.4.2
- optimum:1.13.2
- peft:0.6.0
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):

备注 | Anything else?

No response

jklj077 commented 8 months ago

升级deepspeed。

taoxifa commented 7 months ago

有没有解决,我也遇到了这个问题

lvsh2012 commented 7 months ago

俺也一样,如何解决

Yining0907 commented 6 months ago

各个依赖版本不match的原因,建议按照官方文档确定每个的版本,应该就可以解决问题