From f3f3f06dc1b16675fe93edb2a139d3295760ba43 Mon Sep 17 00:00:00 2001 From: Daniel Han-Chen Date: Mon, 25 May 2026 00:49:14 +0000 Subject: [PATCH] Fix/adjust diffusion: pin requests chain in no-deps runtime for PR #5754 The Studio backend's no-torch-runtime.txt is installed via pip --no-deps so the diffusion stack's transitive imports must be pinned explicitly. huggingface_hub's blob downloader (used by diffusers.GGUFQuantizationConfig and by every from_single_file call) imports requests + urllib3 + charset_normalizer at module load time; a fresh --no-deps install would 500 on the first /api/inference/images/load with PackageNotFoundError: 'requests'. Adds requests, urllib3, and charset_normalizer to the transitive-deps block next to the existing httpx chain. --- studio/backend/requirements/no-torch-runtime.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/studio/backend/requirements/no-torch-runtime.txt b/studio/backend/requirements/no-torch-runtime.txt index 6b7c17a0be..6e4b904267 100644 --- a/studio/backend/requirements/no-torch-runtime.txt +++ b/studio/backend/requirements/no-torch-runtime.txt @@ -57,6 +57,12 @@ gguf regex typing_extensions filelock +# `requests` and its urllib3/charset chain are required by huggingface_hub's +# blob downloader; diffusers + GGUFQuantizationConfig 500 on first +# /api/inference/images/load otherwise. +requests +urllib3 +charset_normalizer httpx httpcore certifi