Qwen2.5 icon indicating copy to clipboard operation
Qwen2.5 copied to clipboard

[BUG] <title>AttributeError: 'Qwen2ForCausalLM' object has no attribute 'chat'

Open lishu2006ll opened this issue 11 months ago • 1 comments

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

  • [X] 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

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

  • [X] 我已经搜索过FAQ | I have searched FAQ

当前行为 | Current Behavior

使用docker部署qwen1.5,测试模型回答问题的时候报错:AttributeError: 'Qwen2ForCausalLM' object has no attribute 'chat' image

期望行为 | Expected Behavior

正常回答

复现方法 | Steps To Reproduce

image

运行环境 | Environment

- OS:
- Python:
- Transformers:
- PyTorch: 
- CUDA 11.7 (`python -c 'import torch; print(torch.version.cuda)'`):

备注 | Anything else?

No response

lishu2006ll avatar Mar 19 '24 06:03 lishu2006ll

me too

njhouse365 avatar Apr 03 '24 02:04 njhouse365

Closed as duplicate of https://github.com/QwenLM/Qwen1.5/issues/7.

Please don't mix the use of Qwen and Qwen1.5 code.

jklj077 avatar Apr 16 '24 03:04 jklj077