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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
fix(rocm): tighten gfx regex to ignore generic ISA lines (#5033)
Daniel Han1ccfd2e0a5e5
diff --git a/studio/install_llama_prebuilt.py b/studio/install_llama_prebuilt.pyindex e43a78baeac..fd2b78d05fe 100755--- a/studio/install_llama_prebuilt.py+++ b/studio/install_llama_prebuilt.py@@ -2576,8 +2576,14 @@ def detect_host() -> HostInfo:has_rocm = Falseif is_linux:for _cmd, _check in (- # rocminfo: look for "gfxNNNN" with nonzero first digit (gfx000 is CPU agent)- (["rocminfo"], lambda out: bool(re.search(r"gfx[1-9]", out.lower()))),+ # rocminfo: look for a real gfx GPU id (3-4 chars, nonzero first digit).+ # gfx000 is the CPU agent; ROCm 6.1+ also emits generic ISA lines like+ # "gfx11-generic" or "gfx9-4-generic" which only have 1-2 digits before+ # the dash and must not be treated as a real GPU.+ (+ ["rocminfo"],+ lambda out: bool(re.search(r"gfx[1-9][0-9a-z]{2,3}", out.lower())),+ ),(["amd-smi", "list"], _amd_smi_has_gpu),):_exe = shutil.which(_cmd[0])diff --git a/studio/install_python_stack.py b/studio/install_python_stack.pyindex cf024d40764..2b9fd084d43 100644--- a/studio/install_python_stack.py+++ b/studio/install_python_stack.py@@ -183,8 +183,14 @@ def _has_rocm_gpu() -> bool:import refor cmd, check_fn in (- # rocminfo: look for "Name: gfxNNNN" with nonzero first digit (gfx000 is the CPU agent)- (["rocminfo"], lambda out: bool(re.search(r"gfx[1-9]", out.lower()))),+ # rocminfo: look for a real gfx GPU id (3-4 chars, nonzero first digit).+ # gfx000 is the CPU agent; ROCm 6.1+ also emits generic ISA lines like+ # "gfx11-generic" or "gfx9-4-generic" which only have 1-2 digits before+ # the dash and must not be treated as a real GPU.+ (+ ["rocminfo"],+ lambda out: bool(re.search(r"gfx[1-9][0-9a-z]{2,3}", out.lower())),+ ),# amd-smi list: require "GPU: <number>" data rows, not just a header(["amd-smi", "list"],