From ee9bfe90f62d454b8accabf1402fa28c23dd7e00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20S=C3=B6derlund?= Date: Sun, 15 Nov 2026 11:39:39 +0100 Subject: [PATCH 1/3] fix(llama): pass release build number for UI assets - Tarball builds have no git history, so llama.cpp resolves BUILD_NUMBER 0 and asks the HF bucket for UI assets tagged "b0". - That bucket does not exist, so it falls back to "latest", whose asset set lacks workbox-*.js and fails the release's own asset validation. - Pass the tag's bNNNN as LLAMA_BUILD_NUMBER so the matching assets are fetched. - Omit the flag for tags without a build number, such as v0.9.0. --- llama/setup.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/llama/setup.sh b/llama/setup.sh index 05e94a04..9bb1d56b 100755 --- a/llama/setup.sh +++ b/llama/setup.sh @@ -18,6 +18,20 @@ PORT="${LLAMA_PORT:?run via mise run llama:setup}" SRC="$DATA_DIR/llama/llama.cpp-${VERSION}" BUILD="$SRC/build" +# Tarball builds have no git history, so llama.cpp derives BUILD_NUMBER 0 and +# asks the HF bucket for UI assets tagged "b0". That bucket does not exist, so +# it falls back to "latest", whose asset set does not match this release and +# fails validation. Pass the tag's build number when it carries one. +CMAKE_ARGS=( + -DGGML_HIP=ON + -DCMAKE_HIP_ARCHITECTURES=gfx1200 + -DGGML_NATIVE=ON + -DCMAKE_BUILD_TYPE=Release +) +if [[ $VERSION =~ -b([0-9]+) ]]; then + CMAKE_ARGS+=("-DLLAMA_BUILD_NUMBER=${BASH_REMATCH[1]}") +fi + echo "[llama] Installing ROCm build dependencies..." sudo dnf install -y -q \ cmake \ @@ -36,11 +50,7 @@ fi echo "[llama] Building llama-server with ROCm/HIP..." cd "$SRC" -cmake -B build \ - -DGGML_HIP=ON \ - -DCMAKE_HIP_ARCHITECTURES=gfx1200 \ - -DGGML_NATIVE=ON \ - -DCMAKE_BUILD_TYPE=Release +cmake -B build "${CMAKE_ARGS[@]}" cmake --build build --target llama-server -j"$(nproc)" if [ ! -f "${DATA_DIR}/llama/${MODEL}" ]; then From 2c5763424c1eda76bc133913831c16235b64c931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20S=C3=B6derlund?= Date: Sun, 15 Nov 2026 11:39:39 +0100 Subject: [PATCH 2/3] fix(herdr): skip offline peers when syncing machines - The Tailscale peer list included offline machines. - `hc machine add` needs ssh, so it timed out and logged a warning on every apply. - Filter on .Online so only reachable peers are attempted. - Offline machines are added by the first apply after they reappear. --- herdr/setup-machines.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/herdr/setup-machines.sh b/herdr/setup-machines.sh index 412c5846..41308227 100755 --- a/herdr/setup-machines.sh +++ b/herdr/setup-machines.sh @@ -22,6 +22,7 @@ peers="$(jq -r ' (.Peer // {})[] | select( .UserID == $self.UserID and + .Online == true and (.OS == "linux" or .OS == "darwin") and .HostName != null and .HostName != "" and From b880c2474627e4574a066ab5c3667cafa5097e94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oscar=20S=C3=B6derlund?= Date: Thu, 19 Nov 2026 09:19:30 +0100 Subject: [PATCH 3/3] chore(bootstrap): install ccache - llama.cpp and whisper.cpp configure warn when ccache is missing. - Both services rebuild from source on version bumps, so the cache pays off. --- mise.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/mise.toml b/mise.toml index d527886b..8aa12400 100644 --- a/mise.toml +++ b/mise.toml @@ -189,6 +189,7 @@ REPO_DIR = "{{ config_source | canonicalize | dirname }}" "dnf:bat" = "latest" "dnf:binutils" = "latest" "dnf:ca-certificates" = "latest" +"dnf:ccache" = "latest" "dnf:curl" = "latest" "dnf:dnf5-plugins" = "latest" "dnf:dos2unix" = "latest"