Your local toolkit won’t be used, if you’ve installed the conda binaries or pip wheels as described before.
If torch.version.cuda doesn’t return a valid CUDA runtime, the package didn’t ship with it and you’ve most likely installed a CPU-only version. If you have trouble installing it in your current environment, create a new one and reinstall PyTorch.