Repository navigation
Studio: support current native builds and preserve CPU asset selection - #12902
Conversation
|
Reached Codex review convergence at oobabooga#341. |
Review and verification evidenceVerified the PR from merge base Observed behavior
Executed checks
The only reviewer-authored source change is The capability check was also compared with current No UI surface changed, so screenshot evidence is not applicable. Interactive Studio generation with a native H3 model was not run in this review; verification covered native Windows asset selection and the changed backend behavior on hosted runners. |
mahiatlinux
left a comment
There was a problem hiding this comment.
LGTM! Ready to merge, all manually checked.
With
win-cpu-x64andwin-vulkan-x64in the same release, a Windows CPU install can pick the Vulkan zip depending on the order GitHub returns the assets. unslothai/stable-diffusion.cpp#22 adds that second asset. The prebuilt pin update will follow in a separate PR once that release is published.Newer sd.cpp builds also lose Studio's VRAM headroom setting, and a native abort can leave the user with the end of a backtrace instead of the error that caused it.
Root cause
autoandcpu,resolve_release_assetlooks foravx2. The Unsloth CPU asset is namedwin-cpu-x64, so the resolver falls back to the first Windows asset, including a GPU build.--max-vramand--stream-layers. Current native builds stream automatically and have removed--stream-layers, so the check fails and Studio omits--max-vram -1too.Fix
--max-vram -1when the binary advertises it. Add--stream-layersonly when it is advertised and CPU weight offload is enabled. An unreadable help response adds neither flag.Testing
autoandcpu, GPU-only releases, GPU assets withavx2in their names, and the existing CPU AVX2 preference. Twelve cases fail before the fix.--max-vram.Native builds from that PR's source also completed MiniMax-H3 generation on both AMD runners: Linux / Windows. Those checks ran the native CLI directly. Loading and generating through the Studio UI was not tested.