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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
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]>
- 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]>
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]>
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]>
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]>
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]>
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