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.

ROCm progress test: model a feed that resolves the no-torch pair (#16542)

Daniel Han9448b9d68205
diff --git a/tests/studio/install/test_rocm_support.py b/tests/studio/install/test_rocm_support.py
index 249247a21a2..7ad50d767a6 100644
--- a/tests/studio/install/test_rocm_support.py
+++ b/tests/studio/install/test_rocm_support.py
@@ -5702,7 +5702,14 @@ class TestProgressStepCountMatchesTotal:
patch.object(stack_mod, "IS_WINDOWS", is_windows),
patch.object(stack_mod, "IS_MACOS", is_macos),
patch.object(stack_mod, "IS_MAC_ARM", is_mac_arm),
- patch.object(stack_mod, "NO_TORCH", no_torch),
+ # The mocked subprocess writes no wheel metadata, so the no-torch pair probe (#16157)
+ # would find nothing; model a feed that serves a compatible Unsloth / Zoo pair.
+ # One patch for both: this with statement is at Python's 20 nested block limit.
+ patch.multiple(
+ stack_mod,
+ NO_TORCH = no_torch,
+ _no_torch_pair = MagicMock(return_value = ("2026.11.1", "2026.11.1", 0)),
+ ),
patch.object(stack_mod, "_rocm_windows_torch_installed", False),
patch.object(stack_mod, "_bootstrap_uv", return_value = False),
patch.object(stack_mod, "_installed_torch_is_windows_rocm", return_value = False),