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

从文本中生成时报错 #3

Open
lzghades opened this issue Apr 10, 2023 · 1 comment
Open

从文本中生成时报错 #3

lzghades opened this issue Apr 10, 2023 · 1 comment

Comments

@lzghades
Copy link

错误信息
Setting pad_token_id to eos_token_id:50256 for open-end generation.
Input length of input_ids is 88, but max_length is set to 79. This can lead to unexpected behavior. You should consider increasing max_new_tokens.
Setting pad_token_id to eos_token_id:50256 for open-end generation.
Input length of input_ids is 88, but max_length is set to 74. This can lead to unexpected behavior. You should consider increasing max_new_tokens.
Setting pad_token_id to eos_token_id:50256 for open-end generation.
Input length of input_ids is 88, but max_length is set to 88. This can lead to unexpected behavior. You should consider increasing max_new_tokens.
Setting pad_token_id to eos_token_id:50256 for open-end generation.
Input length of input_ids is 88, but max_length is set to 78. This can lead to unexpected behavior. You should consider increasing max_new_tokens.
Setting pad_token_id to eos_token_id:50256 for open-end generation.
Input length of input_ids is 88, but max_length is set to 81. This can lead to unexpected behavior. You should consider increasing max_new_tokens.

请问这个需要设置什么参数吗?

@soulteary
Copy link
Owner

看上去是 transformer 的报错,这个issue稍挂起下,我看看锁定部分依赖之后,是否会解决。

如果没有,我就单独起一个 bugfix 分支解决和优化这部分的问题。

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

2 participants