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

ModuleNotFoundError: No module named 'transformers.generation' #8

Open
Meow10 opened this issue May 29, 2023 · 3 comments
Open

ModuleNotFoundError: No module named 'transformers.generation' #8

Meow10 opened this issue May 29, 2023 · 3 comments

Comments

@Meow10
Copy link

Meow10 commented May 29, 2023

File "/ChatZoo/generator/models/chatglm/modeling_chatglm.py", line 30, in
from transformers.generation.logits_process import LogitsProcessor

ModuleNotFoundError: No module named 'transformers.generation'
请问这句报错了要怎么处理呢?

@x54-729
Copy link
Collaborator

x54-729 commented May 29, 2023

请问您的transformers版本是多少?有可能是版本问题,比较旧的transformers结构会有出入

@Meow10
Copy link
Author

Meow10 commented May 29, 2023

请问您的transformers版本是多少?有可能是版本问题,比较旧的transformers结构会有出入

那请问chatzoo需要哪个版本的transformers呢?requirements里没写

@x54-729
Copy link
Collaborator

x54-729 commented May 30, 2023

请问您的transformers版本是多少?有可能是版本问题,比较旧的transformers结构会有出入

那请问chatzoo需要哪个版本的transformers呢?requirements里没写

考虑到这些对话模型都比较新,最好4.26及之后吧;稍后我们也会在requirements里进行更新

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