CUDA is not currently available on your system -DentalSegmentator problem

Hello,
I’ve installed DentalSegmentator extension together with PyTorch extension. When I click on Apply, it says:
“Selected device (CUDA) is not currently available on your system and will default to CPU device.
Running the segmentation may take up to 1 hour.
Would you like to proceed?”

When I check CUDA and PyTorch on Slicer:

print(torch.version)
2.7.0+cpu
print(torch.version.cuda)
None
print(torch.cuda.is_available())
False

It gives these infos but I have CUDA installed (CUDA Version: 12.9).
Also I have NVIDIA GeForce RTX 4090.

How can i solve this problem?

I managed to solve my own problem. Apparently PyTorch is using only CPU as default at least on my case. I changed that form PyTorch Utils extention.