-
Notifications
You must be signed in to change notification settings - Fork 394
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' #26
Comments
Hi,确认一下跑单卡
|
感谢,1 有效。 是需要把清华的这个模型路径,放到指定位置吗?还是我config没导入成功 |
尝试删掉之前下载的GLM缓存,并重新下载。 检查一下: 如果有,则删掉它并重新运行程序,即可重新下载。 |
看错误截图是模型存储的时候路径已经存在导致的。 我不知道您为什么会出现这样的问题,但您可以尝试把 290 行和 291 行给注释掉: # if not os.path.exists(cur_save_dir):
# os.makedirs(cur_save_dir) 并删除 |
成功训练!感谢。但是好像每次都要清缓存 |
FileNotFoundError: [Errno 2] No such file or directory: '~/.cache/huggingface/modules/transformers_modules/THUDM/chatglm-6b/969290547e761b20fdb96b0602b4fd8d863bbb85/tokenization_chatglm.py' ModuleNotFoundError: No module named 'transformers_modules.THUDM.chatglm-6b.969290547e761b20fdb96b0602b4fd8d863bbb85.tokenization_chatglm' 我也出现类似问题,刚启动时就出现。 |
感觉跟进程有关?我是8卡失败,6卡有时成功 |
有道理
…---Original---
From: ***@***.***>
Date: Thu, Apr 13, 2023 20:13 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [HarderThenHarder/transformers_tasks] ModuleNotFoundError: Nomodule named 'transformers.generation' (Issue #26)
感觉跟进程有关?我是8卡失败,6卡有时成功
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
原因找到了,是huggingface transformers的bug。 |
多卡finetune,出现这个问题
The text was updated successfully, but these errors were encountered: