The command to install the stable version of PyTorch (2.7.0) with CUDA 12.8 using pip on Linux is:
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128