mirror of
https://github.com/lemonade-sdk/stable-diffusion.cpp.git
synced 2026-11-22 09:49:26 -10:00
geramy/portable-linux-cpu-build
ggml's CMake defaults GGML_NATIVE=ON, which adds -march=native and silently enables every extension the build runner's CPU advertises. Recent Azure ubuntu-latest hosts are Xeon Platinum 8370C (AVX-512 capable), so the master-593 release of libstable-diffusion.so was built with 5,396 zmm / 1,582 k-mask AVX-512 instructions and SIGILLs immediately on any consumer or CI host without AVX-512. Pin the Linux x86_64 cpu and ROCm builds to GGML_NATIVE=OFF + GGML_AVX2=ON + GGML_FMA=ON + GGML_F16C=ON — a portable Haswell-era baseline that downstream consumers (Lemonade, end users) can rely on. The Windows AVX2 cpu build and Windows ROCm builds already use GGML_NATIVE=OFF; this brings Linux into line. Verified by inspecting libstable-diffusion.so: master-569 (no AVX-512): 0 zmm refs, 0 k-mask refs master-593 (AVX-512): 5,396 zmm refs, 1,582 k-mask refs The crash this fixes manifests in lemonade-sdk/lemonade CI as sd-server "exit code: -1" within 200ms on the GitHub-hosted ollama test job, while the self-hosted ROCm runner (full AVX-512) succeeds.
Lemonade Stable diffusion fork
This repo is a "Github actions only" fork of stable diffusion that is built with more ROCm releases than upstream stable diffusion supports.
These are built for the purpose of lemonade use, but they can be utilized by any project. Releases just need to be used with matching AMD ROCm SDK releases.
Cadence
The builds are triggered nightly, or can optionally be triggered on demand as well.
Description
Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++
172 MiB
0 Stars
1 Watchers
0 Forks
Releases
1
master-1106-b115a63
Latest