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.

Windows on ARM: take the wheelhouse from our own signed release (#11108)

Daniel Hanc22f6453f09f
diff --git a/install.ps1 b/install.ps1
index f2a8272aa5e..2757e9c4bff 100644
--- a/install.ps1
+++ b/install.ps1
@@ -301,11 +301,14 @@ function Install-UnslothStudio {
}
$script:WoaTorchAudio = $false
- # Wheels PyPI has no win_arm64 build of: pyarrow 25.0.1 (cp311-cp314) and sqlite-vec 0.1.9, built from their release tags on a windows-11-arm runner. Set UNSLOTH_WOA_WHEELHOUSE to override.
+ # Wheels PyPI has no win_arm64 build of: pyarrow 25.0.1 (cp311-cp314) and sqlite-vec 0.1.9.
+ # Built from their release tags on a windows-11-arm runner and Authenticode signed by
+ # .github/workflows/woa-wheelhouse.yml, which publishes them here. Set
+ # UNSLOTH_WOA_WHEELHOUSE to override with a mirror or a local directory.
$script:WoaWheelhouse = if ($env:UNSLOTH_WOA_WHEELHOUSE) {
$env:UNSLOTH_WOA_WHEELHOUSE.Trim().TrimEnd('/')
} else {
- "https://huggingface.co/danielhanchen/unsloth-blackwell-docker/resolve/main/windows-arm64-wheels"
+ "https://github.com/unslothai/unsloth/releases/download/Windows-ARM64"
}
# AVAILABLE, not missing: a name absent here is EXCLUDED on ARM64 by the drop list below.
$script:WoaPyPIProvided = @{}
diff --git a/tests/studio/install/test_woa_wheelhouse_prefers_pypi.py b/tests/studio/install/test_woa_wheelhouse_prefers_pypi.py
index 56845287153..1c446118898 100644
--- a/tests/studio/install/test_woa_wheelhouse_prefers_pypi.py
+++ b/tests/studio/install/test_woa_wheelhouse_prefers_pypi.py
@@ -109,7 +109,7 @@ def test_pyarrow_keeps_its_own_pypi_first_path(source):
# the whole suite green. It is the only source for the pyarrow that gates the native path, so a
# typo sends every Windows on ARM host back to the emulated x64 stack, and it is fetched over
# the network, so a wrong host is a wrong download.
-DEFAULT_WHEELHOUSE = "https://huggingface.co/danielhanchen/unsloth-blackwell-docker/resolve/main/windows-arm64-wheels"
+DEFAULT_WHEELHOUSE = "https://github.com/unslothai/unsloth/releases/download/Windows-ARM64"
PWSH = shutil.which("pwsh")
requires_pwsh = pytest.mark.skipif(PWSH is None, reason = "pwsh not available")
@@ -126,15 +126,30 @@ def test_the_default_wheelhouse_url_is_exactly_this(source):
assert DEFAULT_WHEELHOUSE in _wheelhouse_assignment(source)
-def test_the_default_is_an_https_resolve_url_on_hugging_face(source):
- """`resolve/main` serves the file; a plain repo URL serves an HTML page, which the
- staging code would happily save as a .whl. The path may continue past `resolve/main`:
- the wheelhouse is a folder of a repo we own."""
- assert DEFAULT_WHEELHOUSE.startswith("https://huggingface.co/danielhanchen/")
- assert "/resolve/main" in DEFAULT_WHEELHOUSE
+def test_the_default_is_a_release_download_url_on_this_repo(source):
+ """`releases/download/<tag>` serves the asset bytes; a `releases/tag/<tag>` URL serves an
+ HTML page, which the staging code would happily save as a .whl. It must point at this
+ repository: the wheels are built, signed and published by a workflow that lives here, so
+ anywhere else is a host whose contents nothing in this tree controls."""
+ assert DEFAULT_WHEELHOUSE.startswith("https://github.com/unslothai/unsloth/releases/download/")
+ assert "/releases/tag/" not in DEFAULT_WHEELHOUSE, "that URL is the HTML page, not the asset"
assert not DEFAULT_WHEELHOUSE.endswith("/"), "Join-UrlPath adds the slash"
+def test_the_release_tag_is_the_one_the_workflow_publishes(source):
+ """Two places name the tag and nothing joins them: the workflow that uploads the assets
+ and the installer that downloads them. A rename on one side is a 404 on the other, and
+ the installer reads that as 'no wheelhouse' and falls back to the emulated x64 stack."""
+ workflow = (REPO_ROOT / ".github" / "workflows" / "woa-wheelhouse.yml").read_text(
+ encoding = "utf-8"
+ )
+ match = re.search(r'release_tag:\s*\n\s*description:[^\n]*\n\s*default:\s*"([^"]+)"', workflow)
+ assert match, "woa-wheelhouse.yml no longer declares a default release_tag"
+ assert DEFAULT_WHEELHOUSE.endswith(
+ "/" + match.group(1)
+ ), f"the installer points at {DEFAULT_WHEELHOUSE}, the workflow publishes {match.group(1)}"
+
+
@requires_pwsh
@pytest.mark.parametrize(
("configured", "expected", "why"),