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

GenerationConfig: warn if pad token is negative #30187

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

zucchini-nlp
Copy link
Member

What does this PR do?

Related to the issue. I believe we should add warnings here so the users know how to fix this type of errors.

The -1 pad token is for now noted only in InstructBlip, which seem to be loaded from a hub repo that does not exist anymore (decapoda-research/llama-7b-hf). Anyway we can raise warning for future cases if there are other models based on it.

@zucchini-nlp zucchini-nlp requested a review from gante April 11, 2024 14:46
Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy for you to wait for @gante to confirm, but looks good to me so you can merge whenever :)

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
Copy link
Member

@gante gante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT, thank you for fixing 💛

Some nitpicking, to ensure the message is clear!

zucchini-nlp and others added 3 commits April 20, 2024 01:41
Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com>
Co-authored-by: Joao Gante <joaofranciscocardosogante@gmail.com>
@gante gante merged commit 9138935 into huggingface:main Apr 22, 2024
21 checks passed
@ftnext ftnext mentioned this pull request May 19, 2024
5 tasks
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

Successfully merging this pull request may close these issues.

None yet

4 participants