OpenGVLab / Ask-Anything

[CVPR2024 Highlight][VideoChatGPT] ChatGPT with video understanding! And many more supported LMs such as miniGPT4, StableLM, and MOSS.
https://vchat.opengvlab.com/
MIT License
2.85k stars 230 forks source link

Attention mask and pad token id warning in videochat2_mistral #183

Open YajieW99 opened 1 month ago

YajieW99 commented 1 month ago

Some warning appears when the model outputs the answer. How can I deal with it? The attention mask and the pad token id were not set yet. As a consequence, you may observe unexpected behavior. Please pass your input's 'attention_mask' to obtain reliable results. Setting 'pad_token_id' to 'eos_token_id':2 for open-end generation.

Andy1621 commented 4 weeks ago

You can just ignore the warnning. Since it runs normally for me though I also meet the warnnings.