ChatGLM2-6B icon indicating copy to clipboard operation
ChatGLM2-6B copied to clipboard

[BUG/Help] <输入长串数字乘法程序挂死>

Open szdengdi opened this issue 2 years ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

随意输入长串数字的乘法,程序就输出10000。。。。不停的输出0,挂死了。 例如:100000000000000000000000000000000000000000000000000010101100223012302023676546765434553454353442345432345665434567654345567899876545678987665789756789乘以754536856483756743657436835874692575932923167095067843630654680563837469510063470670640651509

Expected Behavior

No response

Steps To Reproduce

例如:100000000000000000000000000000000000000000000000000010101100223012302023676546765434553454353442345432345665434567654345567899876545678987665789756789乘以754536856483756743657436835874692575932923167095067843630654680563837469510063470670640651509

Environment

- OS:windows10
- Python:3.10.9
- Transformers:4.26.1
- PyTorch:1.12
- CUDA Support:True

Anything else?

No response

szdengdi avatar Jun 28 '23 07:06 szdengdi

这个模型死循环的情况非常多,我输入了一个“请用1234567生成一段铃声”,结果: 1234567 1234567 1234567 1234567 1234567 1234567 1234567 1234567 1234567 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 8888888 …… 一直到token用完为止

cssword avatar Jun 28 '23 08:06 cssword

10000000000000000000000000000000233456488 64656455756乘以 45656979970008888800000000000

szdengdi avatar Jun 28 '23 12:06 szdengdi

我也差不多,输出0 或者无意义的字符,一直输出。无法停止

ArtificialZeng avatar Jul 03 '23 02:07 ArtificialZeng