1
0
mirror of https://github.com/containers/ramalama.git synced 2026-02-05 06:46:39 +01:00

Merge pull request #2369 from mikebonnet/rag-deps-2026-01

Update all dependencies in the -rag images to their latest versions
This commit is contained in:
Mike Bonnet
2026-02-02 10:33:37 -08:00
committed by GitHub
9 changed files with 4808 additions and 4612 deletions

View File

@@ -11,14 +11,12 @@ ENV VIRTUAL_ENV="/opt/venv" \
HF_HOME=/var/cache/huggingface \
FASTEMBED_CACHE_PATH=/var/cache/fastembed
COPY container-images/scripts/build_rag.sh \
container-images/scripts/doc2rag \
COPY container-images/scripts/doc2rag \
container-images/scripts/rag_framework \
/usr/bin/
# Keep the tag below in sync with the tag used for ggml in requirements-rag.in
ADD --chmod=755 https://github.com/ggml-org/llama.cpp/raw/refs/tags/b6900/convert_hf_to_gguf.py \
ADD --chmod=755 https://github.com/ggml-org/llama.cpp/raw/refs/tags/b7872/convert_hf_to_gguf.py \
/usr/bin/
COPY container-images/common/requirements-rag-$TORCH_BACKEND* \
/var/tmp/
RUN build_rag.sh $TORCH_BACKEND
RUN --mount=type=bind,target=/src\
/src/container-images/scripts/build_rag.sh $TORCH_BACKEND

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +1,6 @@
# requirements for convert_hf_to_gguf.py
# Keep the tag below in sync with the tag used for convert_hf_to_gguf.py in Containerfile.rag
git+https://github.com/ggml-org/llama.cpp@b6900#subdirectory=gguf-py
git+https://github.com/ggml-org/llama.cpp@b7872#subdirectory=gguf-py
mistral-common
numpy
protobuf

View File

@@ -31,10 +31,12 @@ install_pkgs() {
}
install_requirements() {
if [ -f "/var/tmp/requirements-rag-$backend-$(uname -m).txt" ]; then
uv pip install -r "/var/tmp/requirements-rag-$backend-$(uname -m).txt"
local script_dir
script_dir="$(dirname "$0")"
if [ -f "$script_dir/../common/requirements-rag-$backend-$(uname -m).txt" ]; then
uv pip install -r "$script_dir/../common/requirements-rag-$backend-$(uname -m).txt"
else
uv pip install -r "/var/tmp/requirements-rag-$backend.txt"
uv pip install -r "$script_dir/../common/requirements-rag-$backend.txt"
fi
}