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
Stop two installer tests answering about the runner instead of the code (#10079)
Daniel Hanbd09cc368089
diff --git a/studio/backend/tests/test_torchao_select.py b/studio/backend/tests/test_torchao_select.pyindex 9c96dafb71d..38f84b18136 100644--- a/studio/backend/tests/test_torchao_select.py+++ b/studio/backend/tests/test_torchao_select.py@@ -134,6 +134,13 @@ def test_skips_torchao_on_windows_rocm(monkeypatch.setattr(mod, "_installed_torch_is_windows_rocm", lambda: installed_torch_is_windows_rocm)+ # #10053 added a require_present gate to install_python_stack: after the core phase+ # it refuses when a managed distribution is not installed at all, which SKIP_STUDIO_BASE+ # guarantees here. Unstubbed, this test asks whether unsloth happens to be installed in+ # whatever environment runs it -- it passes on a developer machine that has it and fails+ # in CI, which is not what the test is about. Stubbed like every other installer side+ # effect below.+ monkeypatch.setattr(mod, "_repair_damaged_core_payload", lambda *a, **k: True)monkeypatch.setattr(mod, "_bootstrap_uv", lambda: False)monkeypatch.setattr(mod, "_repair_bad_anyio", lambda: None)monkeypatch.setattr(mod, "_ensure_rocm_torch", lambda: None)diff --git a/tests/studio/install/test_install_manifest_damage.py b/tests/studio/install/test_install_manifest_damage.pyindex a8a44cb3537..ac98b6fca7e 100644--- a/tests/studio/install/test_install_manifest_damage.py+++ b/tests/studio/install/test_install_manifest_damage.py@@ -686,8 +686,15 @@ def test_an_unimportable_helper_forces_the_dependency_pass(tmp_path, contents, escript_dir.mkdir()if contents is not None:(script_dir / "install_manifest.py").write_text(contents, encoding = "utf-8")+ # -I -S so `script_dir` is the ONLY place install_manifest can come from. The probe+ # imports it off sys.path, and an install_manifest reachable from site-packages or+ # PYTHONPATH satisfies that import even when the directory under test is empty: the+ # "absent" case then falls through to a real verify_install against whatever tree the+ # runner happens to have, and answers about that instead. -I drops PYTHONPATH and the+ # user site, -S drops site-packages. Neither is needed by the probe, whose only+ # imports are os, sys and the file being tested.result = subprocess.run(- [sys.executable, "-c", _installer_helper_probe(), str(script_dir)],+ [sys.executable, "-I", "-S", "-c", _installer_helper_probe(), str(script_dir)],capture_output = True,)assert result.returncode == expected