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

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. #15

Open
AlexandreArantes32 opened this issue Aug 20, 2024 · 0 comments

Comments

@AlexandreArantes32
Copy link

I get the following error :
"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.
You are not running the flash-attention implementation, expect numerical differences."

I already tried "model.generation_config.pad_token_id = tokenizer.pad_token_id" or "pad_token_id=generator.tokenizer.eos_token_id".
I'm just running the QuickStart script

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