1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 15:47:26 +01:00
Files
ramalama/scripts/replace-shas.sh
Eric Curtin fb45f235e2 Add llama-run
And update llama.cpp and whisper.cpp.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2025-01-02 23:15:32 +00:00

16 lines
260 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
find_files() {
grep -rl "$1_CPP_SHA=" container-images/
}
sed_files() {
xargs sed -i "s/ARG $1_CPP_SHA=.*/ARG $1_CPP_SHA=$2/g"
}
find_files "LLAMA" | sed_files "LLAMA" "$1"
find_files "WHISPER" | sed_files "WHISPER" "$2"