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

RuntimeError: Expected to have finished reduction in the prior iteration before starting a new one #36

Open
saeid114 opened this issue Jun 8, 2024 · 0 comments

Comments

@saeid114
Copy link

saeid114 commented Jun 8, 2024

hi @yukang2017 @yanwei-li I have already tried this (find_unused_parameters=True), but the same error persists. Do you have any solutions?
if dist_train:
model = nn.parallel.DistributedDataParallel(model, device_ids=[cfg.LOCAL_RANK % torch.cuda.device_count()], find_unused_parameters=True)

Screenshot 2024-06-08 at 1 18 43 AM

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

1 participant