Skip to content
Discussion options

You must be logged in to vote

The issue you are facing with moving metrics in a MetricCollection to GPU in a DDP setting might be related to a bug or an incomplete handling of device placement in older versions of torchmetrics.
It is recommended to update torchmetrics to the latest version (1.8.1 as of early August 2025) as the library continues to improve support for distributed training and device synchronization. The update may already contain a fix or improvements relevant to your problem.
If after updating to the latest torchmetrics version the problem persists, it would be best to open a new issue on the torchmetrics GitHub repository describing your problem, including a minimal reproducible example if possible,…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SkafteNicki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants