Making sure the Evaluation happens on GPU #863
-
I've passed the cuda device to every strategy I'm using at the point of defining the strategy e.g.:
I've noticed that training happens at the rate of GPU. 100it/s+
But evaluation happens at the rate of the cpu 4.58it/s+
Whats the avalanche way of making sure that evaluation also runs through gpu for best speed? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi @DannyFGitHub! I believe the gpu/cpu usage depends on how the train / eval plugins are implemented. It may be reasonable to have some eval metrics work on cpu only since it does not really make a difference in terms of performance.
For some metrics it may be interesting to record their value before starting training (e.g. RAM usage) |
Beta Was this translation helpful? Give feedback.
Hi @DannyFGitHub! I believe the gpu/cpu usage depends on how the train / eval plugins are implemented. It may be reasonable to have some eval metrics work on cpu only since it does not really make a difference in terms of performance.
For some metrics it may be interesting to record their value before starting training (e.g. RAM usage)