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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Pin the win_arm64 scikit-learn to one version so the security audit cannot go red on its own (#11112)
Daniel Han907f19830c21
diff --git a/studio/backend/requirements/extras.txt b/studio/backend/requirements/extras.txtindex 2a8261051a1..f047c3c2a95 100644--- a/studio/backend/requirements/extras.txt+++ b/studio/backend/requirements/extras.txt@@ -3,8 +3,13 @@ flatbuffers==25.12.19# Also needed by sentence_transformers (installed with --no-deps in extras-no-deps.txt);# librosa pulls it in too, but is skipped in no-torch mode.# scikit-learn publishes win_arm64 wheels from 1.8 only; 1.7.1 would source-build there.+# Both lines are exact pins, not ranges. scan_packages_baseline.json records findings keyed by a+# hash of the scanned file's contents, so a floating version makes every one of this package's 13+# baseline entries stop matching the moment upstream publishes, and the security audit goes red on+# an unrelated PR. 1.8.0 is the lowest release carrying win_arm64 wheels, which keeps the ARM64+# branch as close to 1.7.1 as the wheel availability allows.scikit-learn==1.7.1; sys_platform != "win32" or platform_machine != "ARM64"-scikit-learn>=1.8.0; sys_platform == "win32" and platform_machine == "ARM64"+scikit-learn==1.8.0; sys_platform == "win32" and platform_machine == "ARM64"# Additional extrasjiwer==4.0.0 # WER/CER metrics for vision OCR save-merge benchmarksdiff --git a/tests/studio/install/test_diffusers_pin.py b/tests/studio/install/test_diffusers_pin.pyindex aaeb1957f2d..6a46bf872bc 100644--- a/tests/studio/install/test_diffusers_pin.py+++ b/tests/studio/install/test_diffusers_pin.py@@ -243,11 +243,26 @@ WIN_ARM64_FLOORS = [)def test_the_win_arm64_floor_is_the_first_release_that_has_a_wheel(relpath, dist, floor):text = (REQ_ROOT / relpath).read_text(encoding = "utf-8")- wanted = f'{dist}>={floor}; sys_platform == "win32" and platform_machine == "ARM64"'- assert wanted in text, f"{relpath} no longer floors {dist} at {floor}"+ marker = 'sys_platform == "win32" and platform_machine == "ARM64"'+ # Either operator satisfies what this test is for. The floor exists so the resolver is not+ # pushed above the first release carrying a win_arm64 wheel; an exact pin at that same+ # version is that floor with the ceiling closed too. It is not interchangeable in the other+ # direction: scan_packages_baseline.json keys its reviewed-benign findings by a hash of the+ # scanned file's contents, so a dist recorded there has to be pinned exactly or the security+ # audit reds on whatever unrelated PR is open the day upstream publishes.+ wanted = {+ f"{dist}>={floor}; {marker}",+ f"{dist}=={floor}; {marker}",+ }+ assert wanted & set(+ line.strip() for line in text.splitlines()+ ), f"{relpath} no longer floors {dist} at {floor}"# And nothing else floors the same dist higher on that marker.for line in text.splitlines():line = line.strip()- if not line.startswith(f"{dist}>=") or 'platform_machine == "ARM64"' not in line:+ if (+ not line.startswith((f"{dist}>=", f"{dist}=="))+ or 'platform_machine == "ARM64"' not in line+ ):continue- assert line == wanted, f"{relpath}: a second ARM64 floor for {dist}: {line}"+ assert line in wanted, f"{relpath}: a second ARM64 floor for {dist}: {line}"