Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
17 lines
1.1 KiB
Bash
17 lines
1.1 KiB
Bash
#!/usr/bin/env bash
|
|
# Start the lab holder with the fast, page-cache-free seal (see single-copy-holder.py). Same MODEL.lock contract as run_holder2.sh.
|
|
# single-copy-holder.sh [BIN_DIR] BIN_DIR holds `leleka` (default /data/leleka-e2e/decode/dt/bin-singlecopy)
|
|
# Run it detached: cd ~/work/gpu-runs/holder2 && rm -f jobs/STOP && setsid nohup bash /data/leleka-e2e/single-copy/tools/single-copy-holder.sh > holder3.out 2>&1 &
|
|
set -u
|
|
BIN=${1:-/data/leleka-e2e/decode/dt/bin-singlecopy}
|
|
T=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
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)
|
|
LELEKA_LOAD_THREADS=${LELEKA_LOAD_THREADS:-8} "$BIN/leleka" seal-exec --file "$KAR" --expect-bytes 55295529472 -- python3 "$T/single-copy-holder.py" '{FD}' "$JOBS"
|
|
echo "holder3 ended rc=$? after $(( $(date +%s) - exec_start )) s"
|