-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add this image, we also want to see the size of this image in the build. Signed-off-by: Eric Curtin <[email protected]>
- Loading branch information
1 parent
89f0d25
commit ec51b80
Showing
2 changed files
with
37 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM quay.io/ramalama/ramalama:latest | ||
|
||
RUN /usr/bin/python3 --version | ||
|
||
ARG ROCM_VERSION=6.2.2 | ||
ARG AMDGPU_VERSION=6.2.2 | ||
|
||
COPY amdgpu.repo /etc/yum.repos.d/ | ||
COPY rocm.repo /etc/yum.repos.d/ | ||
|
||
RUN dnf config-manager --add-repo https://mirror.stream.centos.org/9-stream/AppStream/$(uname -m)/os/ | ||
RUN curl -o /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Official http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-Official | ||
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Official | ||
|
||
RUN git clone https://github.com/ggerganov/llama.cpp && \ | ||
cd llama.cpp && \ | ||
git reset --hard ${LLAMA_CPP_SHA} && \ | ||
cmake -B build -DCMAKE_INSTALL_PREFIX:PATH=/usr -DGGML_CCACHE=0 \ | ||
-DGGML_VULKAN=1 && \ | ||
cmake --build build --config Release -j $(nproc) && \ | ||
cmake --install build && \ | ||
cd / && \ | ||
git clone https://github.com/ggerganov/whisper.cpp.git && \ | ||
cd whisper.cpp && \ | ||
git reset --hard ${WHISPER_CPP_SHA} && \ | ||
cmake -B build -DCMAKE_INSTALL_PREFIX:PATH=/usr -DGGML_CCACHE=0 \ | ||
-DGGML_VULKAN=1 && \ | ||
cmake --build build --config Release -j $(nproc) && \ | ||
mv build/bin/main /usr/bin/whisper-main && \ | ||
mv build/bin/server /usr/bin/whisper-server && \ | ||
cd / && \ | ||
rm -rf llama.cpp whisper.cpp | ||
|
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