The answer depends entirely on which gfx target your laptop GPU reports, so start there before installing anything. On Windows:
Get-CimInstance Win32_VideoController | Select-Object Name, DriverVersion, AdapterRAM
Then, once any ROCm runtime is present, rocminfo | findstr gfx (Linux/WSL) or hipInfo from the HIP SDK on Windows gives you the exact ISA, e.g. gfx1102, gfx1103, gfx1032. That string decides your whole path.
If you get gfx1100 / gfx1101 (RX 7900 / 7800 class): you are on AMD’s official ROCm-on-Radeon list. Install the ROCm PyTorch wheels and you are done — no overrides needed.
If you get a mobile target like gfx1102 or gfx1032: it is not in the support matrix, but the ISA is close enough that the RDNA3/RDNA2 kernels usually run. Export the override before importing torch:
export HSA_OVERRIDE_GFX_VERSION=11.0.0 # gfx1102/gfx1103 -> gfx1100
export HSA_OVERRIDE_GFX_VERSION=10.3.0 # gfx1032 -> gfx1030
python -c "import torch; print(torch.cuda.is_available(), torch.cuda.get_device_name(0))"
Treat that as unsupported-but-working: results are usually numerically fine, occasional kernel launches will fail, and you should not file bugs against it.
Two practical notes that save the most time. First, PyTorch ROCm wheels are Linux-only in any reliable form — the supported route on a Windows laptop is WSL2 (Ubuntu 22.04) with the ROCm userspace installed inside the distro, not the Windows HIP SDK. Second, if you only want inference and not training, skip ROCm entirely: llama.cpp’s Vulkan backend and Lemonade both run on RDNA iGPUs and dGPUs with no ROCm install at all, and on a laptop with 6-8 GB of shared VRAM a Q4_K_M 7B model at -ngl 99 is a realistic target.
Tell me the gfx string and your VRAM and I can narrow it to one setup.