Following on from @Alexander_DE’s reply, you should be able to resolve the issue by installing PyTorch2.2 instead of the current latest version 2.3.
The previous install commands can be found on: Previous PyTorch Versions | PyTorch
More information on debugging this issue can be found on this thread here: Cuda not available for RTX 6000 mobile - #9 by AlphaBetaGamma96