Skip to content

Fixed the warning message "Setting pad_token_id to eos_token_id:1… #110

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

Merged

Conversation

dineshkumarsarangapani
Copy link
Contributor

@dineshkumarsarangapani dineshkumarsarangapani commented Aug 23, 2023

When running the falcon model, after the user prompt, the model response is prefixed with this warning.

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`:11 for open-end generation. Fix for this issue

So Provided a fix.

…1 for open-end generation."

When running the falcon model, after the user prompt, I got Assistant: 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`:11 for open-end generation.
Fix for this issue
@ShishirPatil ShishirPatil merged commit fe76692 into ShishirPatil:main Jul 17, 2024
@ShishirPatil
Copy link
Owner

Thank you @dineshkumarsarangapani and welcome!

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.

2 participants