8798 Commits
Author SHA1 Message Date
Ken VanDine 53efdf1b0e Merge pull request #25 from lemonade-sdk/ci/fix-release-download-and-xz-threading
ci: unblock the release job's artifact download, parallelize xz, and slim the CUDA install
b10201 b10454 b10450 b10448 b10438 b10431 b10424 b10416 b10400 b10397 b10385 b10373 b10362 b10355 b10335 b10334 b10331 b10329 b10327 b10318 b10307 b10290 b10288 b10277 b10271 b10257 b10250 b10236 b10230 b10224 b10220 b10217 b10216 b10457 b10196 b10184 b10183 b10174
2026-07-28 23:20:20 -04:00
Ken VanDineandClaude Opus 5 7c053e2b38 ci: install only the CUDA components the build uses
The Linux CUDA jobs installed the cuda-toolkit-12-9 metapackage, which
pulls Nsight Systems, Nsight Compute, cuFFT, cuSPARSE, cuSOLVER and NPP
along with the pieces ggml-cuda is actually compiled against. That is
"Need to get 3935 MB of archives" on every one of the 16 Linux CUDA legs,
none of it cached.

Resolve the dependency closure by hand instead: nvcc, cudart-dev (which
also supplies the libcuda.so stub behind CUDA::cuda_driver), cccl for the
thrust/cub headers, and cublas/curand/nvjitlink -dev. That is 16 packages
and ~1.2 GB against 61 packages and ~3.9 GB, and it still satisfies the
Build, Bundle CUDA runtime libraries and Validate steps. None of the
subset declares Recommends, so nothing sneaks back in.

Add a post-install existence check over nvcc and the specific headers and
libraries the later steps consume, so a repackaging upstream fails at the
install step naming the missing file rather than partway through a
compile.

This matches what windows-cuda already does, where Jimver/cuda-toolkit is
invoked with an explicit sub-packages list.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-07-28 22:01:36 -04:00
Ken VanDineandClaude Opus 5 7ff69c9e53 ci: unblock the release job's artifact download and parallelize xz
The release job has been cancelling mid-"Download artifacts" more often
than not, which reads as a CUDA timeout but isn't: in runs 30341691913
and 30364671144 every build job succeeded and only `release` died, both
times ~14 minutes into the download with 4 of 28 artifacts complete.

Two causes:

