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
Tests: follow the sidebar rename dialog and run the H3 compile-order test without diffusers (#13590)
Daniel Hane03303037fbf
diff --git a/studio/backend/tests/test_diffusion_h3_trainer.py b/studio/backend/tests/test_diffusion_h3_trainer.pyindex 09d8aa28aaf..b0f9f17d23d 100644--- a/studio/backend/tests/test_diffusion_h3_trainer.py+++ b/studio/backend/tests/test_diffusion_h3_trainer.py@@ -1962,6 +1962,29 @@ def test_h3_routes_its_transformer_through_the_shared_regional_compile(monkeypatch.setattr(dit, "_make_optimizer", _optimizer)cfg = _replace_cfg(_h3_cfg(base_precision = precision, gradient_checkpointing = False))+ # No diffusers in Backend CI: stub the two helpers _train_h3 imports, after the family check.+ try:+ import diffusers.optimization # noqa: F401+ import diffusers.training_utils # noqa: F401+ except ImportError:++ def _cast_training_params(model, dtype):+ for param in model.parameters():+ if param.requires_grad:+ param.data = param.to(dtype)++ monkeypatch.setitem(sys.modules, "diffusers", types.ModuleType("diffusers"))+ monkeypatch.setitem(+ sys.modules,+ "diffusers.optimization",+ types.SimpleNamespace(get_scheduler = lambda *_a, **_k: None),+ )+ monkeypatch.setitem(+ sys.modules,+ "diffusers.training_utils",+ types.SimpleNamespace(cast_training_params = _cast_training_params),+ )+with pytest.raises(_Stop):_train_h3(cfg,diff --git a/tests/studio/test_desktop_reliability_frontend_contract.py b/tests/studio/test_desktop_reliability_frontend_contract.pyindex 4b6075493b8..2a8886e25b5 100644--- a/tests/studio/test_desktop_reliability_frontend_contract.py+++ b/tests/studio/test_desktop_reliability_frontend_contract.py@@ -963,10 +963,6 @@ def test_chat_sidebar_rows_are_compact_without_vertical_padding():'"sidebar-nav-btn h-[30px] cursor-pointer rounded-full py-0 pr-4 ''text-ui-14p5 leading-ui-19 tracking-nav font-medium"') in block- assert (- '"text-foreground h-[30px] w-full border-0 bg-transparent py-0 pr-4 '- 'text-ui-14p5 leading-ui-19 font-medium tracking-nav outline-none"'- ) in blockassert 'isPinned && variant !== "project" && "gap-[8.5px]"' in blockassert 'variant === "project" ? "pl-[39px]" : "pl-3"' in block@@ -2015,8 +2011,8 @@ def test_chat_sidebar_row_actions_visible_on_coarse_pointers():builder_end = indexbreakassert builder_end is not None, "unbalanced `const buttonClass = cn(` in the sidebar"- # On the row button itself, not merely somewhere in the function. The row also renders an- # inline rename input and a pin, and handing buttonClass to one of those while the button+ # On the row button itself, not merely somewhere in the function. The row also renders a+ # pin, and handing buttonClass to it or another element while the button# went without would leave every padding check below describing classes that reach nothing# the gutters are measured against.carriers = [@@ -2711,11 +2707,12 @@ _LENGTHS_THAT_MUST_KEEP_THE_SCALE = (# The sidebar row: its height, the gap it sets when pinned, and the indent a project row# takes. These are hand-set one-off lengths, which is exactly the spacing that used to# stay put while the labels grew, so the row clips its own text at a larger setting.- # Eight rows: #11589 added the drop-cue row, #12016 a second section header for the- # custom sidebar sections, and #12927 the pinned-pages label, all scaled like the rest.- (APP_SIDEBAR, "", "h", "30px", 8),+ # Seven rows: #11589 added the drop-cue row, #12016 a second section header for the+ # custom sidebar sections, and #12927 the pinned-pages label; #13575 dropped the inline+ # rename input (one 30px height, one 39px indent).+ (APP_SIDEBAR, "", "h", "30px", 7),(APP_SIDEBAR, "", "gap", "8.5px", 6),- (APP_SIDEBAR, "", "pl", "39px", 2),+ (APP_SIDEBAR, "", "pl", "39px", 1),# The 34px pill controls in the media headers, in all three spellings the pages use. The# band around them scales and so does their own text, so a control left fixed is the one# thing in that row that does not move, and it crowds out its label.