Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

chore(deps): bump diffusers to 0.42.1 (#10078)

Alexander Eichhornd7b610e04c18
diff --git a/invokeai/backend/flux/schedulers.py b/invokeai/backend/flux/schedulers.py
index 08d808c99b..f54c4c38b1 100644
--- a/invokeai/backend/flux/schedulers.py
+++ b/invokeai/backend/flux/schedulers.py
@@ -50,11 +50,11 @@ def set_heun_timesteps_from_sigmas(
terminal_sigma: float,
device: str | torch.device | None,
) -> None:
- """Set Diffusers 0.41.0's Heun layout from InvokeAI's shifted model sigmas."""
+ """Set the Diffusers Heun scheduler's layout from InvokeAI's shifted model sigmas."""
if not sigmas:
raise ValueError("At least one model-evaluation sigma is required")
- # In Diffusers 0.41.0, set_timesteps() creates a schedule with the first
+ # Diffusers' Heun set_timesteps() creates a schedule with the first
# sigma evaluated once and every later sigma twice. The final interval ends
# at the terminal sigma and has no second-order evaluation.
scheduler.set_timesteps(num_inference_steps=len(sigmas), device=device)
diff --git a/pyproject.toml b/pyproject.toml
index 2669882d8f..e00fdab21b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -37,7 +37,7 @@ dependencies = [
"bitsandbytes; sys_platform!='darwin' and (sys_platform != 'win32' or platform_machine != 'ARM64')",
"bitsandbytes>=0.50.1; sys_platform == 'win32' and platform_machine == 'ARM64'", # 0.50.1 added the CUDA 13.4 win_arm64 build for RTX Spark
"compel>=2.4.0,<3",
- "diffusers[torch]==0.41.0",
+ "diffusers[torch]==0.42.1",
"gguf",
# Not on Windows ARM64: the only win_arm64 mediapipe wheel (0.10.35+) is the Tasks-API build without the
# legacy `solutions` API the face preprocessor and Face Tools use; those nodes report the platform when run.
diff --git a/tests/backend/model_manager/load/test_diffusers_041_compatibility.py b/tests/backend/model_manager/load/test_diffusers_042_compatibility.py
similarity index 99%
rename from tests/backend/model_manager/load/test_diffusers_041_compatibility.py
rename to tests/backend/model_manager/load/test_diffusers_042_compatibility.py
index 357d861722..2df8e02b3c 100644
--- a/tests/backend/model_manager/load/test_diffusers_041_compatibility.py
+++ b/tests/backend/model_manager/load/test_diffusers_042_compatibility.py
@@ -84,7 +84,7 @@ def test_every_diffusers_import_in_invokeai_resolves() -> None:
def test_pinned_diffusers_exposes_existing_and_krea_model_contracts() -> None:
- assert Version(diffusers.__version__) == Version("0.41.0")
+ assert Version(diffusers.__version__) == Version("0.42.1")
expected_symbols = (
"AutoencoderKLFlux2",
diff --git a/uv.lock b/uv.lock
index 1454e36c18..b9299dafdd 100644
--- a/uv.lock
+++ b/uv.lock
@@ -1334,7 +1334,7 @@ wheels = [
[[package]]
name = "diffusers"
-version = "0.41.0"
+version = "0.42.1"
source = { registry = "https://pypi.org/simple" }
dependencies = [
{ name = "filelock" },
@@ -1347,9 +1347,9 @@ dependencies = [
{ name = "requests" },
{ name = "safetensors" },
]
-sdist = { url = "https://files.pythonhosted.org/packages/a8/bc/34a91d366fe8e546637d702403e4d8cd5dbdf705a15fb3725d34a7ab3416/diffusers-0.41.0.tar.gz", hash = "sha256:69dcced7230b6bc0b70b5c6cfdff1aa62da487ab52ae74b642e46b1b9bfacc47", size = 5026281, upload-time = "2026-10-06T06:24:14.884Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/a1/4f/21d79e9a2f040416ef4707fbd1bcbaa6f31d33cf63159d78647f78944792/diffusers-0.42.1.tar.gz", hash = "sha256:ce855ab670c8cd1c7a61be8f12fbc68c081bca8ec5e747273946d8d6c2aff23b", size = 5264977, upload-time = "2026-10-27T07:22:26.434Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/fe/c4/5bf8afd1ff3a8d99da7a18b1067ae0b4e2a037c38f3851890a989c511fd3/diffusers-0.41.0-py3-none-any.whl", hash = "sha256:ea8918b7dfd92ce793b6db689a551b8cd25d52c6c0fcd3ade0706a5fd2a25990", size = 6063887, upload-time = "2026-10-06T06:24:12.455Z" },
+ { url = "https://files.pythonhosted.org/packages/e1/e9/4328c781bc64f8b74363f66674c00e65021e9a857fb9cb4882ed447956cd/diffusers-0.42.1-py3-none-any.whl", hash = "sha256:9154faa704ce00e0b77f568e0d64786064368528aab5fc14eeea92f87d788014", size = 6355908, upload-time = "2026-10-27T07:22:24.331Z" },
]
[package.optional-dependencies]
@@ -2149,7 +2149,7 @@ requires-dist = [
{ name = "blake3", marker = "platform_machine == 'ARM64' and sys_platform == 'win32'", specifier = "==1.0.9", index = "https://github.com/invoke-ai/InvokeAI/releases/download/win-arm64-wheels-v1/index.html" },
{ name = "compel", specifier = ">=2.4.0,<3" },
{ name = "deprecated" },
- { name = "diffusers", extras = ["torch"], specifier = "==0.41.0" },
+ { name = "diffusers", extras = ["torch"], specifier = "==0.42.1" },
{ name = "dnspython" },
{ name = "dynamicprompts" },
{ name = "einops" },