Repository navigation
Closed
Description
Note: Please do not remove the questions. Answer beside them.
-
Did you update?
pip install --upgrade unsloth unsloth_zoono -
ColaborKaggleor local / cloud local -
Number GPUs used, use
nvidia-smi1 -
Which notebook? Please link!
-
Which Unsloth version, TRL version, transformers version, PyTorch version? unsloth 2026.8.10
-
Which trainer?
SFTTrainer,GRPOTraineretc
Put Minimal code to reproduce error here ###Remove Hugging Face token###
###Please make sure to check formatting properly, edit if needed.###
AMD Ryzen AI 395 MAX not recognized at setup.
Root cause (an upstream bug in unsloth 2026.8.10, not your machine): install.ps1 correctly detects your AMD Radeon 8060S (gfx1151) and installs ROCm torch, but the bundled studio/setup.ps1's AMD WMI fallback had a PowerShell scalar-unroll bug:
$wmiGpus = if ($healthyGpus.Count -gt 0) { $healthyGpus } else { $amdGpus }
With exactly one AMD GPU, $healthyGpus unrolls to a scalar CimInstance, and a scalar's .Count is $null under Windows PowerShell 5.1 (which the CLI uses). So $null -gt 0 = false → setup reports "gpu none (chat-only/GGUF)", concludes the venv's ROCm torch is "stale" (torch rocm != required cpu), and aborts telling you to "re-run install.ps1" — an infinite loop.
Fix: wrap the if-expression in @(...) (the same pattern the Intel scan in that file already uses):
$wmiGpus = @(if ($healthyGpus.Count -gt 0) { $healthyGpus } else { $amdGpus })
Since install.ps1 rebuilds the venv every run (overwriting any patch), I made a patched copy that re-applies this one-line hotfix inside the fresh venv right before studio setup: C:\Users\Demo\AppData\Local\Temp\opencode\install-fixed.ps1.
Result (exit 0):
- Setup now sees gpu AMD ROCm (gfx1151)
- torch 2.11.0+rocm7.13.0 (HIP 7.13), torchvision/torchaudio matched
- llama.cpp gfx1151 prebuilt installed and validated
- unsloth launcher on PATH (~\.unsloth\studio\bin), desktop shortcut created
- The fix persists in the installed setup.ps1, so studio update will also work
Start it with: unsloth studio -p 8888
Activity
ahmad110abbas commentedon Aug 10, 2026
Wrap the expression in @(...) so PowerShell forces it to remain an array:
$wmiGpus = @(if ($healthyGpus.Count -gt 0) { $healthyGpus } else { $amdGpus })Run the AMD repair loop tests under Windows PowerShell 5.1 as well
Windows installer: fix single-AMD-GPU detection and the "needs repair…
Windows installer: correct the 5.1 diagnosis, make the test reproduce…
Windows installer: fix single-AMD-GPU detection and the unrecoverable…
Merge main, keeping its wording for the shared @() fix
Restore the #8335 WMI guard anchor after the RDNA1 wrapper (#8684)
Run the #8473 torch visibility PowerShell tests in CI
Add Unsloth Docker images (base + Studio) for any NVIDIA GPU host, Am…
Test the Windows on ARM install path on Windows on ARM
setup.ps1: classify a probe killed by a code integrity status, and re…