Commit Graph
568 Commits
Author SHA1 Message Date
Geramy Loveless b6f38cdbdb Merge pull request #3 from lemonade-sdk/geramy/portable-linux-cpu-build
ci: pin Linux x86_64 cpu+rocm builds to AVX2+FMA+F16C (drop -march=native)
master-596-b6f38cd
2026-05-06 12:45:16 -07:00
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
Geramy Loveless 7f65f2acce ci: add macOS arm64 (Metal) build (#2)
* ci: add macOS arm64 (Metal) build for stable-diffusion.cpp

Adds a macos-arm64-cmake job covering [macos-14, macos-latest] that builds
leejet/stable-diffusion.cpp with Metal enabled and produces a release-ready
sd-*-bin-Darwin-macOS-<ver>-arm64.zip artifact, mirroring the existing Linux
job's naming convention. Wired into the release job so macOS arm64 binaries
are attached alongside Linux/Windows on scheduled and manual releases.

* ci(macos): bake @loader_path rpath so dylib loads next to binary

Without this, sd-cli ships with the GitHub runner's absolute build path
hardcoded in its rpath and fails at runtime with 'Library not loaded:
@rpath/libstable-diffusion.dylib'. Mirrors llama.cpp's release.yml flags.

* ci(macos): use stable artifact filename without OS version

Drop the dynamic Darwin-macOS-{sw_vers}-arm64 suffix in favor of a stable
sd-{branch}-{hash}-bin-Darwin-arm64.zip name (with -latest variant for
macos-latest). The previous naming embedded the runner image's macOS
point release (e.g. 14.8.5, 15.7.4), which churns silently as GitHub
patches the image and would break downstream consumers (Lemonade C++)
that download by exact filename. Matches the fixed-name pattern already
used by the Windows builds.

* ci: grant contents:write so the release job can publish artifacts

Without this, the workflow's GITHUB_TOKEN defaults to read-only on forks
and the 'Create release' / 'Upload release' steps fail with HTTP 403
'Resource not accessible by integration'. Same fix the Linux/Windows
release flow needs to function on Geramy's fork; safe on upstream where
the org-default token already has write access (this just makes it
explicit and forks-portable).

* ci(macos): name artifact …Darwin-arm64-metal.zip to align with backend ID

Lemonade's recipe matrix is adopting a 'metal' backend identifier for
macOS arm64 (mirroring the existing llamacpp/metal pattern). Renaming
the artifact's suffix to match keeps Lemonade C++'s download URL
construction trivial (filename = sd-{ver}-bin-Darwin-arm64-metal.zip)
and signals to consumers that this build has Metal acceleration enabled
(GGML_METAL=ON GGML_METAL_USE_BF16=ON GGML_METAL_EMBED_LIBRARY=ON).
master-593-7f65f2a
2026-05-01 01:00:13 -05:00
Mario Limonciello (AMD) 8d8f55a3f1 Revert "Pack amdhip64_7.dll"
This reverts commit 06dd7b4041.
master-587-8d8f55a master-590-8d8f55a master-593-8d8f55a master-586-8d8f55a master-585-8d8f55a master-580-8d8f55a master-574-8d8f55a
2026-04-16 22:07:43 -05:00
Mario Limonciello (AMD) b977b00edc Revert "Fix path"
This reverts commit 0134eac6d2.
2026-04-16 22:07:42 -05:00
Mario Limonciello 0134eac6d2 Fix path 2026-04-16 19:06:02 -05:00
Mario Limonciello 06dd7b4041 Pack amdhip64_7.dll 2026-04-16 18:56:42 -05:00
Mario Limonciello ab6afe88e8 Fix artifact saving jobs master-569-ab6afe8 2026-04-16 08:32:39 -05:00
Mario Limonciello cba90ad52d Drop all DLL files from Windows release master-560-cba90ad 2026-04-10 10:45:22 -05:00
Mario Limonciello 628158794e Fix repo for CPU jobs 2026-04-08 22:15:24 -05:00
Mario Limonciello e802e37714 Restore some CPU jobs; needed for ROCm fallback 2026-04-08 21:26:52 -05:00
Mario Limonciello 539a0ea2eb Add a Lemonade CI job master-560-539a0ea 2026-04-08 10:32:05 -05:00
Mario Limonciello 809646cf15 Remove all files 2026-04-08 10:31:41 -05:00
Mario Limonciello (AMD) 9227fed8b5 Switch over ROCm builds to artifacts both for stable and preview releases
AMD is in the process of moving over to a brand new build system (TheRock).
They have a preview release stream for it, and it includes some significant
performance uplifts.

To let people experiment with both stacks generate artifacts both for the
stable (7.2.1) and preview (7.12) stacks.

In both cases - ROCm must be installed first to use this artifact.
It's intentionally not bundled because so many ISAs are included and the
size of the artifact balloons to an untenable size.
master-555-9227fed
2026-04-04 00:13:40 -05:00
Mario Limonciello (AMD) cef9752245 Update HIP target to use 26.Q1 (ROCm 7.1.1) 2026-04-03 22:54:06 -05:00
Mario Limonciello (AMD) 3c0652f0e5 Add a Windows ROCm job to use tarball distribution of TheRock
This builds from ROCm release tarballs. In order to use it you
must have ROCm installed in the operating system first.
- Update GPU_TARGETS to match Linux job (7.11.0 targets)
- Cache DLL's from extracted tarball directory instead of installer directory
- Align Windows and Linux ROCm build configurations

Also; rename the legacy ROCm task to clarify which artifacts come
from which release.
2026-04-03 22:54:06 -05:00
leejet 87ecb95cbc feat: add webp support (#1384) 2026-04-02 01:36:11 +08:00
Wagner Brunaandleejet 99c1de379b feat: ancestral sampler implementations for flow models (#1374)
* feat: add support for the eta parameter to ancestral samplers

* feat: Euler Ancestral sampler implementation for flow models

* refine flow ancestral sampling and normalize eta defaults

---------

Co-authored-by: leejet <[email protected]>
2026-04-02 01:35:29 +08:00
leejet 09b12d5f6d feat(cli): add metadata inspection mode (#1381) 2026-04-01 00:52:03 +08:00
leejet 6dfe945958 fix: use resolved image size in embedded metadata (#1382) 2026-03-31 23:55:49 +08:00
leejet bf0216765a feat: show tensor loading progress in MB/s or GB/s (#1380) 2026-03-31 23:06:44 +08:00
Wagner Bruna 4fe7a35939 feat(server): add generation metadata to png images (#1217) 2026-03-31 23:06:27 +08:00
Jan Ekström 4d5232083f chore(server): link winsock2 for non-MSVC windows (#1378) 2026-03-31 22:10:34 +08:00
leejet 1d6cb0f8c3 refactor: split and simplify sample_k_diffusion samplers (#1377) 2026-03-31 00:32:14 +08:00
leejet 83e8f6f0af refactor(server): split server endpoint registration (#1376) 2026-03-31 00:02:03 +08:00
leejet 8d878872d9 fix: disable extra T5 mask padding for Wan (#1375) 2026-03-30 23:10:07 +08:00
Wagner Bruna 02dd5e5dd2 refactor: move VAE tiling parameters to SDGenerationParams (#1261) 2026-03-30 23:09:38 +08:00
leejet 8f2967c006 sync: update ggml 2026-03-30 23:00:53 +08:00
leejet f16a110f87 refactor: migrate generation pipeline to sd::Tensor (#1373) 2026-03-30 00:19:25 +08:00
stduhpf ed88e215a2 refactor: simplify f8_e5m2_to_f16 function a little bit (#1358) 2026-03-30 00:14:33 +08:00
Wagner Bruna 6293ab5aaf docs: update Spectrum info about DiT models (#1360) 2026-03-30 00:12:57 +08:00
leejet 545fac4f3f refactor: simplify sample cache flow (#1350) 2026-03-17 00:28:03 +08:00
Tay 5265a5efa1 perf(z-image): switch to fused SwiGLU kernel (#1302) 2026-03-17 00:27:46 +08:00
leejet 84cbd88df1 style: remove redundant struct qualifiers for consistent C/C++ type usage (#1349) 2026-03-16 22:17:22 +08:00
Daniele 997bb11fb6 fix: correct encoder channels for flux2 (#1346) 2026-03-16 22:16:43 +08:00
leejet 862a6586cb feat: add embedded WebUI (#1207) 2026-03-16 00:26:57 +08:00
leejet 61d8331ef3 ci: avoid cuda docker build timeout by using -j16 2026-03-15 18:39:29 +08:00
leejet acc3bf1fdc refactor: optimize the VAE architecture (#1345) 2026-03-15 16:57:42 +08:00
Kevin Nause 83eabd7c01 ci: add CUDA Dockerfile (#1314) 2026-03-15 16:46:01 +08:00
Wagner Bruna 630ee03f23 refactor: move all cache parameter defaults to the library (#1327) 2026-03-15 16:43:46 +08:00
Wagner Bruna f6968bc589 chore: remove SD_FAST_SOFTMAX build flag (#1338) 2026-03-15 16:42:47 +08:00
rmatif adfef62900 feat: add generic DiT support to spectrum cache (#1336) 2026-03-15 16:41:05 +08:00
JusteLeo 6fa7ca9317 docs: add Anima2 gguf download link to anima.md (#1335) 2026-03-15 16:40:14 +08:00
leejet d6dd6d7b55 refactor: remove ununsed encode_video (#1332) 2026-03-10 00:36:09 +08:00
rmatif dea4980f4e feat: add spectrum caching method (#1322) 2026-03-10 00:35:32 +08:00
leejet c8fb3d2458 fix: resolve SD1 Pix2Pix issue (#1329) 2026-03-08 00:28:05 +08:00
stduhpf 3d33caaef8 fix: make tiling work better when using circular (#1299) 2026-03-08 00:25:07 +08:00
WinkelCode 9b424db0f4 ci: change workflow owner of "actions-commit-hash" from "pr-mpt" to "prompt" (#1323) 2026-03-08 00:23:23 +08:00
rmatif d95062737e fix: ucache: normalize reuse error (#1313) 2026-03-04 23:50:45 +08:00
Korsar13 7c880f80c7 fix: avoid sd-server memory leak (#1316) 2026-03-04 23:47:38 +08:00