- `ubuntu-slim` is a container runner (the log reports "VM Image -
  Source: Docker, Name: ubuntu:24.04"), and it was being asked to hold
  ~14 GB of artifacts plus the transient zip each download extracts
  from. Move to a full ubuntu-24.04 VM.

- actions/download-artifact starts every matched artifact concurrently.
  Its PARALLEL_DOWNLOADS chunking is ineffective because the promises
  are constructed eagerly in .map() before chunk() runs, so all 28
  downloads begin within half a second. There is no concurrency input,
  so split the call into four pattern-scoped steps. The patterns
  partition the artifact list exactly: no unmatched and no
  double-matched names. A pattern matching nothing does not throw (only
  the `name` and `artifact-ids` paths do), so a dropped backend family
  still degrades into the existing completeness checks.

Separately, `tar -cJf` drives a single-threaded xz and was the largest
cost in the Linux CUDA jobs at ~6.8 min/leg, ~112 min per run across the
16 legs. Switch to `tar -I 'xz -T0'`. Measured on a 2.9 GB binary
payload: 12m41s single-threaded vs 47.7s on 32 cores, with the archive
1.8% larger because threaded mode compresses independent blocks. The
runners are 4-core, so expect roughly 3-4x there.

This does not address the real long pole: ubuntu-22-rocm still runs
93-144 min while every CUDA leg finishes in 15-20, and `release` cannot
start until it is done.

Co-Authored-By: Claude Opus 5 <[email protected]>
2026-07-28 21:50:42 -04:00
Mario Limonciello 55b71aa393 Decrease frequency of builds 2026-07-28 16:15:29 -05:00
Mario Limonciello f36521093a Add back ROCm 7.13 targets
This will make it easier to do llama.cpp upgrades separately from
ROCm 7.14 upgrade to rule out issues
b10173
2026-07-28 15:04:34 -05:00
Mario Limonciello 96985cedb3 Align ROCm GPU targets with upstream b10156 b10155 b10153 b10150 b10143 b10137 b10134 b10133 b10132 b10128 b10124 b10123 b10121 b10114 b10108 2026-07-23 16:32:20 -05:00
Copilot 3337bd520e Fix windows-rocm CI: call rocm-sdk init before querying ROCm paths (#24)
* Initial plan

* Fix windows-rocm CI: add rocm-sdk init before querying ROCm paths

* Fix windows-rocm CI: bust stale cache and create venv at cache location

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
b10107 b10106 b10104 b10102 b10096 b10094 b10088 b10083 b10077 b10075 b10073 b10069
2026-07-19 17:03:59 -05:00
Mario Limonciello d951a3aff7 Rename cache key b10068 b10065 b10064 2026-07-17 08:48:28 -05:00
Mario Limonciello 193de71635 Drop device-all from Windows build to speed it up 2026-07-17 08:21:56 -05:00
Mario Limonciello d0b4658124 Upgrade release URLs to 7.14 too b10060 b10059 b10055 2026-07-16 15:05:30 -05:00
Mario Limonciello f4f9b2cf47 Migrate to building using ROCm multiarch wheels
With multiarch - tarballs are giant.  We don't need such big downloads.
b10051
2026-07-16 08:22:39 -05:00
Ken VanDine 978b8d13c8 Merge pull request #16 from lemonade-sdk/fix/validate-release-artifacts
ci: fail release if any expected artifacts are missing
b9977 b10043 b10034 b10027 b10021 b10014 b10013 b9994 b9993 b9992 b9986 b9982 b10011 b9976 b9973 b9968 b9967 b9966 b9964 b9959 b9949 b9944 b9941 b9934 b9932 b9927 b9923 b9913 b9912 b9905 b9892 b9888 b9886 b9878 b9873 b9872 b9871 b9870 b9869 b9867 b9862 b9860
2026-07-02 16:29:44 +02:00
Ken VanDineandClaude Sonnet 5 f0883c99a7 ci: prune stale release assets from families dropped in the current run
Same fix as lemonade-sdk/stable-diffusion.cpp#14: the release is reused
across runs against the same tag (idempotent create-or-get). If a
family (e.g. rocm) was complete and published in an earlier run but the
current run finds it incomplete and drops it locally, its assets from
that earlier run were never removed — the release would keep looking
complete for a family this run couldn't actually reproduce.

The upload step now reconciles existing release assets against the
current ./release file set: anything not fully uploaded (a broken
partial upload, as before) or not present in this run's file set (stale
leftovers from a dropped family) gets deleted before uploading.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 10:01:54 -04:00
Ken VanDineandClaude Sonnet 5 87f8d0fe0d ci: guard the tar.gz move loop against an unmatched glob
The CUDA .tar.xz and .7z move loops already skip when their glob
doesn't match any files; the tar.gz loop (ROCm/OpenVINO) was missing
the same guard. If both tar.gz producers are absent, the loop would
try to mv the literal artifact/*.tar.gz and fail before the family
completeness check could run and drop ROCm/OpenVINO while still
publishing CUDA/Windows CPU.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 09:56:34 -04:00
Ken VanDineandClaude Sonnet 5 e8991e55c9 ci: run release job even when a build job fails, and don't let a missing
Windows CPU artifact block unrelated families

Two gaps that let the per-family completeness logic get bypassed
entirely:

- The release job had no always(), so GitHub Actions' default
  skip-if-a-needed-job-failed behavior meant a single failed build job
  (e.g. one CUDA sm_* matrix leg) could skip the release job outright,
  before the family checks ever ran.
- The Windows CPU-backend merge step still hard-exited the whole job if
  the CPU zip was missing, which — since it runs before the Ubuntu/CUDA
  renaming loops — blocked Ubuntu ROCm/OpenVINO/CUDA from publishing
  too, for a reason that had nothing to do with them.

Now the release job always runs when the workflow is a schedule/dispatch
run, and a missing Windows CPU artifact just skips moving the Windows
zip-based artifacts (which structurally require it merged in) into
release/, leaving Ubuntu/CUDA .7z artifacts unaffected. The existing
completeness check then correctly sees the missing cpu/rocm files and
drops those families.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 09:36:34 -04:00
Ken VanDineandClaude Sonnet 5 33312dd54b ci: drop the whole backend family when any of its artifacts are missing
Rather than publishing whichever individual files happened to build, a
family (cuda, rocm, openvino, cpu) is now all-or-nothing: if any required
artifact in a family is missing, every artifact for that family is
dropped from the release. This guarantees that if a family is present in
a release at all, it's a complete, internally-consistent set across every
platform/variant — e.g. CUDA is never split across sm_* or platforms
between two different backend versions. Other families are unaffected by
a gap in one.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 09:05:06 -04:00
Ken VanDineandClaude Sonnet 5 34e6acd331 ci: guard against creating an empty release and clarify the failure message
Fail before touching the GitHub release if ./release ends up with zero
artifacts, instead of relying on per-family checks alone. Also carry the
per-family missing summary into the final failure message so it's
self-contained instead of pointing back at an earlier step's log.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-02 08:53:41 -04:00
Ken VanDineandClaude Sonnet 5 73fe29e160 ci: decouple per-family artifact checks so one gap doesn't block others
A missing artifact in one backend family (e.g. a single failed CUDA
sm_* build) no longer blocks publishing the artifacts from families
that did build successfully. Each family (cuda, rocm, openvino, cpu)
is checked independently; the release is still created and available
artifacts are still uploaded, but the job fails afterward so the gap
is still surfaced.

Addresses review feedback on lemonade-sdk/llama.cpp#16.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-07-01 20:21:21 -04:00
Ken VanDine ea05f50992 Merge pull request #18 from lemonade-sdk/kenvandine/cuda_sm_121
ci: bump CUDA toolkit 12.8 → 12.9 for sm_121 support
b9840 b9761 b9851 b9849 b9844 b9843 b9842 b9859 b9837 b9836 b9831 b9829 b9828 b9827 b9824 b9821 b9820 b9803 b9801 b9797 b9793 b9786 b9781 b9779 b9775 b9767 b9763 b9856 b9758 b9754 b9753 b9752 b9747 b9744 b9741 b9738 b9733 b9728 b9724 b9716 b9710 b9670 b9660 b9659 b9653 b9641 b9631 b9628 b9626 b9622 b9619 b9615 b9614 b9608 b9602
2026-06-11 23:22:30 +02:00
Ken VanDine b8d6f40123 Merge pull request #19 from lemonade-sdk/fix-windows-cpu-omp-dll
ci: find libomp140 across all VS versions in windows-cpu pack step
2026-06-11 23:21:07 +02:00
Ken VanDineandCopilot Autofix powered by AI 04a62224ca Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-06-11 17:08:28 -04:00
Ken VanDine f622c23493 Merge pull request #20 from lemonade-sdk/copilot/fix-comments-review-thread
ci: fix windows-cpu pack step libomp140 search for any VS version
2026-06-11 22:56:01 +02:00
Ken VanDine 7e7a6ad57e Merge branch 'fix-windows-cpu-omp-dll' into copilot/fix-comments-review-thread 2026-06-11 22:54:54 +02:00
copilot-swe-agent[bot] dad4fbce4e ci: fix libomp140 search - use vswhere, if/else for arch suffix, and accurate error message 2026-06-11 20:45:32 +00:00
copilot-swe-agent[bot] af1941f7d8 Initial plan 2026-06-11 20:39:54 +00:00
Ken VanDineandCopilot 88ab6a7d5c ci: add CUDA sm_121 support for NVIDIA GB10
Add sm_121 to all CUDA architecture build matrices to support
the NVIDIA GB10 (Grace Blackwell) SoC.

Co-authored-by: Copilot <[email protected]>
2026-06-11 16:36:12 -04:00
Ken VanDineandCopilot acb38a2128 ci: find libomp140 across all VS versions in windows-cpu pack step
The runner image was updated to windows-2025-vs2026 (VS 18), but the
Pack artifacts step hardcoded the VS 2022 Redist path. Search the
entire Visual Studio directory so it works regardless of which VS
version is installed.

Co-authored-by: Copilot <[email protected]>
2026-06-11 16:13:47 -04:00
Ken VanDine 58d0e07a19 Merge pull request #17 from lemonade-sdk/kenvandine/cuda_sm_121
ci: add CUDA sm_121 support for NVIDIA GB10
2026-06-11 21:34:54 +02:00
Ken VanDineandCopilot a636be808b ci: add CUDA sm_121 support for NVIDIA GB10
Add sm_121 to all CUDA architecture build matrices to support
the NVIDIA GB10 (Grace Blackwell) SoC.

Co-authored-by: Copilot <[email protected]>
2026-06-11 15:17:24 -04:00
Ken VanDineandCopilot 7865317a80 ci: fail release if any expected artifacts are missing
The previous check only verified that at least one artifact existed.
This meant a release could be published with missing CUDA builds
(as happened with b9549, which was missing all Windows CUDA artifacts
and ubuntu-cuda-sm_90-x64).

The updated check explicitly enumerates every expected artifact:
- All 7 CUDA SM variants (sm_75/80/86/89/90/100/120) for each of:
  ubuntu x64, ubuntu arm64, windows x64
- ubuntu ROCm, ubuntu OpenVINO, Windows ROCm, Windows CPU

If any are absent the step fails before the release is created,
so a partially-populated release can never be tagged.

Co-authored-by: Copilot <[email protected]>
2026-06-09 16:56:48 -04:00
Ken VanDine e735c91cd8 Merge pull request #15 from lemonade-sdk/kenvandine/openvino
ci: add Ubuntu 22 OpenVINO build job with bundled runtime libs
b9586 b9565 b9581 b9559 b9592 b9596 b9554 b9551 b9549 b9546 b9544 b9543 b9542 b9539 b9536 b9535 b9529 b9524 b9518 b9514
2026-06-04 16:10:24 +02:00
Ken VanDineandClaude Sonnet 4.6 135ecd5885 ci: skip libtbbbind when bundling TBB — requires libhwloc
libtbbbind is TBB's optional CPU topology library; it depends on
libhwloc which is not available on the CI runner or target systems.
Only bundle libtbb and libtbbmalloc, which are sufficient for llama.cpp.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 22:23:17 -04:00
Ken VanDineandClaude Sonnet 4.6 4db766987f ci: remove plugins.xml copy — not present in OpenVINO 2026.0
OpenVINO 2026.0 no longer ships plugins.xml in runtime/lib/intel64/;
plugin discovery is handled automatically by the runtime library.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 22:18:08 -04:00
Ken VanDineandClaude Sonnet 4.6 9688c9755e ci: switch OpenVINO job to ubuntu-22.04 to match other build jobs
Use the ubuntu22 toolkit variant (which exists for 2026.0) and run on
ubuntu-22.04 consistent with all other jobs in this workflow. Add an
optional ubuntu_version input to the linux-setup-openvino action so
callers can select the toolkit variant (default: ubuntu22).

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 22:03:55 -04:00
Ken VanDineandClaude Sonnet 4.6 7f921f0771 ci: fix OpenVINO toolkit version and add dependency install step
- Set OPENVINO_VERSION_FULL to the correct 2026.0.0.20965.c6d6a13a886
  (sourced from ggml-org/llama.cpp build-openvino.yml)
- Install libtbb12, OpenCL headers, and ninja-build to match ggml-org's
  build environment
- Run install_openvino_dependencies.sh from the toolkit before building

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 21:59:43 -04:00
Ken VanDineandClaude Sonnet 4.6 66fa11444d ci: add Ubuntu 24 OpenVINO build job with bundled runtime libs
Adds a new release job that builds llama.cpp with -DGGML_OPENVINO=ON,
bundles libopenvino*.so*, plugins.xml (with paths rewritten to basenames
for $ORIGIN portability), and TBB alongside llama-server, then publishes
llama-{tag}-bin-ubuntu-openvino-2026.0-x64.tar.gz so lemonade can
download it without requiring a system-wide OpenVINO install.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 21:31:52 -04:00
Ken VanDine e556855621 Merge pull request #14 from kenvandine/claude/arm64-cuda-linux-build-GPKPO
ci: add arm64 CUDA Linux build job
b9504 b9496 b9495
2026-06-03 09:40:28 -05:00
Ken VanDineandClaude Sonnet 4.6 f19267d652 ci: fix extra brace in release script and add arm64 CUDA to release body
Remove duplicate closing brace that would cause a SyntaxError in the
Create-or-get-release github-script step on scheduled/manual runs.
Add Ubuntu arm64 CUDA artifact line to the release body template.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-06-03 10:20:35 -04:00
Ken VanDineandClaude Opus 4.8 a6d44e7651 ci: package Linux CUDA archives under a versioned directory
The CUDA pack steps emitted a flat archive (files at the root), which
diverged from the ROCm Linux tarball and prior CUDA releases that extract
into a single llama-<tag>/ directory, and risks polluting the current
directory on extraction.

Restore the versioned top-level directory, but build it explicitly with
mkdir + cp instead of `tar --transform "s,./,..."`. The transform only
rewrites member paths when tar preserves the leading ./, which the x64
ubuntu-22.04 tar strips and the ubuntu-22.04-arm tar keeps, so the same
YAML produced different layouts. Staging into the directory first yields
an identical llama-<tag>/ layout on both runners.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-03 08:25:05 -04:00
Ken VanDineandClaude Opus 4.8 41a26c8afa ci: flatten Linux CUDA archive layout consistently
The CUDA pack steps used --transform "s,./,llama-<tag>/," which only
matches when tar preserves the leading ./ on member names. The x64
ubuntu-22.04 runner's tar strips ./ (files land flat at the root) while
the ubuntu-22.04-arm runner's tar keeps it (files nest under llama-<tag>/),
so identical YAML produced different archive layouts.

Drop the transform from both CUDA pack steps so both archives are flat at
the root regardless of tar version, and remove the now-unused tag step
from each CUDA job. Release filenames are unaffected (the release job has
its own tag step).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-02 23:10:27 -04:00
Claude 3688852ee4 ci: add arm64 CUDA Linux build job
Add ubuntu-22-cuda-arm64 job that mirrors ubuntu-22-cuda but runs on
ubuntu-22.04-arm runners and installs CUDA from NVIDIA's sbsa (aarch64)
repository. Artifacts are named with an arm64 suffix and the release job
is updated to depend on the new job.

https://claude.ai/code/session_019XSHjm8s2EGgd7EDtmcM9d
2026-06-02 22:56:56 +00:00
Ken VanDine ff84a390c8 Merge pull request #11 from lemonade-sdk/fix_ci_and_release
Make release upload idempotent and retry-safe
2026-06-01 13:16:05 +02:00
Ken VanDine 40c85c271b Merge pull request #13 from lemonade-sdk/copilot/fix-code-review-comment
Move no-artifact check before release creation
2026-06-01 05:33:58 +02:00
copilot-swe-agent[bot] 8f97eba982 Move no-artifact check before release creation 2026-06-01 03:33:15 +00:00
copilot-swe-agent[bot] 2db59ebefd Merge remote-tracking branch 'origin/fix_ci_and_release' into copilot/fix-code-review-comment 2026-06-01 03:32:55 +00:00
copilot-swe-agent[bot] 786c68b5e8 Initial plan 2026-06-01 03:29:42 +00:00
Ken VanDineandCopilot Autofix powered by AI bc035bef35 Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
2026-05-31 23:18:23 -04:00
Ken VanDine 84e57f5854 Merge pull request #12 from lemonade-sdk/copilot/fix-code-review-suggestion
Handle 422 release-asset conflicts in upload retry path
2026-06-01 05:07:42 +02:00
copilot-swe-agent[bot] c9d9e57a2d Merge base branch and resolve release workflow conflict 2026-06-01 03:06:26 +00:00
copilot-swe-agent[bot] 082b5860da fix: handle 422 release upload conflicts during retry 2026-06-01 02:52:41 +00:00