geramyloveless a466f7e46d ci: pin Linux x86_64 cpu+rocm builds to AVX2+FMA+F16C (drop -march=native)
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.
2026-05-06 12:40:46 -07:00
2026-04-08 10:32:05 -05:00

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.

S
Description
Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++
Readme
172 MiB
0 Stars 1 Watchers 0 Forks
2026-11-21 05:03:08 -10:00