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

ValueError: bos_token_id has to be defined when no input_ids are provided. #214

Open
jjzhu0579 opened this issue Jul 20, 2024 · 7 comments

Comments

@jjzhu0579
Copy link

明明有input_ids啊,还是报这个错

@KMnO4-zx
Copy link
Contributor

这是哪个模型的报错?

@jjzhu0579
Copy link
Author

这是哪个模型的报错?

是t5的
1721531676024

@KMnO4-zx
Copy link
Contributor

咱self-llm项目里也没有T5模型呀

@jjzhu0579
Copy link
Author

是我自己写的,就是把config加进去了
1721531851345

@jjzhu0579
Copy link
Author

大佬知道怎么改吗

@KMnO4-zx
Copy link
Contributor

大佬知道怎么改吗

我没有具体训练过T5模型,看上去这个报错应该是tokenizer的问题,你可以尝试设置 tokenizer.bos_token_id为eos_token_id试试

@jjzhu0579
Copy link
Author

tokenizer.bos_token_id为eos_token_id

完全没有变化
Uploading image.png…

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