-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[DDP] Metrics .compute() / sync_ddp fails with move_metrics_to_cpu #10379
Comments
Has anyone been looking into this issue? If not, I can try to help. |
Hey @tangbinh @Quintulius, After some investigation, it seems the Before:
Now:
I would suggest depreciating this parameter altogether. Best, |
@tchaton Thanks for the update. I use this parameter to deal with a custom metric (subclass of pytorch_lightining.metrics.Metric) which requires a lot of memory. What strategy should I use now ? |
Hey @Quintulius, This discussion has been moved there: #10595. The decision to add to proper support for this and evaluate its performance impact. I will keep you updated. |
Closing in favor of #10595 |
🐛 Bug
Metrics compute() method fails when calling
sync_ddp
with DDP andmove_metrics_to_cpu
:To Reproduce
Expected behavior
Metrics are computed without trouble !
Environment
Additional context
cc @tchaton @rohitgr7
The text was updated successfully, but these errors were encountered: