-
Notifications
You must be signed in to change notification settings - Fork 982
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
AttributeError: module 'torch.utils' has no attribute 'checkpoint' in gpt-neox/gpt-neox #80
Comments
Are you sure you have the versions specified in |
I get the same error with torch v1.6.0 or v1.7.0. What version are you using? |
Well then. No idea how this is even possible, but that's the error it seems. We're about to roll something out, I'll make sure this fix is included. |
einops 0.3.0 The one stand out is : It runs fine with the line locally, and not when I remove it. |
while running " deepspeed train_enwik8.py --deepspeed --deepspeed_config ./configs/deepspeed_zero2.json" I got the error AttributeError: module 'torch.utils' has no attribute 'checkpoint' in gpt-neox/gpt-neox
seems similar to problem described in pyTorch attributeerror-module-torch-utils-has-no-attribute-checkpoint
quick-fix: adding
"from torch.utils.checkpoint import checkpoint"
to top of file seems to fix the problem
The text was updated successfully, but these errors were encountered: