Commit Graph
600 Commits
Author SHA1 Message Date
Ken VanDine e3937d9654 Merge pull request #8 from kenvandine/add_ci_check
ci: validate release build on pull requests
master-672-e3937d9 master-669-e3937d9 master-666-e3937d9
2026-06-01 14:43:50 +02:00
Ken VanDine c00c8b87dc Merge pull request #9 from lemonade-sdk/copilot/fix-code-review-comment
ci: scope `contents: write` to release job only
2026-06-01 14:42:55 +02:00
copilot-swe-agent[bot] c3af5c187b Fix: use least-privilege permissions in CI workflow 2026-06-01 12:41:37 +00:00
copilot-swe-agent[bot] c6ebd5f180 Initial plan 2026-06-01 12:39:46 +00:00
Ken VanDineandClaude Opus 4.8 429bf57c94 ci: validate release build on pull requests
Add a pull_request trigger to build.yml so the release build is
validated on PRs, mirroring lemonade-sdk/llama.cpp. The pack/upload
and release jobs remain gated on schedule/create_release, so nothing
is published on a PR run.

Scope the trigger to the workflow file itself: the build jobs clone
source from upstream (leejet/stable-diffusion.cpp), so only changes
to this workflow can affect a PR run's outcome.

On PRs, the CUDA matrices build a single representative arch (sm_89)
instead of all seven; packaging logic is identical across sm_*, and
the full matrix still runs on schedule/dispatch.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-01 07:41:33 -04:00
Ken VanDine da0c3b3764 Merge pull request #7 from Phqen1x/lemonade
Adding CUDA Support for stable-diffusion.cpp
2026-06-01 13:28:36 +02:00
Drew VanDine c0335cf7a0 Merge pull request #11 from Phqen1x/fix-powershell-parser
ci: fix PowerShell parser error in Windows CUDA pack step
2026-05-31 23:14:14 -04:00
copilot-swe-agent[bot] 9cffd0da35 Merge origin/lemonade into fix-powershell-parser 2026-06-01 03:10:30 +00:00
Drew VanDineandClaude Sonnet 4.6 7437d050c0 ci: fix PowerShell parser error in Windows CUDA pack step
Use multi-line array literal format for $runtimeDllPatterns and remove
the trailing backslash from the Copy-Item destination path, which was
causing an 'Unexpected token }' parser error at the foreach closing brace.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 23:07:24 -04:00
Drew VanDine 3930b7bc5b Merge pull request #10 from Phqen1x/fix-cuda-clone-ref
ci: pin CUDA clone steps to ref: master
2026-05-31 22:55:33 -04:00
Drew VanDineandClaude Sonnet 4.6 fa19b4115b ci: pin CUDA clone steps to ref: master
Without an explicit ref, actions/checkout makes a GitHub API call to
determine the default branch of leejet/stable-diffusion.cpp. With 14
parallel CUDA jobs all doing this simultaneously this call can fail,
presenting as a checkout error. Pinning to master skips the API call.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 22:53:11 -04:00
Ken VanDineandCopilot Autofix powered by AI 73bb113fc7 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-05-31 22:38:08 -04:00
Drew VanDine fc97199a70 Merge pull request #9 from Phqen1x/match-lemonade-cuda-bundling
ci: match lemonade-sdk/llama.cpp CUDA library bundling
2026-05-31 22:11:13 -04:00
Drew VanDineandClaude Sonnet 4.6 8018705329 ci: match lemonade-sdk/llama.cpp CUDA library bundling
Linux:
- Add libcudart.so*, libnvJitLink.so* to bundled runtime libs
- Use cp -av (preserves symlinks) instead of cp -v
- RPATH step now patches all ELF files via file(1) instead of glob

Windows:
- Add curand and nvjitlink to CUDA toolkit sub-packages
- Copy cudart64, cublas64, cublasLt64, curand64, nvJitLink DLLs
  from CUDA_PATH\bin before zipping

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 22:09:36 -04:00
Drew VanDine b7b403fb5f Merge pull request #8 from Phqen1x/fix-cuda-runtime-bundling
ci: bundle CUDA runtime libs for portability on both platforms
2026-05-31 21:55:55 -04:00
Drew VanDineandClaude Sonnet 4.6 cb80321973 ci: bundle CUDA runtime libs for portability on both platforms
Linux: add libcudart.so* to the bundled runtime libraries so binaries
can run on systems without a matching CUDA toolkit installed.

Windows: add id to cuda-toolkit step and robocopy cudart64/cublas64/
cublasLt64 DLLs into the zip so the build runs on machines without a
pre-installed CUDA runtime.

