Besides @gphilip’s advice, did you verify that the PyTorch pip wheel or conda binary with CUDA11.1 was installed? Your 3070 has a compute capability of 8.6 and thus needs CUDA>=11 and will fail with the posted error message in CUDA<=10.