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 218 forks source link

padding_side #205

Open g-i-o-r-g-i-o opened 1 year ago

g-i-o-r-g-i-o commented 1 year ago

I've been getting this error a lot. I can't understand how to fix it...

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.

francescoboc commented 1 year ago

I have the same issue