Gemma inference with llama.cpp and logits processor

This commit is contained in:
2025-05-06 20:31:42 +02:00
parent 44fd60a6be
commit c41a86a00a
6 changed files with 238 additions and 35 deletions

View File

@@ -27,8 +27,11 @@ fi
apt-get update
apt-get install -y \
build-essential \
cmake \
cuda-toolkit \
git \
gnupg \
libcurl4-nss-dev \
python3-dev \
python3-venv \
vim \
@@ -59,6 +62,13 @@ if [ -z "${SIA_INSTALL_NO_CORE}" ]; then
nvm install node
fi
# Install llama.cpp
cd /
curl -O https://git.nielsgeens.be/api/packages/llm/generic/llama.cpp/b5269/llama.cpp.tar
tar -xf /llama.cpp.tar -C /usr/local/bin --wildcards --no-anchored "llama-*"
tar -xf /llama.cpp.tar -C /usr/local/lib --wildcards --no-anchored "*.so"
rm llama.cpp.tar
# Create directory structure
echo "Creating directory structure..."
mkdir -p "/root/data/iterations"

View File

@@ -27,6 +27,7 @@ docker run \
-ti \
--gpus=all \
-p 8080:8080 \
-p 8000:8000 \
--env-file .env \
-v /$(pwd)/models/:/root/models/ \
-v /$(pwd)/iterations/:/root/data/iterations/ \