Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

A decoder-only architecture is being used, but right-padding was detected! For correct generation results, please set padding_side='left' when initializing the tokenizer. #197

Open
Blazeolmo opened this issue Oct 24, 2022 · 3 comments

Comments

@Blazeolmo
Copy link

What ze hell does that mean?

@kiasar
Copy link

kiasar commented Dec 16, 2022

My question too!

@Choitsugun
Copy link

That is used to solve the problem of unaligned generation caused by padding during the batch inference of the decoder-only model.

@Vectorrent
Copy link
Contributor

I think this must be a hard-coded warning, coming from the upstream Transformers package. No matter how hard I've tried, I can't seem to suppress the message.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants