Repository navigation
Studio sd.cpp: pin the prebuilt resynced with upstream master-1056 - #17459
Merged
Merged
Conversation
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.
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. |
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves Studio's stable-diffusion.cpp prebuilt from
master-982-0518b34-uba6ac30tomaster-982-0518b34-ueb0e729, the release built from fork mastereb0e729. That is 36 fork commits on top of the current pin. The tag keeps themaster-982prefix because the fork's release naming still counts from its last upstream release tag.What the new build brings:
master-1056(Resync with upstream master-1056 (packed INT4 convrot, MiniMax-H3 QKV chunking, RelayVSR, SDXL ControlNet Union) stable-diffusion.cpp#54): packed INT4 convrot, MiniMax-H3 QKV chunking, RelayVSR, SDXL ControlNet Union. Also Cosmos3-Nano-Sim-Transfer video-to-video (CUDA_VISIBLE_DEVICES #53).ERROR: Package 'unsloth-2024.1' requires a different Python: 3.8.10 not in '>=3.9' #66, Apple Mac Book MLX support #68, Fix tokenizer + docs #62).autonow means on without the timing probe (Syntax highlighting #46).<|startoftext|>with id=64000 exceeds the maximum vocabulary size of 64000 #61).SD_AUTOFIT_UMA=0disables); CPU-resident text-encoder weights are released when the next phase would not fit (Text completion example notebook? #72,SD_TE_RELEASE=0disables);--mmaprepacks only what the CPU repacks (ModuleNotFoundError: No module named 'unsloth' #43); Qwen Image 2.1 prefix cache concatenated in F16 (Update README.md #64).Changes
studio/install_sd_cpp_prebuilt.py:DEFAULT_TAGnow names the new release.test_sd_cpp_args.pykeeps the old pin in its list of builds that support--mmap.win-cpu-arm64, with a test that a Windows ARM64 host gets that bundle forauto/cpuwhile an x64 host keepswin-cpu-x64, and that ARM64 withcudaorvulkanstill 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
AMD64and keeps the x64 bundle, as before. No option was removed fromsd-cli --helporsd-server --help; the new build only adds--control-type,--input-frames,--upscale-factorand--vsr-window-size.Testing
test_create_causal_mask_patch_is_self_disabling_and_idempotentandtest_selection_installs_the_cuda_build.auto,cpu,cuda(no major, 12, 13),vulkanandrocm, 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 ARM64auto/cpu, which goes from no match towin-cpu-arm64.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:
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:
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
sd-clidirectly).