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: keep the Python 3.9 leg on sentence-transformers (#8441)

Daniel Han24d1213abefa
diff --git a/studio/backend/requirements/extras-no-deps.txt b/studio/backend/requirements/extras-no-deps.txt
index 02e01f814b8..9790357c539 100644
--- a/studio/backend/requirements/extras-no-deps.txt
+++ b/studio/backend/requirements/extras-no-deps.txt
@@ -13,7 +13,10 @@ peft==0.18.1
trl==0.23.1
# executorch>=1.0.1 # 41.5 MB - no imports in unsloth/zoo/studio
torch-c-dlpack-ext==0.1.5
-sentence_transformers==5.2.0
+# 5.2 requires >=3.10. This file is applied after no-torch-runtime.txt, so an
+# unconditional pin here would reject 3.9 outright and undo that file's fallback.
+sentence_transformers==5.2.0; python_version >= "3.10"
+sentence_transformers==5.1.2; python_version < "3.10"
transformers==5.5.0; python_version >= "3.10"
transformers==4.57.6; python_version < "3.10"
# No macOS x86_64 wheel at any version, so uv falls back to an sdist that shells out to
diff --git a/studio/backend/requirements/no-torch-runtime.txt b/studio/backend/requirements/no-torch-runtime.txt
index ba08e1e91ac..3e72ae2d873 100644
--- a/studio/backend/requirements/no-torch-runtime.txt
+++ b/studio/backend/requirements/no-torch-runtime.txt
@@ -83,8 +83,10 @@ trl>=0.18.2,!=0.19.0,<=0.24.0
# Matches extras-no-deps.txt rather than the newest release: that file installs
# --no-deps too and runs after this one, so whatever it names wins. Pinning a
# higher version here would record a number no install ever ends up with. Bump
-# both together.
-sentence-transformers==5.2.0
+# both together. 5.2 requires >=3.10, so 3.9 keeps the newest release it can take,
+# which is what a bare entry resolved to here before.
+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"
pillow==11.3.0; python_version < "3.10"