Placement-gate job stub for the tier-swap bursts

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Pavlo Ratushnyi
2026-11-13 00:51:52 +01:00
co-authored by Claude Sonnet 5.5
parent d735a793b8
commit b64c4e2c8a
@@ -0,0 +1,27 @@
#!/usr/bin/env bash
# HOLDER JOB. Plan 6c, tier-swap bursts: the placement-class gate against a control placement (ledger H4 rule: placement-class changes are judged against the control
# gate, not the 0.43 absolute max). Teacher-forced night5-long-256k (5 requests to 243k, 240 forced tokens, top-16 logprob rows, A/A floor inside each process), ONE test binary,
# EXPERT_SLOTS=8000 in every process, all on the owner-default placement (quota=no, PCIe share 0.65):
# idP1 reference the owner default, swaps every 4 rounds, up to 96
# idP2 candidate T LELEKA_ORIGINAL_SERVE_ADAPT_EVERY=2 + _ADAPT_SWAPS=48 (same swap throughput per round, bursts that fit under the draft)
# idP3 candidate TW LELEKA_ORIGINAL_SERVE_ADAPT_EVERY=2 (twice the throughput; the "PW" arm)
# idP4 control LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.55 (an ordinary placement change of 0.10 in the share; the 2026-11-12 controls 0.35 / 0.55 on the old placement gave
# p99 0.224 / 0.215, max 0.746 / 0.665, flips 2.23 / 2.56 %)
# Rule (docs/quality-gate.md, q_tail_gate --control): p99, max and flip rate of a candidate each <= 1.25 x the control's, read from the q_pair lines "idP2/idP3 against the reference"
# next to "idP4 against the reference". A candidate that fails it is not a default.
( cd /data/leleka-e2e/prefill-latency/host-round && sha256sum --quiet -c MANIFEST.sha256 ) || { echo "host-round inputs do not match MANIFEST.sha256" >&2; exit 3; }
unset ID_BIN P1_ENV P2_ENV P3_ENV P4_ENV ID_OUT MAX_NEW ADAPT SKIP_P1 D DR
export D=/data/leleka-e2e/prefill-latency/host-round/dt DR=/data/leleka-e2e/draft-round
export ID_BIN=rt-host-round-ple-on-chain-22d9689e73cd MAX_NEW=240 ADAPT=4
OWNER="LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.65"
export P1_ENV="$OWNER"
export P2_ENV="$OWNER LELEKA_ORIGINAL_SERVE_ADAPT_EVERY=2 LELEKA_ORIGINAL_SERVE_ADAPT_SWAPS=48"
export P3_ENV="$OWNER LELEKA_ORIGINAL_SERVE_ADAPT_EVERY=2"
export P4_ENV="LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=no LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.55"
export ID_OUT=/data/leleka-e2e/prefill-latency/runs/decode-tier-swap-bursts-placement-gate-teacher-forced-owner-default-vs-every2-swaps48-vs-every2-swaps96-vs-pcie-share-055-control
unset LELEKA_KAR_SPARSE_EXTENTS_SHA256
if [ -n "${LELEKA_STRA169_KAR_FD:-}" ] && [ -e "/proc/self/fd/$LELEKA_STRA169_KAR_FD" ]; then
read -r kar_size kar_blocks < <(stat -L -c "%s %b" "/proc/self/fd/$LELEKA_STRA169_KAR_FD")
if [ $(( kar_blocks * 512 * 2 )) -lt "$kar_size" ]; then export LELEKA_KAR_SPARSE_EXTENTS_SHA256=7568b1211419a7c10a9b39a86230f75b7fa9c02839e36c9b5f2494ec7af72143; fi
fi
exec bash /data/leleka-e2e/spd-gap/tools/draftround-id.sh