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
Studio tests: restore stub, titlebar backdrop, and run the autoopt parity fixture with diffusers (#13608)
Daniel Han308669bd8963
diff --git a/.github/workflows/studio-vae-seam-guard.yml b/.github/workflows/studio-vae-seam-guard.ymlindex 3751d5b572d..6d099f86e50 100644--- a/.github/workflows/studio-vae-seam-guard.yml+++ b/.github/workflows/studio-vae-seam-guard.yml@@ -14,6 +14,8 @@ on:- 'studio/backend/requirements/studio.txt'- 'studio/backend/tests/test_vae_tile_geometry.py'- 'studio/backend/tests/fixtures/vae_tile_configs.json'+ - 'studio/backend/tests/test_diffusion_autoopt_parity.py'+ - 'studio/backend/tests/fixtures/diffusion_autoopt_parity.json'- '.github/workflows/studio-vae-seam-guard.yml'push:branches: [main]@@ -23,6 +25,8 @@ on:- 'studio/backend/requirements/studio.txt'- 'studio/backend/tests/test_vae_tile_geometry.py'- 'studio/backend/tests/fixtures/vae_tile_configs.json'+ - 'studio/backend/tests/test_diffusion_autoopt_parity.py'+ - 'studio/backend/tests/fixtures/diffusion_autoopt_parity.json'- '.github/workflows/studio-vae-seam-guard.yml'workflow_dispatch:@@ -63,3 +67,8 @@ jobs:- name: Seam guardworking-directory: studio/backendrun: python -m pytest tests/test_vae_tile_geometry.py -q -rxXs --tb=short --timeout=600++ # Backend CI has no diffusers, so the auto-optimizer parity fixture is checked here.+ - name: Diffusion auto-optimizer parity+ working-directory: studio/backend+ run: python -m pytest tests/test_diffusion_autoopt_parity.py -q -rxXs --tb=short --timeout=600diff --git a/studio/backend/tests/test_diffusion_autoopt_parity.py b/studio/backend/tests/test_diffusion_autoopt_parity.pyindex d26fdf34e5e..17ddad59a0c 100644--- a/studio/backend/tests/test_diffusion_autoopt_parity.py+++ b/studio/backend/tests/test_diffusion_autoopt_parity.py@@ -468,6 +468,11 @@ def snapshot(entry: Callable) -> dict:from core.inference import diffusion_transformer_quantpatch.setattr(diffusion_transformer_quant, "_is_consumer_gpu", lambda *a, **k: True)+ # The fused fp16 RoPE and Wan gates ask whether Triton imports (CPU torch from pip has none); pin them too.+ from core.inference import diffusion_flux2_rope, video_wan_fused++ patch.setattr(diffusion_flux2_rope, "_kernel", lambda: (lambda *a, **k: None))+ patch.setattr(video_wan_fused, "_kernels", lambda: {})out: dict = {}try:for backend, fam in _families():diff --git a/studio/frontend/tests/image-restore-negative-prompt.test.ts b/studio/frontend/tests/image-restore-negative-prompt.test.tsindex d9e1fc6ec87..dd91a1c5bef 100644--- a/studio/frontend/tests/image-restore-negative-prompt.test.ts+++ b/studio/frontend/tests/image-restore-negative-prompt.test.ts@@ -42,6 +42,10 @@ function restoreSettingsWith(negativeCapable: boolean) {matchAspect: () => ({ key: "1:1", portrait: false }),restoreInputsNote: () => null,CONDITIONED_WORKFLOW_INPUTS: {},+ DEFAULT_SAMPLER: "default",+ AUTOMATIC_SCHEDULE: "automatic",+ samplerOptions: [],+ changeSamplerChoice: () => {},toast: { success: () => {} },};// Every closure name the callback reads that is not a real global resolves to a recording no-op,diff --git a/tests/studio/playwright_titlebar_blur.py b/tests/studio/playwright_titlebar_blur.pyindex 445bfb8af75..18ed02578e7 100644--- a/tests/studio/playwright_titlebar_blur.py+++ b/tests/studio/playwright_titlebar_blur.py@@ -104,7 +104,8 @@ def run():blurred(True)media_facts = facts()if EXPECTED:- assert media_facts["blur"] == "blur(2px)", media_facts+ # #13577: the titlebar backdrop dims like every popup backdrop, without a blur.+ assert media_facts["blur"] == "none", media_factsassert media_facts["pointerEvents"] == "none", media_factsassert int(media_facts["controlsZ"]) > int(media_facts["backdropZ"]), media_factselse:@@ -138,7 +139,7 @@ def run():elif kind == "tour":tour_facts = facts()if EXPECTED:- assert tour_facts["blur"] == "blur(2px)", tour_facts+ assert tour_facts["blur"] == "none", tour_factsassert tour_facts["opacity"] == "1", tour_factselse:assert tour_facts["content"] == "none", tour_facts