Files

17 lines
1.1 KiB
Bash

#!/usr/bin/env bash
# The lab holder with the SPARSE seal (`--sparse-ple`: the 14.9 GiB the serve path reads), HOLDER_MEMFD=full for the old full 55.3 GB copy. Same as scripts/e2e/decode/single-copy-holder.sh
# of the repository (claude/single-copy-ram 9c77d603d); the Python queue process stays /data/leleka-e2e/single-copy/tools/single-copy-holder.py. Same MODEL.lock contract.
set -u
BIN=${1:-/data/leleka-e2e/decode/dt/bin-singlecopy}
T=/data/leleka-e2e/single-copy/tools
KAR=/home/para/work/leleka/models/leleka-gates/assets/qwen-iq3-s-l2-v4.kar
JOBS=$HOME/work/gpu-runs/holder2/jobs
until mkdir "$HOME/work/gpu-runs/MODEL.lock" 2>/dev/null; do sleep 20; done
trap 'rmdir "$HOME/work/gpu-runs/MODEL.lock"' EXIT
cd "$HOME/work/gpu-runs/holder2" || exit 1
rm -f "$JOBS/READY"
exec_start=$(date +%s)
SPARSE=--sparse-ple; [ "${HOLDER_MEMFD:-sparse}" = full ] && SPARSE=
LELEKA_LOAD_THREADS=${LELEKA_LOAD_THREADS:-8} "$BIN/leleka" seal-exec --file "$KAR" --expect-bytes 55295529472 $SPARSE -- python3 "$T/single-copy-holder.py" '{FD}' "$JOBS"
echo "holder3 ended rc=$? after $(( $(date +%s) - exec_start )) s"