Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

demo.py error when starting chat #521

Open
Fly-dream12 opened this issue Jul 15, 2024 · 3 comments
Open

demo.py error when starting chat #521

Fly-dream12 opened this issue Jul 15, 2024 · 3 comments

Comments

@Fly-dream12
Copy link

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:
web_page
error

in conversation.py, output_token=self.model_generate(**generation_dict)[0],
TypeError: forward() got an unexpected keyword argument 'cache_position'.

@Timeviewerzero
Copy link

I have also encountered the same problem. Have you solved it?

@Timeviewerzero
Copy link

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.

@Fly-dream12
Copy link
Author

Can you list the version of transformers and accelerators and the other modules? Thank you. @Timeviewerzero

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants