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 main: the two diffusers-import preflight tests only pass on a GPU host (#8281)
Daniel Hanf7ea9fab6245
diff --git a/.github/workflows/studio-backend-ci.yml b/.github/workflows/studio-backend-ci.ymlindex 4c1e716347b..eb3a24d5209 100644--- a/.github/workflows/studio-backend-ci.yml+++ b/.github/workflows/studio-backend-ci.yml@@ -57,7 +57,11 @@ jobs:pytest:name: (Python ${{ matrix.python }})runs-on: ubuntu-latest- timeout-minutes: 15+ # 30, not 15: the suite now runs 14.1 to 15.0 minutes on every interpreter in the matrix, so a+ # 15 minute budget cancels whichever jobs happen to land on the slow side of the median and the+ # result is a coin flip rather than a verdict. This guards against a hang, which 30 still does;+ # it was never meant to be a performance budget. The suite's own runtime is the real problem.+ timeout-minutes: 30strategy:fail-fast: falsematrix:@@ -117,7 +121,8 @@ jobs:# succeeds on CPU.name: Repo tests (CPU)runs-on: ubuntu-latest- timeout-minutes: 15+ # Same reason as the matrix above: this one measured 13.4 minutes against the same 15.+ timeout-minutes: 30steps:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1with:diff --git a/studio/backend/tests/test_diffusion_training.py b/studio/backend/tests/test_diffusion_training.pyindex a4b0c518384..b93078b279e 100644--- a/studio/backend/tests/test_diffusion_training.py+++ b/studio/backend/tests/test_diffusion_training.py@@ -1540,13 +1540,17 @@ def test_route_start_still_runs_when_the_install_does_have_the_pipeline(assert client._fake.started_with["base_model"] == "krea/Krea-2-Raw"-def test_route_start_refuses_a_diffusers_whose_lazy_submodule_cannot_import(client, monkeypatch):+def test_route_start_refuses_a_diffusers_whose_lazy_submodule_cannot_import(+ client, monkeypatch, dit_train_host+):# diffusers' top level is lazy, so the guard's attribute probe is what actually imports the# pipeline's submodule, and a partially usable install raises RuntimeError("Failed to import# diffusers.pipelines...") there. Inference absorbs that (the native sd.cpp engine needs no# diffusers), but the trainer child is a spawn of THIS interpreter and would hit the same# broken import -- after the GPU residents were gone. So training refuses, as a 400 with the# underlying reason intact rather than the bare 500 a RuntimeError would have produced.+ # dit_train_host because the accelerator gate runs first and would answer "needs a GPU" on a+ # GPU-less runner, so without it this asserts nothing about the import guard on CI.import sysimport types@@ -1572,10 +1576,11 @@ def test_route_start_refuses_a_diffusers_whose_lazy_submodule_cannot_import(clieassert client._fake.started_with is None-def test_route_start_refuses_training_when_diffusers_is_absent(client, monkeypatch):+def test_route_start_refuses_training_when_diffusers_is_absent(client, monkeypatch, dit_train_host):# There is no "the child will install it" here: the trainer runs in a spawned process in the# SAME environment, so an absent diffusers is absent there too. Refusing before the teardown- # is the whole point of this preflight.+ # is the whole point of this preflight. dit_train_host for the same reason as above: the+ # accelerator gate is earlier and would swallow this on a GPU-less runner.import builtinsimport sys