Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
LeoQianQY opened this issue Jan 25, 2024 · 1 comment
Open
1 task done

Comments

@LeoQianQY
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

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
Copy link
Author

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

@LeoQianQY LeoQianQY changed the title [BUG/Help] <title>微调后为什么聊着聊着说我输入为空 [BUG/Help] <title>微调后为什么聊着聊着说我chatbot为空 Jan 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant