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

运行python代码后报错。。 #65

Open
auisydh opened this issue Sep 8, 2024 · 0 comments
Open

运行python代码后报错。。 #65

auisydh opened this issue Sep 8, 2024 · 0 comments

Comments

@auisydh
Copy link

auisydh commented Sep 8, 2024

你好!为什么运行python代码后会报错,提示:The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's attention_mask to obtain reliable results.
Setting pad_token_id to eos_token_id:128001 for open-end generation.
The attention mask is not set and cannot be inferred from input because pad token is same as eos token. As a consequence, you may observe unexpected behavior. Please pass your input's attention_mask to obtain reliable results.
改完之后虽然没有报错了,但是大模型没有输出任何内容,只有我自己一行一行的输入,请问问题出在哪里呢?

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