Anyone experienced the warning about Google colaboratory:You are connected to a GPU runtime, but not utilizing the GPU

14,612

I believe it means your work isn't using the GPU. GPU and TPU runtimes are valued more than the "None" runtime. Colab only allows for two GPU runtime sessions at a time. None allows for approximatley five.

Also they only allow for twelve hours total use, and each session will be cumulative.

If you don't need or don't know if you need GPU, I would suggest the None runtime. Colab is lenient on timeouts and amount of sessions if the runtime is None.


https://research.google.com/colaboratory/faq.html

I saw a message saying my GPU is not being utilized. What should I do?

Colab offers optional accelerated compute environments, including GPU and TPU. Executing code in a GPU or TPU runtime does not automatically mean that the GPU or TPU is being utilized. To avoid hitting your GPU usage limits, we recommend switching to a standard runtime if you are not utilizing the GPU. Choose Runtime > Change Runtime Type and set Hardware Accelerator to None.

For examples of how to utilize GPU and TPU runtimes in Colab, see the Tensorflow With GPU and TPUs In Colab example notebooks.

Share:
14,612
temps1101
Author by

temps1101

Updated on June 27, 2022

Comments

  • temps1101
    temps1101 almost 2 years

    This warning has been going on for three weeks now. I would like to know this solution. this warning comes out.

  • temps1101
    temps1101 almost 4 years
    Thank you so much for answering my question. I used to use them when I didn't need a GPU or TPU, so I choose 'NONE' when I don't need them.
  • Benyamin Jafari - aGn
    Benyamin Jafari - aGn over 3 years
    I usually encounter this warning when I'm working with tensorflow. However, when I choose None as runtime, it leads to a lower training rate significantly (~8x slower).