Skip to content

Studio sd.cpp: pin the prebuilt resynced with upstream master-1056 - #17459

Merged
danielhanchen merged 1 commit into
mainfrom
studio-sdcpp-pin-eb0e729
Nov 11, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
studio-sdcpp-pin-eb0e729

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Moves Studio's stable-diffusion.cpp prebuilt from master-982-0518b34-uba6ac30 to master-982-0518b34-ueb0e729, the release built from fork master eb0e729. That is 36 fork commits on top of the current pin. The tag keeps the master-982 prefix because the fork's release naming still counts from its last upstream release tag.

What the new build brings:

Changes

  • studio/install_sd_cpp_prebuilt.py: DEFAULT_TAG now names the new release.
  • Tests that pin the release name and its asset list now point at the new tag. test_sd_cpp_args.py keeps the old pin in its list of builds that support --mmap.
  • The pinned asset lists gain win-cpu-arm64, with a test that a Windows ARM64 host gets that bundle for auto / cpu while an x64 host keeps win-cpu-x64, and that ARM64 with cuda or vulkan still gets no match.

No Studio code changes. The existing selector already filters Windows bundles by host architecture, so a Windows arm64 host, which today finds no bundle in the pinned release and falls through to the upstream fallback, now installs the native arm64 CPU build. An x64 Python running under emulation on Windows arm64 reports AMD64 and keeps the x64 bundle, as before. No option was removed from sd-cli --help or sd-server --help; the new build only adds --control-type, --input-frames, --upscale-factor and --vsr-window-size.

Testing

  • The sd.cpp, args, families, install, pin upgrade and download retry tests pass (1406 passed). One test and one fixture error fail on main and on this branch alike on this host, because its huggingface_hub is older than the installed diffusers expects: test_create_causal_mask_patch_is_self_disabling_and_idempotent and test_selection_installs_the_cuda_build.
  • Asset names: every bundle the selector can return was enumerated over Linux x86_64 / aarch64, Windows AMD64 / ARM64 and macOS arm64 / x86_64, with auto, cpu, cuda (no major, 12, 13), vulkan and rocm, against the real asset list of the new release. Every returned name exists in the release. The only change from the current pin is Windows ARM64 auto / cpu, which goes from no match to win-cpu-arm64.
  • SD1.5 (v1-5-pruned-emaonly), 512x512, 8 steps on CPU and 20 steps on CUDA, euler, cfg 7, seed 42, both builds on the same machine. Each arm repeated two or three times; every repeat was pixel-identical to the first run of its arm. LPIPS is AlexNet.

Linux x86_64 CPU bundle, Xeon Platinum 8559C, 32 threads, wall time per image:

Weights current pin this branch old vs new LPIPS max pixel diff
f16 34.8 / 34.8 s 16.4 / 17.2 s 0.0001 13
q8_0 31.3 / 32.4 s 15.7 / 15.2 s 0.007 118
q4_K 35.5 / 35.0 s 18.7 / 19.0 s 0.023 211

VAE decode alone went from 10 to 12 s down to 3.6 to 3.7 s. The quantized CPU renders are not bit-identical to the current pin, but they stay as close to the f16 render as before (q8_0 LPIPS to f16: 0.038 old, 0.046 new; q4_K: 0.163 old, 0.173 new).

Linux CUDA 12 bundle, Colab L4, wall time per image:

Weights current pin this branch old vs new LPIPS max pixel diff
f16 4.70 / 4.70 / 4.71 s 4.70 / 4.91 / 4.73 s 0 0
q8_0 7.42 / 4.92 / 4.90 s 4.94 / 4.93 / 4.93 s 0 0
q4_1 18.13 / 17.97 / 17.94 s 18.02 / 17.97 / 18.01 s 0.025 198
q4_K 19.14 / 17.63 / 17.79 s 17.74 / 17.63 / 17.61 s 0.106 253

The current pin's first q8_0 run includes a cold start. f16 and q8_0 are pixel-identical. q4_K moves, as the Q8_1 fix intends, and moves toward the f16 render: LPIPS to f16 drops from 0.240 to 0.176 (q4_1: 0.327 to 0.322).

Not covered

  • macOS (Metal) and Windows were not run on hardware yet; the cross-platform staging legs (Ubuntu, macOS 15, Windows) are still to run.
  • The new Windows arm64 bundle is covered only by the selector test and the asset check. No Windows arm64 host ran it.
  • No Vulkan, ROCm or HIP render with this build, no aarch64 Linux render, and no Studio HTTP flow run (only sd-cli directly).
  • No MiniMax-H3, MOSS-Image, Qwen-Image or FLUX.2 render with this build; only SD1.5.
  • CPU timings are from a shared host (both arms ran back to back with the same thread count), and the CUDA timings come from one L4 VM, three runs per arm. No T4 run.

Moves DEFAULT_TAG from master-982-0518b34-uba6ac30 to
master-982-0518b34-ueb0e729 (fork master eb0e729). The release adds a
native Windows arm64 CPU bundle, which the existing selector already
picks for ARM64 hosts; the pinned asset lists and routing tests now
cover it.
@danielhanchen danielhanchen self-assigned this Nov 11, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T01:02:46.450727Z af53d68 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. More of your lovely PRs please.

Reviewed commit: af53d689e8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@danielhanchen
danielhanchen merged commit 57a486b into main Nov 11, 2026
@danielhanchen
danielhanchen deleted the studio-sdcpp-pin-eb0e729 branch November 11, 2026 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant