Repository navigation
Unsloth Studio / Desktop (AMD, Windows): never run amd-smi from the installers #19615
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
danielhanchen
merged 7 commits into
unslothai:main
from
LeoBorcherding:amd-smi-installer-opt-in
Nov 27, 2026
+105
−673
Merged
Changes from 5 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d29e47d
Unsloth Studio / Desktop (AMD, Windows): keep the installer off amd-s…
LeoBorcherding 8054372
Never run amd-smi from the Windows installers, even when opted in
LeoBorcherding b5f84de
Anchor the venv readiness-gate test on the NVIDIA probe now that amd-…
LeoBorcherding 643cb2b
Drop amd-smi leftovers the Windows gate made unreachable
danielhanchen 2f7131a
Merge remote-tracking branch 'origin/main' into r19615
danielhanchen d514274
Keep the arch a crashed Windows hipinfo printed, now that amd-smi no …
danielhanchen 041afc4
Tighten comments on the amd-smi removal
danielhanchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the Windows HIP SDK's
hipinfoprintsgcnArchNameand then crashes with0xC0000005, the remaining probe still discards the valid arch because it requiresreturncode == 0. Removing the fallback therefore prevents_auto_host_following_rocm_torch()from confirming AMD on a mixed AMD+NVIDIA host without a manual gfx environment override: Automatic updates now take the CUDA branch even when ROCm torch is installed/requested, and the updater's forwarded gfx does not clear the NVIDIA flags. Accept arch-bearing partial output here, assetup.ps1andinstall_python_stack._detect_windows_gfx_arch()already do, to preserve this route without runningamd-smi.Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in d514274: detect_host and the Windows notice probe now accept hipinfo output that names gcnArchName whatever the exit code, as setup.ps1 / install.ps1 do; regression test test_a_crashed_hipinfo_counts_only_when_it_named_an_arch fails without the fix.