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

A way to run *any* metric async on cpu #2406

Open
spott opened this issue Feb 26, 2024 · 1 comment
Open

A way to run *any* metric async on cpu #2406

spott opened this issue Feb 26, 2024 · 1 comment
Labels
enhancement New feature or request waiting on author

Comments

@spott
Copy link

spott commented Feb 26, 2024

🚀 Feature

Some metrics take up a lot of GPU memory in certain situations (deterministic mode, lots of classes, caching), even though they don't spit out a list (the requirement for the current "compute_on_cpu" option).

Enabling the "compute_on_cpu" option for all metrics would make this library more usable even when you have a ton of metrics that you would like to compute.

Alternatives

The issue here is that there isn't any real alternative other than not using torchmetrics or not computing some metric that you want (or spending more money on compute).

@spott spott added the enhancement New feature or request label Feb 26, 2024
@SkafteNicki
Copy link
Member

Hi @spott, thanks for raising this issue.
Could you clarify what metrics you are using that are taking up a large amount of memory?
I am not against this proposal, but wanted to understand better what metrics are causing these problems you have?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request waiting on author
Projects
None yet
Development

No branches or pull requests

3 participants