for rocm6.2 compute platform index, use --index-url https://sonatype-nexus-community.github.io/pytorch-pypi/whl/rocm6.2/simple
--index-url https://sonatype-nexus-community.github.io/pytorch-pypi/whl/rocm6.2/simple
see also other available indexes