You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the demo.py or demo_v2.py, the gradio page can run successfully, but when I upload an image and start chatting, I type the input word, Error comes and the corresponding output are as following:
in conversation.py, output_token=self.model_generate(**generation_dict)[0],
TypeError: forward() got an unexpected keyword argument 'cache_position'.
The text was updated successfully, but these errors were encountered:
ok, I have solved this problem. I guess it may be a version issue with transformers and accelerators. You can reinstall lower versions of transformers and accelerators.
When I run the demo.py or demo_v2.py, the gradio page can run successfully, but when I upload an image and start chatting, I type the input word, Error comes and the corresponding output are as following:
in conversation.py, output_token=self.model_generate(**generation_dict)[0],
TypeError: forward() got an unexpected keyword argument 'cache_position'.
The text was updated successfully, but these errors were encountered: