Every time I tried this way, because of no budget, I got obsolete apis and libs include old glibc, old linux versions to return to GPU age, hours of compiling from the sources to run on new hardware and kernel. As a reward you will get a lot of internal knowledge but rare chanse to see CUDA and pytorch works as expected.