ChatGLM2-6B
ChatGLM2-6B copied to clipboard
多轮对话后回复为空,或者只回复 2,3个字
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
Maybe you can set the value of max_length to a higher value in the chat function.