MiniGPT-4 icon indicating copy to clipboard operation
MiniGPT-4 copied to clipboard

set `padding_side='left'

Open hillup opened this issue 2 years ago • 2 comments

when I run demo.py, error happends: 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. vWUeGPuKiU

hillup avatar Apr 19 '23 09:04 hillup

image image

2132660698 avatar Apr 19 '23 11:04 2132660698

image image

thanks for your reply! I have fixed this error by your way.

hillup avatar Apr 20 '23 02:04 hillup

I have the same problem and generate confusing output. I tried your methods, but it still exits.

wwf47 avatar Jul 02 '23 23:07 wwf47