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

transformers不兼容怎么解决 #67

Open
yuhai5237 opened this issue Dec 31, 2024 · 0 comments
Open

transformers不兼容怎么解决 #67

yuhai5237 opened this issue Dec 31, 2024 · 0 comments

Comments

@yuhai5237
Copy link

使用示例里面的版本,就会报错ImportError: cannot import name 'EncoderDecoderCache' from 'transformers',使用https://github.com/datawhalechina/self-llm/blob/master/models/Llama3_1/03-Llama3_1-8B-Instruct%20WebDemo%E9%83%A8%E7%BD%B2.md 这个连接里面的版本 pip install transformers==4.43.2,就会报错AttributeError: 'GenerationConfig' object has no attribute '_eos_token_tensor'
image
image
image

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

1 participant