Addresses Copilot review comments on lemonade-sdk/stable-diffusion.cpp#7.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 21:55:41 -04:00
Drew VanDine fbb3d4e710 Merge pull request #7 from Phqen1x/fix-windows-cuda-back-to-zip
ci: revert Windows CUDA artifacts back to .zip
2026-05-31 20:03:42 -04:00
Drew VanDineandClaude Sonnet 4.6 c69f4790fa ci: revert Windows CUDA artifacts back to .zip
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 20:03:15 -04:00
Drew VanDine 855bd5e005 Merge pull request #6 from Phqen1x/fix-windows-cuda-format
ci: package Windows CUDA artifacts as .7z
2026-05-31 19:59:02 -04:00
Drew VanDineandClaude Sonnet 4.6 b55463d29b ci: package Windows CUDA artifacts as .7z (matches Lemonade expectation)
Lemonade's sd_server.cpp builds the Windows CUDA download URL with a
.7z extension. The CI was producing .zip, causing a 404 on download
which presented as an extraction failure.

Also adds .7z to the release upload script allowlist.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 19:58:49 -04:00
Drew VanDine 10a7ba771b Merge pull request #5 from Phqen1x/fix-cuda-names-final
ci: standardize CUDA artifact names and compression formats
2026-05-31 16:11:07 -04:00
Drew VanDineandClaude Sonnet 4.6 36778b2765 ci: standardize CUDA artifact names and compression formats
Linux:   sd-master-{hash}-ubuntu-cuda-sm_XX-x64.tar.xz
Windows: sd-master-{hash}-windows-cuda-sm_XX-x64.zip

Also adds .tar.xz support to the release upload script.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 16:10:52 -04:00
Drew VanDine 2791d9d088 Merge pull request #4 from Phqen1x/revert-cuda-artifact-names
ci: revert CUDA artifact names to original sd-*-bin-* format
2026-05-31 16:04:52 -04:00
Drew VanDineandClaude Sonnet 4.6 cb32062435 ci: revert CUDA artifact names to original sd-*-bin-* format
Restores the filenames introduced in the initial CUDA PR:
  sd-master-{hash}-bin-Linux-Ubuntu-22.04-x86_64-cuda-{sm}.zip
  sd-master-{hash}-bin-win-cuda-{sm}-x64.zip

Reverts the intermediate ubuntu-cuda-* and windows-cuda-* name
experiments, and drops the .tar.xz branch from the release upload script.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 16:04:17 -04:00
Drew VanDine 19bfe7d065 Merge pull request #3 from Phqen1x/fix-cuda-artifact-names-2
ci: use sd-{branch}-{hash}-ubuntu/windows-cuda-{sm}-x64 artifact names
2026-05-31 15:55:06 -04:00
Drew VanDineandClaude Sonnet 4.6 adb7fd07ec ci: use sd-{branch}-{hash}-ubuntu/windows-cuda-{sm}-x64 artifact names
Renames CUDA artifacts to match the format Lemonade SDK expects:
  sd-master-148f69f-ubuntu-cuda-sm_89-x64.tar.xz
  sd-master-148f69f-windows-cuda-sm_89-x64.zip

Also restores the sd-* download pattern in the release job and keeps
.tar.xz support in the upload script.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 15:54:35 -04:00
Drew VanDine 9356241a7d Merge pull request #2 from Phqen1x/fix-cuda-artifact-names
ci: fix CUDA artifact names to match Lemonade SDK expectations
2026-05-31 15:48:16 -04:00
Drew VanDineandClaude Sonnet 4.6 a0d011290f ci: fix CUDA artifact names to match Lemonade SDK expectations
Linux CUDA artifacts are now named ubuntu-cuda-sm_XX-x64.tar.xz and
Windows CUDA artifacts are named windows-cuda-sm_XX-x64.zip, matching
the filenames Lemonade SDK constructs when downloading from releases.

Also removes the sd-* pattern filter from the release download step so
CUDA artifacts (which don't carry the sd- prefix) are included, and
adds .tar.xz support to the release upload script.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 15:47:35 -04:00
Drew VanDine 80af588b41 Merge pull request #1 from Phqen1x/cuda-support
ci: add Linux and Windows CUDA builds per compute capability
2026-05-31 12:00:43 -04:00
Drew VanDineandClaude Sonnet 4.6 3a5581f80d ci: add Linux and Windows CUDA builds per compute capability
Adds ubuntu-latest-cuda and windows-latest-cuda jobs covering sm_75
through sm_120, modeled after the llama.cpp CUDA CI. Linux installs
CUDA 12.8 via apt, bundles cublas runtime libs, and patches RPATHs.
Windows uses Jimver/[email protected] with MSVC + Ninja Multi-Config.
Both jobs are wired into the release job.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-05-31 11:55:05 -04:00
George Sofianos 148f69fe31 fix: add RDNA1 + RDNA2 targets for ROCm 7.13 (#6) master-650-148f69f master-656-148f69f master-663-148f69f master-648-148f69f master-647-148f69f master-642-148f69f master-637-148f69f master-633-148f69f master-629-148f69f master-623-148f69f 2026-05-17 19:33:06 +03:00
Mario Limonciello (AMD) 8acff7156f Update to 7.13 master-604-8acff71 master-613-8acff71 2026-05-14 23:45:31 -05:00
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