You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] AMD: training auto-selection picks a gfx1036 iGPU the torch wheel has no kernels for — "CUDA error: invalid kernel file" #8792
Same defect as #7624 / #7669, in the training path instead of llama-server. #7670 fixed the inference half on this exact machine; training still fails on current main.
The UI surfaces the raw HIP text as the run error, so the Train page shows a wall of AMD_SERIALIZE_KERNEL advice rather than saying this GPU cannot run this build.
Cause
auto_select_gpu_ids ranks visible GPUs by free VRAM and never asks what the installed torch wheel was built for. The iGPU stays in the selection, device_map="balanced" puts layers on it, and the wheel has no gfx1036 code object. torch.cuda.get_arch_list() is the wheel's own answer and is not used anywhere in the tree.
The llama.cpp gate from #7670 cannot cover this: mapped_targets describes the llama.cpp bundle, not the PyTorch wheel, and the two can cover different archs on the same host.
Workaround:$env:HIP_VISIBLE_DEVICES = "0" before launching, same as #7669. It hides the iGPU from every ROCm app, not just Studio.
Reported on Discord by the same user who reported #7669 and confirmed #7670's fix on this hardware.
Activity
fix(amd): gate training GPU selection on the installed torch build's …
Unsloth Studio (AMD/ROCm): refuse a GPU the installed PyTorch has no …
Unsloth Studio (AMD/ROCm): refuse a GPU the installed PyTorch has no …