-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
And update llama.cpp and whisper.cpp. Signed-off-by: Eric Curtin <[email protected]>
- Loading branch information
1 parent
307628e
commit cba1655
Showing
11 changed files
with
106 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
FROM fedora:41 | ||
|
||
ARG LLAMA_CPP_SHA=1329c0a75e6a7defc5c380eaf80d8e0f66d7da78 | ||
ARG LLAMA_CPP_SHA=0827b2c1da299805288abbd556d869318f2b121e | ||
# renovate: datasource=git-refs depName=ggerganov/whisper.cpp packageName=https://github.com/ggerganov/whisper.cpp gitRef=master versioning=loose type=digest | ||
ARG WHISPER_CPP_SHA=6266a9f9e56a5b925e9892acf650f3eb1245814d | ||
ARG WHISPER_CPP_SHA=3de9deead5759eb038966990e3cb5d83984ae467 | ||
|
||
COPY ../scripts /scripts | ||
RUN chmod +x /scripts/*.sh && \ | ||
/scripts/build_llama_and_whisper.sh "asahi" "$LLAMA_CPP_SHA" \ | ||
"$WHISPER_CPP_SHA" "/usr" "-DGGML_VULKAN=1" | ||
"$WHISPER_CPP_SHA" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
FROM registry.access.redhat.com/ubi9/ubi:9.4-1214.1729773476 | ||
|
||
ARG LLAMA_CPP_SHA=af148c9386da825a60c7038549c121c35ca56b50 | ||
ARG LLAMA_CPP_SHA=0827b2c1da299805288abbd556d869318f2b121e | ||
# renovate: datasource=git-refs depName=ggerganov/whisper.cpp packageName=https://github.com/ggerganov/whisper.cpp gitRef=master versioning=loose type=digest | ||
ARG WHISPER_CPP_SHA=6266a9f9e56a5b925e9892acf650f3eb1245814d | ||
ARG WHISPER_CPP_SHA=3de9deead5759eb038966990e3cb5d83984ae467 | ||
|
||
COPY ../scripts /scripts | ||
RUN chmod +x /scripts/*.sh && \ | ||
/scripts/build_llama_and_whisper.sh "ramalama" "$LLAMA_CPP_SHA" \ | ||
"$WHISPER_CPP_SHA" "/usr" "-DGGML_KOMPUTE=1" | ||
"$WHISPER_CPP_SHA" | ||
|
||
ENV WHISPER_CPP_SHA=${WHISPER_CPP_SHA} | ||
ENV LLAMA_CPP_SHA=${LLAMA_CPP_SHA} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/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" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters