GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Prebuilt: native Windows arm64 CPU bundle (5-6x faster than the x64 bundle under emulation) by danielhanchen · Pull Request #55 · unslothai/stable-diffusion.cpp Conversation
|
| leg | runner | asset |
|---|---|---|
win-cpu-arm64 |
windows-11-arm | sd-<tag>-bin-win-cpu-arm64.zip |
ilammy/msvc-dev-cmd with arch: arm64). MSVC proper has no -march for ARM, and ggml then insists on GGML_NATIVE, which would bake in the build host's CPU.GGML_CPU_ALL_VARIANTS covers Linux, Android and macOS only), so this is one build for armv8.2-a+dotprod+fp16, which every Windows 11 ARM64 CPU has (Snapdragon 850 / 7c / 8c / 8cx / X, Microsoft SQ, Ampere Altra, Cobalt 100). OpenMP is off (no OpenMP runtime for clang on the image); ggml's own threadpool takes over.continue-on-error and not in the coverage gate, so it can never hold back the seven required CPU / Apple / Vulkan assets. The release notes mention it next to CUDA.Native arm64 gate step: every PE in the finished zip must be machine 0xAA64, and sd-cli --help must start and exit 0 on the runner. Without it an x64 bundle would pass every other gate, because the arm64 runner emulates x64 too.Studio picks this asset up with no Studio change: resolve_release_asset in studio/install_sd_cpp_prebuilt.py filters Windows assets by the host arch (arm64 / aarch64). Run against a release asset list with and without win-cpu-arm64 over 225 cells (Windows / Linux / macOS x AMD64 / x86_64 / ARM64 / aarch64 / arm64 x auto / cpu / cuda / vulkan / rocm x CUDA major), 18 cells move and all 18 are Windows arm64 with auto / cpu: today they get no mirror asset (and upstream has no Windows arm64 asset either, so Studio builds from source), with this leg they get win-cpu-arm64. Every x64, Linux and macOS cell picks the same asset as before. A release where this best-effort leg failed is the same as today for those hosts.
| what | result |
|---|---|
| this workflow on staging (resolve + this leg, signing gate dropped since staging has no signing secrets) | builds, packages sd-...-bin-win-cpu-arm64.zip (31.2 MiB, sd-cli.exe + sd-server.exe), native arm64 gate passes: both PEs 0xAA64, sd-cli --help exits 0 on Cobalt 100 |
| same, merged with #48 (ARM K-quant / I-quant GEMMs) | builds and passes the gate (31.6 MiB) |
the gate's PE check on the current win-cpu-x64 release zip |
every PE is 0x8664, so the gate would reject it |
SD1.5, 256x256, 4 steps euler, seed 42, -t 4, windows-11-arm runner (Cobalt 100), 3 interleaved repeats per arm, sampling time median [repeats]:
| arm | F16 sampling (s) | Q8_0 sampling (s) | VAE (s) |
|---|---|---|---|
shipping win-cpu-x64 release (aba3a1c) under emulation, haswell variant |
64.08 [64.50, 64.08, 63.41] | 63.53 [63.83, 63.47, 63.53] | 27.43 |
| same commit aba3a1c, native arm64 build with this leg's flags | 12.80 [13.02, 12.80, 12.64] | 10.61 [10.80, 10.61, 10.59] | 6.56 |
| master ba6ac30, native arm64 | 12.74 [13.24, 12.74, 12.65] | 10.95 [10.95, 11.30, 10.56] | 6.61 |
Native is 5.0x (F16) and 6.0x (Q8_0) faster in sampling and 4.2x in VAE decode than the x64 bundle Windows on ARM users run today. Each arm gave the same pixels on every repeat.
Signing on the arm64 runner, partly checked: on a windows-11-arm runner the pinned trusted-signing-cli 0.10.0 (x64) downloads with the expected sha256, starts under emulation (--version exits 0), and its default signtool path (Windows Kits\10\bin\10.0.26100.0\x64\signtool.exe) exists on the image. An actual signature needs the release secrets, which staging does not have.
Not proven: a real signature on the arm64 runner; Windows on ARM hardware other than Cobalt 100 (no Snapdragon runner is available); a clean Windows on ARM machine without the arm64 Visual C++ runtime (the bundle links the MSVC runtime dynamically, the same as win-cpu-x64 does today).
Related: the Windows arm64 clang defines __ARM_NEON but not __ARM_NEON__ (checked on the runner), so this bundle's flash attention GEMM uses the 2 x 2 tile until #67 lands; with #67 it renders identical pixels (FLUX.2 klein 512 px on Cobalt 100).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
… + fp16) Windows on ARM hosts run win-cpu-x64 under x64 emulation today. Add a win-cpu-arm64 leg on windows-11-arm, built with the runner's clang for the MSVC ABI (MSVC has no -march for ARM and ggml has no Windows ARM CPU variants), OpenMP off. Best effort like the CUDA legs, so it cannot hold back the seven required assets. A new gate checks every PE in the zip is ARM64 and that sd-cli starts natively.
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@codex review |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.