X-PLUG / mPLUG-Owl

mPLUG-Owl: The Powerful Multi-modal Large Language Model Family
https://www.modelscope.cn/studios/damo/mPLUG-Owl
MIT License
2.33k stars 176 forks source link

Question for mplug-owl v1 model code #223

Open bellos1203 opened 6 months ago

bellos1203 commented 6 months ago

Hey, I have a quick question about modeling_mplug_owl.py.

What does the following line do?? https://github.com/X-PLUG/mPLUG-Owl/blob/d9c99101eb55b5a8055356e3e1ed6a9fbbacbbf6/mPLUG-Owl/mplug_owl/modeling_mplug_owl.py#L1408

It seems the line is meaningless, or there is some missing variable, like the attention mask.

Thanks in advance!