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.

Bump the pip group across 1 directory with 2 updates (#15053)

dependabot[bot]abfe8dc5cd83
diff --git a/studio/backend/requirements/no-torch-runtime.txt b/studio/backend/requirements/no-torch-runtime.txt
index 5d9a4f2b0f6..2c716dc2cc0 100644
--- a/studio/backend/requirements/no-torch-runtime.txt
+++ b/studio/backend/requirements/no-torch-runtime.txt
@@ -66,7 +66,8 @@ hf_transfer==0.1.9; sys_platform != "win32" or platform_machine != "ARM64"
regex==2026.7.19; python_version >= "3.10"
regex==2026.1.15; python_version < "3.10"
typing_extensions==4.16.0
-filelock==3.32.2; python_version >= "3.10"
+filelock==4.2.1; python_version >= "3.11"
+filelock==3.32.2; python_version >= "3.10" and python_version < "3.11"
filelock==3.19.1; python_version < "3.10"
httpx==0.28.1
httpcore==1.0.9
@@ -101,7 +102,10 @@ trl>=0.18.2,!=0.19.0,<=1.15.0
sentence-transformers==5.2.0; python_version >= "3.10"
sentence-transformers==5.1.2; python_version < "3.10"
cut_cross_entropy==25.1.1
-pillow==12.3.0; python_version >= "3.10"
+# Apple Silicon stays below 13 with the MLX image engine: mflux imports PIL._typing, which
+# Pillow 13.0.0 breaks on CPython 3.11 - 3.14 (see _MLX_DIFFUSION_DEPS in install_python_stack.py).
+pillow==13.0.0; python_version >= "3.11" and (sys_platform != "darwin" or platform_machine != "arm64")
+pillow==12.3.0; python_version >= "3.10" and (python_version < "3.11" or (sys_platform == "darwin" and platform_machine == "arm64"))
pillow==11.3.0; python_version < "3.10"
# RAG store + document parsing, mirroring studio.txt. Pinned here because
diff --git a/tests/studio/install/test_no_torch_pillow_mlx_cap.py b/tests/studio/install/test_no_torch_pillow_mlx_cap.py
new file mode 100644
index 00000000000..47b488a8090
--- /dev/null
+++ b/tests/studio/install/test_no_torch_pillow_mlx_cap.py
@@ -0,0 +1,77 @@
+# SPDX-License-Identifier: AGPL-3.0-only
+# Copyright 2026-Present the Unsloth team. See /studio/LICENSE.AGPL-3.0
+
+"""The no-torch runtime picks exactly one Pillow per environment, and on Apple Silicon it stays
+inside the MLX image engine's Pillow range (mflux breaks on Pillow 13)."""
+
+from __future__ import annotations
+
+import ast
+from pathlib import Path
+
+import pytest
+from packaging.requirements import Requirement
+
+REPO_ROOT = Path(__file__).resolve().parents[3]
+NO_TORCH = REPO_ROOT / "studio" / "backend" / "requirements" / "no-torch-runtime.txt"
+INSTALLER = REPO_ROOT / "studio" / "install_python_stack.py"
+
+
+def _pillow_pins() -> list[Requirement]:
+ reqs = []
+ for line in NO_TORCH.read_text(encoding = "utf-8").splitlines():
+ line = line.split("#", 1)[0].strip()
+ if line and Requirement(line).name.lower() == "pillow":
+ reqs.append(Requirement(line))
+ return reqs
+
+
+def _mlx_pillow_range() -> Requirement:
+ tree = ast.parse(INSTALLER.read_text(encoding = "utf-8"))
+ for node in ast.walk(tree):
+ if (
+ isinstance(node, ast.AnnAssign)
+ and getattr(node.target, "id", "") == "_MLX_DIFFUSION_DEPS"
+ ):
+ for spec in ast.literal_eval(node.value):
+ if Requirement(spec).name.lower() == "pillow":
+ return Requirement(spec)
+ raise AssertionError("_MLX_DIFFUSION_DEPS has no pillow entry")
+
+
+def _env(python: str, sys_platform: str, machine: str) -> dict[str, str]:
+ return {
+ "python_version": python,
+ "python_full_version": python + ".0",
+ "sys_platform": sys_platform,
+ "platform_machine": machine,
+ "platform_system": {"darwin": "Darwin", "win32": "Windows"}.get(sys_platform, "Linux"),
+ "os_name": "nt" if sys_platform == "win32" else "posix",
+ "implementation_name": "cpython",
+ "platform_python_implementation": "CPython",
+ }
+
+
[email protected]("python", ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"])
+ "sys_platform, machine",
+ [
+ ("linux", "x86_64"),
+ ("linux", "aarch64"),
+ ("win32", "AMD64"),
+ ("darwin", "arm64"),
+ ("darwin", "x86_64"),
+ ],
+)
+def test_one_pillow_pin_applies(python, sys_platform, machine):
+ env = _env(python, sys_platform, machine)
+ applying = [r for r in _pillow_pins() if r.marker is None or r.marker.evaluate(env)]
+ assert len(applying) == 1, (env, [str(r) for r in applying])
+
+
[email protected]("python", ["3.11", "3.12", "3.13", "3.14"])
+def test_apple_silicon_pillow_stays_inside_the_mlx_image_range(python):
+ env = _env(python, "darwin", "arm64")
+ (pin,) = [r for r in _pillow_pins() if r.marker is None or r.marker.evaluate(env)]
+ version = next(iter(pin.specifier)).version
+ assert _mlx_pillow_range().specifier.contains(version), (str(pin), str(_mlx_pillow_range()))