cuda

install CUDA

install pytorch with CUDA

pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121

test

import torch

if torch.cuda.is_available():
    print("CUDA is beschikbaar