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

多轮对话后回复为空,或者只回复 2,3个字

Open micronetboy opened this issue 2 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current Behavior

每次对话会传入最多 15 个 history 以及 对话的 content,多轮对话后回复为空,或者只回复 2,3个字

Expected Behavior

No response

Steps To Reproduce

每次对话会传入最多 15 个 history 以及 对话的 content,多轮对话后回复为空,或者只回复 2,3个字

Environment

- OS:Ubuntu 22.04
- Python:3.10
- Transformers:4.30
- PyTorch:2.0。.1
- CUDA Support true

Anything else?

No response

micronetboy avatar Jun 28 '23 02:06 micronetboy

Maybe you can set the value of max_length to a higher value in the chat function.

callanwu avatar Jun 28 '23 03:06 callanwu