-
Notifications
You must be signed in to change notification settings - Fork 769
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
TypeError: transformers.generation.utils.GenerationMixin.generate() argument after ** must be a mapping, not Tensor #178
Comments
请多提供一些报错信息,比如:
|
也是报同样的错,环境是直接采用github推荐的AutoDL镜像self-llm/GLM-4,fastapi调用格式: |
可能是由于 transformers 版本低的问题,升级一下 transformers 可以解决。 pip install transformers-4.41.2 |
最大的token是设置的,没有回答完整很正常~ |
对于 fastapi 应该不会报错了。 |
|
是的,我在fastapi项目中重装了transformers==4.41.2,成功运行!感谢大佬 |
pip install transformers==4.41.2,OK,感谢大佬 |
No description provided.
The text was updated successfully, but these errors were encountered: