minimaxir / aitextgen

A robust Python tool for text-based AI training and generation using GPT-2.
https://docs.aitextgen.io
MIT License
1.84k stars 220 forks source link

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 2 years ago

Blazeolmo commented 2 years ago

What ze hell does that mean?

kiasar commented 1 year ago

My question too!

Choitsugun commented 1 year ago

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

Vectorrent commented 1 year ago

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.