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.

Format the two Qwen-Image-2.1 edit files the formatter check flags (#11617)

Daniel Hanea2a5710c3ae
diff --git a/studio/backend/core/inference/sd_cpp_backend.py b/studio/backend/core/inference/sd_cpp_backend.py
index 97632af3a2e..1d5e5367ee0 100644
--- a/studio/backend/core/inference/sd_cpp_backend.py
+++ b/studio/backend/core/inference/sd_cpp_backend.py
@@ -1575,7 +1575,10 @@ _ARCH_MARKER_CACHE: dict[tuple[str, int, int, str], bool] = {}
def binary_carries_marker(
- binary: Optional[str], marker: Optional[str], *, unreadable: bool = True
+ binary: Optional[str],
+ marker: Optional[str],
+ *,
+ unreadable: bool = True,
) -> bool:
"""Whether the sd.cpp executable at ``binary`` contains the literal ``marker``.
@@ -3498,7 +3501,6 @@ class SdCppDiffusionBackend:
raise ValueError("width and height are required for this workflow.")
else:
from core.inference.diffusion_conditioning import check_output_size
-
check_output_size(state.family, int(width), int(height))
if seed is None:
seed = int.from_bytes(os.urandom(6), "big") & ((1 << 53) - 1)
diff --git a/studio/backend/tests/test_sd_cpp_qwen21_edit.py b/studio/backend/tests/test_sd_cpp_qwen21_edit.py
index f0218b1ef1d..6e687ec8d48 100644
--- a/studio/backend/tests/test_sd_cpp_qwen21_edit.py
+++ b/studio/backend/tests/test_sd_cpp_qwen21_edit.py
@@ -164,7 +164,9 @@ def test_edit_is_advertised_only_with_the_projector_and_an_edit_capable_build(tm
def test_an_unreadable_build_advertises_no_edit_and_no_fidelity(tmp_path):
# The arch gate lets an unreadable binary through; these optional capabilities must not.
binary = tmp_path / "sd-server"
- binary.write_bytes(FAM.sd_cpp_edit_marker.encode() + b" " + bk._REFERENCE_FIDELITY_MARKER.encode())
+ binary.write_bytes(
+ FAM.sd_cpp_edit_marker.encode() + b" " + bk._REFERENCE_FIDELITY_MARKER.encode()
+ )
binary.chmod(0o111)
b = SdCppDiffusionBackend(engine = _FakeEngine())
b._state = _state(