File "/home/nick/yolo8/.venv/lib/python3.8/site-packages/torch/utils/cpp_extension.py", line 1786, in _get_cuda_arch_flags
raise ValueError(f"Unknown CUDA arch ({arch}) or GPU not supported")
ValueError: Unknown CUDA arch (8.7+PTX) or GPU not supported
Replacing the cpp_extension.py file with the most current one from pytorch/cpp_extension.py at main · pytorch/pytorch · GitHub solves the problem. Could the maintainers build the most current binary of PyTorch 2.0, in order to avoid this problem?
Thanks @pauljurczak, we found what happened is that the PyTorch commit (#13ebff) that fixed this issue didn’t make it into the v2.0.0 branch, which is what we had been basing our v2.0 builds off of. We’ll get this fixed in the upcoming release of the next PyTorch wheel (23.05) - sorry about that. For now, please revert to manually patching it, or use the l4t-pytorch container which has it fixed too.