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> open_api_py方式启动,调用/v1/chat/completions会报RuntimeError: probability tensor contains either `inf`, `nan` or element < 0 #1121

Closed Shady2333 closed 5 months ago

Shady2333 commented 7 months ago

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

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

当前行为 | Current Behavior

使用oneapi对接qwen,发起调用模型会报RuntimeError: probability tensor contains either inf, nan or element < 0的error

期望行为 | Expected Behavior

回答问题

复现方法 | Steps To Reproduce

No response

运行环境 | Environment

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

备注 | Anything else?

No response

2277419213 commented 7 months ago

这个问题有人回答过,因为温度问题,ONE API进行请求时,温度是0,Qwen这个模型在温度低于0.5的时候会报错这个

ccsc006 commented 6 months ago

这个问题有人回答过,因为温度问题,ONE API进行请求时,温度是0,Qwen这个模型在温度低于0.5的时候会报错这个

如何解决??

2277419213 commented 6 months ago

这个问题有人回答过,因为温度问题,ONE API进行请求时,温度是0,Qwen这个模型在温度低于0.5的时候会报错这个

如何解决??

https://github.com/QwenLM/Qwen1.5/issues/145 看这个

github-actions[bot] commented 5 months ago

This issue has been automatically marked as inactive due to lack of recent activity. Should you believe it remains unresolved and warrants attention, kindly leave a comment on this thread. 此问题由于长期未有新进展而被系统自动标记为不活跃。如果您认为它仍有待解决,请在此帖下方留言以补充信息。