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

[rank2]: AttributeError: module 'torch.distributed' has no attribute 'nn' #45

Open
zimenglan-sysu-512 opened this issue Jul 7, 2024 · 2 comments

Comments

@zimenglan-sysu-512
Copy link

when run the train.py, encounters the problem: [rank2]: AttributeError: module 'torch.distributed' has no attribute 'nn'.

@zimenglan-sysu-512
Copy link
Author

it can be solved by adding this line: import torch.distributed.nn as nn_dist in model/model_longclip.py file.

by the way, @beichenzbc can u share the training log file, i want to see whether can reproduce the result.
thanks

@Hanzhzh
Copy link

Hanzhzh commented Jan 20, 2025

i also meet this error,thinks for your solution

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