Open gd2016229035 opened 12 months ago
I see in the code that in many places, self.llama_tokenizer.padding_side is set to "right,"(https://github.com/Vision-CAIR/MiniGPT-4/blob/23671f986135de7947117e0e1a514eeb6b67bea2/minigpt4/models/minigpt_base.py#L251) but in the model.generate function, it seems to be set as "left padding_side."(https://github.com/Vision-CAIR/MiniGPT-4/blob/23671f986135de7947117e0e1a514eeb6b67bea2/minigpt4/models/minigpt_base.py#L354) If I'm not mistaken, could you please explain the reason? thank you~
I am also confused about this padding, @gd2016229035 , it would be much appreciated if you can help to clarify this!
I see in the code that in many places, self.llama_tokenizer.padding_side is set to "right,"(https://github.com/Vision-CAIR/MiniGPT-4/blob/23671f986135de7947117e0e1a514eeb6b67bea2/minigpt4/models/minigpt_base.py#L251) but in the model.generate function, it seems to be set as "left padding_side."(https://github.com/Vision-CAIR/MiniGPT-4/blob/23671f986135de7947117e0e1a514eeb6b67bea2/minigpt4/models/minigpt_base.py#L354) If I'm not mistaken, could you please explain the reason? thank you~