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.

Studio: pin the master-982 stable-diffusion.cpp prebuilt so MOSS-Image GGUFs load (#14565)

Daniel Han5ab80ffdb486
diff --git a/studio/backend/tests/test_diffusion_more_families.py b/studio/backend/tests/test_diffusion_more_families.py
index 57344d8a553..0d7c117e0e0 100644
--- a/studio/backend/tests/test_diffusion_more_families.py
+++ b/studio/backend/tests/test_diffusion_more_families.py
@@ -853,12 +853,13 @@ def test_the_pinned_prebuilt_is_one_that_can_load_qwen_image_21():
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
- assert module.DEFAULT_TAG == "master-968-8cd731e-ubdb47d1", (
- "the pinned prebuilt must be one built from a tree carrying Qwen-Image-2.1 and FLUX.3; "
+ assert module.DEFAULT_TAG == "master-982-0518b34-ud331c66", (
+ "the pinned prebuilt must be one built from a tree carrying Qwen-Image-2.1, FLUX.3 and MOSS-Image; "
f"{module.DEFAULT_TAG} is not"
)
- # FLUX.3 Image Klein landed upstream in master-968; the upstream fallback installs the pin's base.
- assert int(module.DEFAULT_TAG.split("-")[1]) >= 968
+ # FLUX.3 Image Klein landed upstream in master-968, MOSS-Image in master-975; the upstream fallback installs the
+ # pin's base.
+ assert int(module.DEFAULT_TAG.split("-")[1]) >= 975
def test_a_minimum_that_has_not_shipped_does_not_prescribe_an_impossible_upgrade(
diff --git a/studio/backend/tests/test_sd_cpp_args.py b/studio/backend/tests/test_sd_cpp_args.py
index 990173ac119..5552b0c97a1 100644
--- a/studio/backend/tests/test_sd_cpp_args.py
+++ b/studio/backend/tests/test_sd_cpp_args.py
@@ -1130,8 +1130,9 @@ def _all_builders(binary, extra_args = None):
@pytest.mark.parametrize(
"tag, expected",
[
- ("master-968-8cd731e-ubdb47d1", True), # the pinned bundle
- ("master-951-f89d9b1-uafac7a7", True), # the previous pin
+ ("master-982-0518b34-ud331c66", True), # the pinned bundle
+ ("master-968-8cd731e-ubdb47d1", True), # the previous pin
+ ("master-951-f89d9b1-uafac7a7", True), # the pin before it
("master-907-500ef5f", True), # the build that merged #2037
("master-906-abcdef0", False), # --mmap there hands Metal an unaddressable CPU buffer
("master-813-bfbef5b-u6321a69", False),
diff --git a/studio/backend/tests/test_sd_cpp_install.py b/studio/backend/tests/test_sd_cpp_install.py
index 169b5a646b0..2fc3ebaf268 100644
--- a/studio/backend/tests/test_sd_cpp_install.py
+++ b/studio/backend/tests/test_sd_cpp_install.py
@@ -1474,8 +1474,9 @@ def test_the_shipped_pin_falls_back_to_an_upstream_release_that_runs_qwen_image_
assert repo == sdmod.UPSTREAM_FALLBACK_REPO
assert chosen.endswith("-win-cuda12-x64.zip")
assert release["tag_name"] == upstream_tag_for(DEFAULT_TAG)
- # Qwen-Image-2.1 landed upstream in master-883, its reference-alpha fix in master-896, FLUX.3 in master-968.
- assert int(release["tag_name"].split("-")[1]) >= 968
+ # Qwen-Image-2.1 landed upstream in master-883, its reference-alpha fix in master-896, FLUX.3 in master-968,
+ # MOSS-Image in master-975.
+ assert int(release["tag_name"].split("-")[1]) >= 975
# ── mirror -> upstream fallback in install() ─────────────────────────────────
diff --git a/studio/backend/tests/test_sd_cpp_vulkan_cpu_torch.py b/studio/backend/tests/test_sd_cpp_vulkan_cpu_torch.py
index 9a4ce7c458c..6b411607f28 100644
--- a/studio/backend/tests/test_sd_cpp_vulkan_cpu_torch.py
+++ b/studio/backend/tests/test_sd_cpp_vulkan_cpu_torch.py
@@ -310,13 +310,13 @@ def test_selection_installs_the_vulkan_build(monkeypatch):
_PINNED_RELEASE_ASSETS = [
- "sd-master-968-8cd731e-ubdb47d1-bin-Linux-Ubuntu-22.04-x86_64-cuda12.zip",
- "sd-master-968-8cd731e-ubdb47d1-bin-Linux-Ubuntu-22.04-x86_64-vulkan.zip",
- "sd-master-968-8cd731e-ubdb47d1-bin-Linux-Ubuntu-22.04-x86_64.zip",
- "sd-master-968-8cd731e-ubdb47d1-bin-Linux-Ubuntu-24.04-aarch64.zip",
- "sd-master-968-8cd731e-ubdb47d1-bin-win-cpu-x64.zip",
- "sd-master-968-8cd731e-ubdb47d1-bin-win-cuda12-x64.zip",
- "sd-master-968-8cd731e-ubdb47d1-bin-win-vulkan-x64.zip",
+ "sd-master-982-0518b34-ud331c66-bin-Linux-Ubuntu-22.04-x86_64-cuda12.zip",
+ "sd-master-982-0518b34-ud331c66-bin-Linux-Ubuntu-22.04-x86_64-vulkan.zip",
+ "sd-master-982-0518b34-ud331c66-bin-Linux-Ubuntu-22.04-x86_64.zip",
+ "sd-master-982-0518b34-ud331c66-bin-Linux-Ubuntu-24.04-aarch64.zip",
+ "sd-master-982-0518b34-ud331c66-bin-win-cpu-x64.zip",
+ "sd-master-982-0518b34-ud331c66-bin-win-cuda12-x64.zip",
+ "sd-master-982-0518b34-ud331c66-bin-win-vulkan-x64.zip",
]
@@ -326,9 +326,9 @@ _PINNED_RELEASE_ASSETS = [
(
"Linux",
"x86_64",
- "sd-master-968-8cd731e-ubdb47d1-bin-Linux-Ubuntu-22.04-x86_64-vulkan.zip",
+ "sd-master-982-0518b34-ud331c66-bin-Linux-Ubuntu-22.04-x86_64-vulkan.zip",
),
- ("Windows", "AMD64", "sd-master-968-8cd731e-ubdb47d1-bin-win-vulkan-x64.zip"),
+ ("Windows", "AMD64", "sd-master-982-0518b34-ud331c66-bin-win-vulkan-x64.zip"),
("Linux", "aarch64", None),
],
)
diff --git a/studio/install_sd_cpp_prebuilt.py b/studio/install_sd_cpp_prebuilt.py
index 94ea1852b54..829b675678e 100644
--- a/studio/install_sd_cpp_prebuilt.py
+++ b/studio/install_sd_cpp_prebuilt.py
@@ -40,10 +40,10 @@ DEFAULT_REPO = "unslothai/stable-diffusion.cpp"
UPSTREAM_FALLBACK_REPO = "leejet/stable-diffusion.cpp"
# Pinned for reproducibility; UNSLOTH_SD_CPP_TAG overrides (empty tracks latest) and a missing tag falls back to latest. The -u<id> suffix is the mirror's patch set: an unpatched build aborts on the default --cfg-scale and on --vae-on-cpu, and quantizes MiniMax-H3's 1-D norms into an output uncorrelated with its own bf16 reference (leejet/stable-diffusion.cpp#1861, #1862, #1863).
# The base must carry every family's sd_cpp_arch_marker / sd_cpp_edit_marker: hosts the mirror does
-# not build (ROCm) install it from upstream. master-951, the previous base, predates FLUX.3 Image Klein
-# (master-968); master-813 before it predated Qwen-Image-2.1 (master-883) and its reference-alpha fix
-# (master-896). CUDA bundles carry no CUDA runtime.
-DEFAULT_TAG = "master-968-8cd731e-ubdb47d1"
+# not build (ROCm) install it from upstream. master-968, the previous base, predates MOSS-Image (master-975,
+# split-QKV GGUF loading in the same release); master-951 before it predated FLUX.3 Image Klein (master-968), and
+# master-813 Qwen-Image-2.1 (master-883) and its reference-alpha fix (master-896). CUDA bundles carry no CUDA runtime.
+DEFAULT_TAG = "master-982-0518b34-ud331c66"
REPO = DEFAULT_REPO