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

建议修改requirement.txt的transformers版本,transformer按照最新版本4.35.2会出现异常 #8

Closed
san5167 opened this issue Nov 29, 2023 · 1 comment

Comments

@san5167
Copy link

san5167 commented Nov 29, 2023

按照requirement.txt的transformers>=4.29.1,会安装最新版本transformers==4.35.2
image
运行出现异常:
AttributeError: 'ChatGLMTokenizer' object has no attribute 'sp_tokenizer'
image

建议直接限定transformers版本号,比如transformers==4.33.2,requirement.txt上其他的依赖也建议直接限定版本号。

@zwh-sdu
Copy link
Contributor

zwh-sdu commented Dec 7, 2023

感谢您的关注,如果 transformers 版本过高确实会存在问题,我们重新修改了 requirement.txt 指定了 transformers 和其他依赖的版本,感谢您的建议。

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