From fd7d334d10c5886b1bd7d20af686e1f50ed18036 Mon Sep 17 00:00:00 2001 From: Daniel Han-Chen Date: Mon, 25 May 2026 12:40:35 +0000 Subject: [PATCH] Fix studio.txt vs constraints.txt huggingface-hub conflict (PR #5754) Round 25 P1 #5 bumped studio.txt huggingface-hub to >=1.3.0,<2.0 but single-env/constraints.txt still pinned ==0.36.2, which made fresh Studio Update CI / Mac Studio Update CI / Mac Studio UI CI fail at the studio-deps install step with ResolutionImpossible. Bump the constraint pin to ==1.8.0 to match the setup.sh / setup.ps1 t5 sub-env pins and satisfy the new studio.txt floor. --- studio/backend/requirements/single-env/constraints.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/studio/backend/requirements/single-env/constraints.txt b/studio/backend/requirements/single-env/constraints.txt index 156f78567e..0e25124a9f 100644 --- a/studio/backend/requirements/single-env/constraints.txt +++ b/studio/backend/requirements/single-env/constraints.txt @@ -2,7 +2,12 @@ # Keep compatible with unsloth transformers bounds. transformers==4.57.6 trl==0.23.1 -huggingface-hub==0.36.2 +# Round 25 P1 #5 follow-up: bumped from 0.36.2 because studio.txt now +# requires >=1.3.0,<2.0 (Flux2KleinPipeline transitively imports +# transformers 5.x which needs huggingface_hub.is_offline_mode, +# introduced in hub 1.x). 1.8.0 matches the explicit pin used by +# studio/setup.sh / setup.ps1 for the t5 sub-envs. +huggingface-hub==1.8.0 # Studio stack datasets==4.3.0