Repository navigation
Studio: a Windows host whose NVIDIA GPU is hidden by CUDA_VISIBLE_DEVICES selects the CUDA bundle, not windows-cpu - #10976
Merged
Conversation
…ICES selects the CUDA bundle, not windows-cpu
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Member
Author
|
@codex review |
Member
Author
|
@codex security review |
danielhanchen
added a commit
to shimmyshimmer/unsloth-staging-4
that referenced
this pull request
Sep 15, 2026
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
shaojun
pushed a commit
to shaojun/unsloth
that referenced
this pull request
Sep 29, 2026
…ICES selects the CUDA bundle, not windows-cpu (unslothai#10976) * Studio: a Windows host whose NVIDIA GPU is hidden by CUDA_VISIBLE_DEVICES selects the CUDA bundle, not windows-cpu * Tighten the masked-NVIDIA helper docstring for PR unslothai#10976 --------- Co-authored-by: danielhanchen <[email protected]>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Windows half of #10909. That PR stopped a Linux host whose NVIDIA GPU is hidden by
CUDA_VISIBLE_DEVICES(empty or-1) from installing the CPU bundle over its CUDA one. The Windows branch ofresolve_release_asset_choiceand ofdirect_upstream_release_planhad the same gap: both entered CUDA selection onhas_usable_nvidiaalone, so physical-without-usable fell through to thewindows-cpuarm.The masked run is not exotic. The backend pins GPUs for itself through
CUDA_VISIBLE_DEVICES, the in-app llama.cpp update passes its own environment to the installer, and the install tree it replaces outlives the mask. One masked update left a CUDA machine on the CPU bundle for good.The change
_masked_nvidia_selection_host(host)is the one place that answers "is this the masked case, and which host should selection run against". It returns a host selecting against the physical compute caps (the visible ones are empty by construction, which is the selector's unknown-SM path, so a masked sm_61 host would otherwise accept an sm_70 floor),Nonefor a host with usable ROCm (it keeps ROCm, as on Linux) and for an explicit CPU request (_apply_host_overrideshas clearedhas_physical_nvidia). Both Windows arms use it, and the Linux branch now calls it instead of carrying its own copy of the logic.A masked Windows host with no CUDA match raises
PrebuiltFallbackexactly as a visible one does, sosetup.ps1source-builds with CUDA rather than installing CPU. Torch's runtime preference is read withgpu_hidden_by_mask=True, as on Linux, so a cu12 venv is not handed a CUDA 13 bundle.Tests
TestWindowsMaskedNvidiaTakesCudamirrors the Linux class: the masked host takeswindows-cudaand nothing else, selection reads the physical caps (an sm_61 host below the bundle floor source-builds instead of taking CPU), the torch preference is read under the mask, a host with usable ROCm never enters CUDA selection, an explicit CPU request still takeswindows-cpu, and the direct upstream plan agrees. Four of the six fail on main; the fulltests/studio/installsuite passes (5052 tests).