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

GLM-4-9B-chat FastApi报AttributeError: 'ChatGLMForConditionalGeneration' object has no attribute 'chat' #249

Open
hongmin118 opened this issue Aug 27, 2024 · 3 comments

Comments

@hongmin118
Copy link

image

之前用pip install --upgrade transformers能解决。
但是这次新开一台机器后,仍然抛错。
连续2台autodl上的机器都出现同样的错误,可能代码里有问题哦。

@nishuone028
Copy link

transformers版本调低一点可以使用

@skywatcherfanl
Copy link

用哪个版本可用,我也遇到同样的问题

@Williamleejx
Copy link

问题不是出现在transformers的版本问题,是zhipu更新后对modeling_chatglm.py文件进行了修改,新的文件把chat模块删除了,去找个旧的这个文件替换一下吧

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

7 participants
@hongmin118 @nishuone028 @skywatcherfanl @Williamleejx and others