Repository navigation
Description
Note: Please do not remove the questions. Answer beside them.
- Did you update?
pip install --upgrade unsloth unsloth_zoo— Yes. Studio-managed venv: unsloth2026.8.18, unsloth_zoo2026.8.12, Studio2026.8.15. ColaborKaggleor local / cloud — Local, Unsloth Desktop on Windows 11 Home (10.0.26200).- Number GPUs used, use
nvidia-smi— 2x NVIDIA GeForce RTX 3090 (24 GB each), driver 610.62. - Which notebook? Please link! — N/A, this is the Studio/Desktop model settings UI.
- Which Unsloth version, TRL version, transformers version, PyTorch version? — unsloth
2026.8.18, unsloth_zoo2026.8.12, TRL0.23.1, transformers5.5.0, PyTorch2.10.0+cu130. - Which trainer?
SFTTrainer,GRPOTraineretc — N/A, inference/model-config only.
Summary
On a two-GPU CUDA host, the per-model GPUs picker (GPU Memory → GPUs, in model-config-page.tsx) never renders if CUDA_VISIBLE_DEVICES is set using GPU UUID entries instead of numeric indices. The control is not disabled or annotated — it is absent, so there is no way to discover that a GPU pin is possible or why it is unavailable.
Both cards are detected correctly everywhere else: the header tile reads 48 GiB VRAM, and the startup banner enumerates both devices. Only the pin control disappears.
nvidia-smi works fine on this host, and its output alone is sufficient to supply physical indices — but the UUID mask causes that working inventory to be discarded before it is used.
Environment
- OS: Windows 11 Home 10.0.26200
- GPUs: 2x RTX 3090, driver 610.62
CUDA_VISIBLE_DEVICES(Machine scope):GPU-d18a14b7-70a4-61bd-56f1-371055dfbb50,GPU-2f902962-578c-0f96-69a5-3e18679211d7- Backend: CUDA, llama.cpp (not Vulkan;
_backend_lacks_gpu_lib()isFalse)
The UUID order matches PCI bus order exactly, so this mask is a pure no-op in terms of device selection:
index, uuid, name, pci.bus_id
0, GPU-d18a14b7-70a4-61bd-56f1-371055dfbb50, NVIDIA GeForce RTX 3090, 00000000:01:00.0
1, GPU-2f902962-578c-0f96-69a5-3e18679211d7, NVIDIA GeForce RTX 3090, 00000000:04:00.0
Steps to reproduce
- On a multi-GPU CUDA host, set
CUDA_VISIBLE_DEVICESto the GPUs' UUIDs (GPU-<uuid>,GPU-<uuid>) rather than0,1. - Launch Unsloth Desktop.
- Open any GGUF model's settings (Model hub → On Device → a model → settings; or the sidebar model config).
- Set GPU Memory to
Manualso the placement controls expand. - Observe:
VRAM BudgetandGPU Layersrender, then the panel goes straight toChat Template. There is no GPUs section. - Set
CUDA_VISIBLE_DEVICES=0,1, restart Studio, repeat — the GPUs section now appears with one toggle per card.
Root cause
Traced against the installed source:
_get_parent_visible_gpu_spec()cannot map a UUID mask to numeric IDs, so it yieldsnumeric_ids: None.nvidia.get_backend_visible_gpu_info(None, …)early-returns atbackend/utils/hardware/nvidia.py:206withavailable: False, index_kind: "unresolved"— before runningnvidia-smi, whose--query-gpu=index,uuidoutput would resolve the mask.- Because that result is not
available,get_backend_visible_gpu_info()inbackend/utils/hardware/hardware.py:3551falls through to the torch fallback. Thereparent_visible_idsis[], sobackend/utils/hardware/hardware.py:3562-3565setsindex_kind = "relative". - In
frontend/src/hooks/use-gpu-info.ts,toGpuDevices()setspinnableonly whenindex_kind === "physical"(orvulkan), so both devices come backpinnable: false. pinnableGpuContext()(frontend/src/hooks/gpu-selection.ts) sees fewer than 2 pinnable devices and returnsids: [].model-config-page.tsx:373computesshowGpuPicker = (gpuContext.ids?.length ?? 0) > 1→false, and the section atmodel-config-page.tsx:475is never rendered.
Reproduced directly against the backend, same machine, only the env var differing:
from utils.hardware import get_backend_visible_gpu_info
get_backend_visible_gpu_info()["index_kind"]
# CUDA_VISIBLE_DEVICES=GPU-d18a14b7-...,GPU-2f902962-... -> 'relative'
# CUDA_VISIBLE_DEVICES=0,1 -> 'physical'Expected behaviour
A UUID mask is a legitimate, documented NVIDIA configuration — it is the standard way to make device selection stable across PCIe reordering, so users are actively encouraged toward it. It should not silently remove functionality.
Two suggestions, in order of preference:
-
Resolve UUIDs to physical indices.
nvidia-smi --query-gpu=index,uuid --format=csvmaps every UUID in the mask to a physical index in one call.nvidia.get_backend_visible_gpu_info()could resolve a non-numeric mask this way instead of returningunresolved, which would make UUID masks fully first-class and fix the picker with no user action. Thevisible_ordinalmapping already built for the numeric path applies unchanged once the UUIDs are translated. -
At minimum, explain the absence. If a mask genuinely cannot be resolved, render the GPUs section disabled with the reason, rather than omitting it. The current behaviour is indistinguishable from "this feature does not exist" — I concluded exactly that and went looking for a feature request before tracing the source.
The constraint is documented in the gpu_ids field description in backend/models/inference.py:97 ("physical IDs are unsupported when the parent visibility mask uses non-numeric or subdevice entries, including CUDA_VISIBLE_DEVICES with UUID/MIG entries"), but that text is not surfaced anywhere in the UI.
Workaround
Replace the UUID mask with numeric indices (CUDA_VISIBLE_DEVICES=0,1) and set CUDA_DEVICE_ORDER=PCI_BUS_ID to keep the indices stable, then restart Studio.
Activity
rsd-darshan commentedon Aug 15, 2026
Opened a fix in #8917. Your trace of the root cause through _get_parent_visible_gpu_spec() -> get_backend_visible_gpu_info() -> use-gpu-info.ts -> gpu-selection.ts -> model-config-page.tsx was extremely helpful -- went with your preferred option 1 (resolve UUIDs via nvidia-smi rather than just surfacing the reason in the UI), since it fixes the picker with no user action needed and the workaround you documented (numeric CUDA_VISIBLE_DEVICES + CUDA_DEVICE_ORDER=PCI_BUS_ID) stops being necessary.
Don't have multi-GPU hardware to confirm the picker actually renders end-to-end, so if you get a chance to test the branch once there's a build, that'd close the loop nicely.
fix(studio): resolve UUID-form CUDA_VISIBLE_DEVICES to physical GPU i…
Studio: resolve UUID-form CUDA_VISIBLE_DEVICES to physical GPU indices (