aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / evidence / q36-batch-20261021 / serve-batch.sh
| 1 | #!/bin/bash |
| 2 | # L354 test server: the batch door on 127.0.0.1:$PORT (env PORT, default 18089 = L354 only; never 18091), detached. Env passes through |
| 3 | # (AIEN_Q36_TEST_ROW_SWAP=k = the negative control). Loads under q36-extra (L366: one extra 35B at a time, memory |
| 4 | # checked inside its lock, oom_score_adj 1000 so the kernel takes this server, never 18091). Usage: serve-batch.sh <bin-sha8> <slots> <max_context> <tag> |
| 5 | # Stop: kill $(cat ~/.local/state/aien-q36/batch-$PORT.pid) |
| 6 | set -euo pipefail |
| 7 | PORT=${PORT:-18089} |
| 8 | S=$HOME/.local/state/aien-q36; BIN=bin-${1:?sha8}; SL=${2:?slots}; CTX=${3:?ctx}; TAG=${4:?tag} |
| 9 | cd "$S/$BIN"; sha256sum -c --quiet SHA256SUMS |
| 10 | ss -ltn | grep -q "127.0.0.1:$PORT " && { echo "$PORT already in use"; exit 2; } |
| 11 | echo "=== $(date -u +%FT%TZ) start batch door $TAG ($BIN, $SL slots, ctx $CTX, swap=${AIEN_Q36_TEST_ROW_SWAP:-none}) MemAvailable $(awk '/MemAvailable/{print int($2/1048576)}' /proc/meminfo) GB" >> "$S/batch-$PORT.log" |
| 12 | Q36_EXTRA_LEDGER=L354 AIEN_SERVE_KEEP_FREE_MIB=${AIEN_SERVE_KEEP_FREE_MIB:-2048} setsid nohup $HOME/.local/bin/q36-extra ./aien-serve-http --engine omega --model-dir "$HOME/models/qwen3.6-35b-a3b-fp8-95a723d0" \ |
| 13 | --port $PORT --max-context $CTX --max-tokens-cap 16384 --thinking off --batch-slots $SL >> "$S/batch-$PORT.log" 2>&1 < /dev/null & |
| 14 | echo $! > "$S/batch-$PORT.pid" |
| 15 | echo "pid $(cat "$S/batch-$PORT.pid"), log $S/batch-$PORT.log" |