Search code examples
cloudgpugoogle-colaboratory

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


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


Solution

  • 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.