'Can I use a GPU/CPU of a different machine than the one with my virtual env?

I have a setup where I develop a Python ML applciation on Windows, but I use an SSH virtual environment from Ubuntu (WSL2).

Now suppose that I would like to run my experiments on some machine with amazing GPU and CPU that I can generally SSH to. However, the setup of the virtual environment on that machine would be very difficult (I can't freedy install CUDA versions etc.).

Is there any way that I could use the virtual environment from my Ubuntu machine (that is on my machine with low specs), but outsource just the computation to another machine?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source