Rewrite the 5090 server model paths in 30 repo files (scripts, tools, docs) from the old locations (/home/para/leleka-gates, $HOME/leleka-gates, /data/models) to /home/para/work/leleka/models/..., add the AGENTS.md workspace rule and the move record docs/experiments/models-move.md. Not merged: the smoke test is pending. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
33 lines
1.9 KiB
Bash
33 lines
1.9 KiB
Bash
set -uo pipefail
|
|
# claude/deploy startup profile: source verification only (no CUDA): shards + sealed KAR memfd, via leleka-inference --verify-only.
|
|
V=@V@
|
|
STAMPS=@STAMPS@
|
|
R=$HOME/work/deploy-run/$V
|
|
A=/home/para/work/leleka/models/leleka-gates/assets
|
|
M=$A/model
|
|
export LELEKA_RUNTIME_TOKEN=$(printf 'x%.0s' $(seq 1 40))
|
|
evict() { for f in "$@"; do dd if="$f" iflag=nocache count=0 status=none 2>/dev/null || true; done; }
|
|
run() {
|
|
local label=$1; shift
|
|
echo "=== $label $(date -u +%T)"; grep -E "^(MemAvailable|Cached)" /proc/meminfo | tr '\n' ' '; echo
|
|
/usr/bin/time -f "wall=%es user=%Us sys=%Ss" $R/bin/leleka-inference --listen 127.0.0.1:18999 --token-env LELEKA_RUNTIME_TOKEN \
|
|
--shard0 $M/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --shard1 $M/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf \
|
|
--gpu 0 --gpu-budget 25769803776 --context-tokens 262144 --kar-archive-fd $LELEKA_STRA169_KAR_FD --kar-provenance $A/qwen-iq3-s-l2-v4.kar.provenance.json \
|
|
--mtp-pack $A/data/mtp-rt --mtp-staging $HOME/work/deploy-run/mtp-stg-$V --backend-mode original --expert-source resident --verify-only "$@" 2>&1
|
|
}
|
|
install -d -m 0700 $HOME/work/deploy-run/mtp-stg-$V
|
|
fincore $M/*.gguf 2>/dev/null; date -u +%FT%TZ; sha256sum $R/bin/leleka-inference | cut -c1-16; nproc
|
|
run "warm (page cache as left by the previous job)"
|
|
evict $M/*.gguf
|
|
run "cold shards (evicted with posix_fadvise DONTNEED; the KAR is the holder's memfd, i.e. RAM)"
|
|
run "warm again"
|
|
if [ "$STAMPS" = yes ]; then
|
|
ST=$HOME/work/deploy-run/stamps-$V; rm -rf $ST; install -d -m 0700 $ST
|
|
evict $M/*.gguf
|
|
run "cold + --verify-stamps, first run (hashes in full, records)" --verify-stamps $ST
|
|
run "warm + --verify-stamps, second run (shards trusted; the memfd KAR is hashed: no identity)" --verify-stamps $ST
|
|
run "--verify-rehash (ignores the stamps)" --verify-stamps $ST --verify-rehash
|
|
ls -la $ST
|
|
fi
|
|
date -u +%FT%TZ
|