Solved by Nikronic in post #2 
              
              
                Are you using free version of these clouds? 
The free version of jupyter on those clouds are without GPUs so torch.cuda.is_available() is returning False. 
It is not true which jupyter cannot dispatch GPU, because it is just a interface on Ipython which is python itself.