THUDM / ChatGLM2-6B

ChatGLM2-6B: An Open Bilingual Chat LLM | 开源双语对话语言模型
Other
15.73k stars 1.85k forks source link

[BUG/Help] <title>微调后为什么聊着聊着说我chatbot为空 #658

Open LeoQianQY opened 10 months ago

LeoQianQY commented 10 months ago

Is there an existing issue for this?

Current Behavior

微调后我正常问答两句后,再输入一句话后,之前对话的所有内容和聊天框都没了,然后这时候再输入随便一句话,就报错 'NoneType' object has no attribute 'append',跟微调的语料的语句长短会有关系吗?因为我没有改过训练的source_length什么的。

Expected Behavior

No response

Steps To Reproduce

微调后我正常问答两句后,再输入一句话后,之前对话的所有内容和聊天框都没了,然后这时候再输入随便一句话,就报错 'NoneType' object has no attribute 'append'

Environment

- OS: Ubuntu 20.04
- Python: 3.8 
- Transformers: transformers 4.30.2
- PyTorch: torch-2.1.2+cu121
- CUDA Support True

Anything else?

No response

LeoQianQY commented 10 months ago

不是输入为空,是直接chatbot为空,chatbot.append((parse_text(input), "")) AttributeError: 'NoneType' object has no attribute 'append'