Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

docs(studio): fix stale gfx110X example in ROCR masking comments (#7440)

Leo Borcherdingd127039e87ba
diff --git a/studio/backend/core/inference/llama_cpp.py b/studio/backend/core/inference/llama_cpp.py
index ff966e84460..c83d3696a81 100644
--- a/studio/backend/core/inference/llama_cpp.py
+++ b/studio/backend/core/inference/llama_cpp.py
@@ -3116,8 +3116,9 @@ class LlamaCppBackend:
prefer_rocr masks at the ROCr/HSA layer instead (clearing HIP). A HIP mask
filters only AFTER the HSA runtime enumerates every agent, and that
enumeration segfaults at startup on a GPU the build has no kernels for
- (e.g. a gfx1103 iGPU under a gfx110X prebuilt), before llama-server logs a
- line. ROCR drops the device at the driver layer, consuming physical ids.
+ (e.g. a gfx1036 iGPU under a gfx103X prebuilt: that bundle maps only
+ gfx1030/1031/1032/1034), before llama-server logs a line. ROCR drops the
+ device at the driver layer, consuming physical ids.
The CPU-only sentinel ("-1") has no portable ROCR spelling, so it keeps
the HIP mask. Windows keeps the HIP mask too: ROCR_VISIBLE_DEVICES is a
Linux ROCr variable (Windows HIP has no ROCr layer), so the ROCR pin
@@ -8283,7 +8284,7 @@ class LlamaCppBackend:
env["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"
# Mask on AMD at the ROCr/HSA layer: HIP-only masking still
# enumerates every agent first, which segfaults on a deselected
- # unsupported GPU (e.g. gfx1103 iGPU under a gfx110X prebuilt).
+ # unsupported GPU (e.g. gfx1036 iGPU under a gfx103X prebuilt).
self._emit_child_gpu_visibility(
env, ",".join(str(i) for i in gpu_indices), prefer_rocr = True
)
diff --git a/studio/backend/tests/test_gpu_memory_mode.py b/studio/backend/tests/test_gpu_memory_mode.py
index 9da8a8d92f4..4259171da97 100644
--- a/studio/backend/tests/test_gpu_memory_mode.py
+++ b/studio/backend/tests/test_gpu_memory_mode.py
@@ -1052,7 +1052,7 @@ def _rocm_torch_stub(monkeypatch):
def test_subset_pin_masks_via_rocr_on_rocm(monkeypatch):
# A GPU-subset pin must exclude the rest at the ROCr/HSA layer: HIP masking
# still enumerates every agent first, which segfaults the build on an
- # unsupported deselected GPU (e.g. a gfx1103 iGPU under a gfx110X prebuilt).
+ # unsupported deselected GPU (e.g. a gfx1036 iGPU under a gfx103X prebuilt).
# ROCR drops it at the driver layer; only one mask is set (HIP cleared).
_rocm_torch_stub(monkeypatch)
env = {"HIP_VISIBLE_DEVICES": "9"} # stale/inherited HIP mask must not survive