Solved by SimonW in post #7 
              
              
                Mac binaries do not ship with CUDA support. Moreover, from this page, it seems your machine don’t have a CUDA GPU anyways. However, your code calls model.cuda(). Hence the error.