Why is my machine learning python/tensorflow script runs faster on colab as compared with a 24-vCPU google compute instance?
Invocation on colab: !/content/myscript.py
Invocation on google compute instance: !/home/prj1/myscript.py
epoch time on colab: 0.8 s
epoch time on google compute instance: 2.0 s
In both cases, I am using tensorflow 1.11 and python 2.7, myscript.py is the only program running, and GPU is not being used. The script displays training progress (text-only, no graphics) on the screen every 10 epochs.