Merge claude/window-policy: draft-floor ceiling default 0.60 (LELEKA_SPEC_POLICY=legacy restores 0.9), replay-arm policy tooling, spec-trace bar/slope, run-e2e ATTN_DAILY_MTP default
Paired A/B 245k (8 blocks): +1.09% tok/s, se 1.86 (not resolved); replay screening +0.35..+1.72 tok/s; argmax flips 1.9-2.0% vs A/A 1.3-1.55% (<2.8% bound). Not claimed as a speedup. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,164 @@
|
||||
#!/usr/bin/env bash
|
||||
# window-policy: paired ours-vs-ours A/B on the RTX 5090 at ~245k context (copy of draftround-ab.sh with three arms and its own manifest). HOLDER JOB (rnr5090).
|
||||
# Install: scripts/e2e/decode/windowpolicy-install.sh (copies the tools and scripts/e2e to /data/leleka-e2e/window-policy, read-only, MANIFEST.sha256 of every input);
|
||||
# stub ~/work/gpu-runs/holder2/jobs/<job>.sh = `#!/usr/bin/env bash` + env lines + `exec bash /data/leleka-e2e/window-policy/tools/windowpolicy-ab.sh`.
|
||||
#
|
||||
# Arms "a", "b" and (optional) "c" are configurations of ours: A_BIN/B_BIN/C_BIN (a directory under dt/, may be the same) and A_ENV/B_ENV/C_ENV (extra KEY=VALUE words).
|
||||
# BLOCKS: with two arms odd blocks run a b and even blocks b a; with C_BIN set every block is a rotation of a b c (block 1 a b c, 2 b c a, 3 c a b, 4 a c b, 5 c b a, 6 b a c, ...).
|
||||
# Everything else is the shipped shape of baseline-pair-ab.sh `ours45`: seed off, upstream ranked profile, auto expert slots, budget 32819404800, spec-min-p 0,
|
||||
# prefix cache auto, PCIe share pinned (PCIE_FRAC, default 0.45), 5 turns to ~245k, --max-output 300, final-turn input >= 200k tokens, no vanilla lossy switch.
|
||||
# BLOCKS="1 2 3 4 5": odd block runs a then b, even block b then a (alternating order). A block is the unit of pairing.
|
||||
# PROFILE=1: every run also loads the CUPTI tracer and writes one 20 s window over turn 5 (dir <run>/win-turn5.lct); the window perturbs the run slightly, profile runs are not A/B data.
|
||||
set -uo pipefail
|
||||
DR=/data/leleka-e2e/window-policy
|
||||
DRT=/data/leleka-e2e/draft-round
|
||||
D=/data/leleka-e2e/decode/dt
|
||||
LOCK=/data/leleka-e2e/gpu.lock
|
||||
OUTR=${OUTR:?OUTR}
|
||||
CORPUS=/data/leleka-e2e/decode/corpus/src/crates
|
||||
UP=/data/leleka-e2e/decode/assets/expert-profile-upstream.bin
|
||||
BLOCKS=${BLOCKS:-"1 2 3 4 5"}
|
||||
RUN_TAG=${RUN_TAG:-}
|
||||
PCIE_FRAC=${PCIE_FRAC:-0.45}
|
||||
SPEC_MIN_P=${SPEC_MIN_P:-0} # the request's draft confidence floor (the product profile: 0 with the adaptive window)
|
||||
A_BIN=${A_BIN:?A_BIN}; B_BIN=${B_BIN:-$A_BIN}; C_BIN=${C_BIN:-}; A_ENV=${A_ENV:-}; B_ENV=${B_ENV:-}; C_ENV=${C_ENV:-}
|
||||
SESSION_ARGS="--turns 5 --target-tokens 245000 --max-output 300 --min-final-tokens 200000"
|
||||
WIN_S=${WIN_S:-20}
|
||||
LIB=$DRT/tools/libleleka_cupti_trace.so
|
||||
mkdir -p "$OUTR"
|
||||
|
||||
( cd / && sha256sum --quiet -c "$DR/MANIFEST.sha256" ) || { echo "window-policy: MANIFEST.sha256 check failed" >&2; exit 3; }
|
||||
for f in "$UP" "$CORPUS/backend-api/src/lib.rs" "$D/$A_BIN/leleka-inference" "$D/$B_BIN/leleka-inference" "$DRT/tools/ts-wrap.sh"; do
|
||||
[ -r "$f" ] || { echo "missing $f" >&2; exit 3; }
|
||||
done
|
||||
|
||||
settle() { # $1 run dir
|
||||
local n=0 t l
|
||||
while [ $n -lt 30 ]; do
|
||||
t=$(nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits | head -1)
|
||||
[ "${t:-99}" -le 48 ] && break
|
||||
sleep 5; n=$((n + 1))
|
||||
done
|
||||
echo "gpu_temp_c=$t cooled_after_s=$((n * 5))" >"$1/settle.txt"
|
||||
n=0
|
||||
while [ $n -lt 24 ]; do
|
||||
l=$(cut -d" " -f1 /proc/loadavg)
|
||||
awk -v l="$l" 'BEGIN{exit !(l < 0.5)}' && break
|
||||
sleep 5; n=$((n + 1))
|
||||
done
|
||||
echo "load1=$l quiet_after_s=$((n * 5))" >>"$1/settle.txt"
|
||||
{ date -u +%FT%TZ; uptime; free -m | sed -n 2p; nvidia-smi --query-gpu=clocks.sm,clocks.mem,temperature.gpu,power.draw,pstate --format=csv,noheader
|
||||
echo "top processes by cpu (other agents' work shows here):"; ps -eo pid,etime,pcpu,cmd --sort=-pcpu | sed -n 2,6p | cut -c1-200; } >>"$1/settle.txt"
|
||||
}
|
||||
|
||||
watch_and_trigger() { # $1 client log, $2 trigger file, $3 out dir
|
||||
for _ in $(seq 1 15000); do
|
||||
if grep -q '"turn": 4' "$1" 2>/dev/null; then
|
||||
printf '{"seconds": %s, "out": "%s/win-turn5", "label": "turn5"}\n' "$WIN_S" "$3" >"$2.tmp" && mv "$2.tmp" "$2"
|
||||
echo "$(date +%s.%N) trigger written" >>"$3/trigger.log"; return 0
|
||||
fi
|
||||
sleep 0.2
|
||||
done
|
||||
}
|
||||
|
||||
ours() { # $1 tag, $2 run dir, $3 bin dir, $4 extra env words
|
||||
local tag=$1 R=$2 bin=$3 xenv=$4
|
||||
( export E2E_BIN=$D/$bin E2E_OUT=$R
|
||||
export LELEKA_BRINGUP_TRACE=1 LELEKA_PREFIX_TRACE=1
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS=auto E2E_GPU_BUDGET=${GPU_BUDGET:-32819404800}
|
||||
export E2E_ENGINE_ARGS="--prefix-cache-mib auto --prefix-cache-tail reply --original-prefill-capacity 8192 --prefix-cache-block 8192 --spec-min-p ${SPEC_MIN_P:-0}"
|
||||
export E2E_SAMPLE_S=10 LELEKA_CHAIN=all
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_PROFILE=$UP
|
||||
unset LELEKA_FOOTPRINT_LEGACY LELEKA_ORIGINAL_SERVE_SEED_MAX_ROWS LELEKA_SM120_ATTN_DAILY LELEKA_SM120_GU_SWIGLU LELEKA_SM120_SIDE_MIXER LELEKA_SM120_PERF LELEKA_SERVE_DRAFT_AFTER_COMMIT LELEKA_PROMPT_EMBED_ALIAS LELEKA_VRAM_LEDGER LELEKA_DENSE_SLAB LELEKA_ORIGINAL_SERVE_DECODE_RESERVE_MIB LELEKA_ROUTE_TAIL_SKIP
|
||||
unset LELEKA_HUGEPAGES LELEKA_BANK_THP LELEKA_DRAFT_FUSED_COMMIT LELEKA_DRAFT_ROUND LELEKA_SM120_ATTN_DAILY_MTP LELEKA_SPEC LELEKA_SPEC_ADAPTIVE LELEKA_SPEC_POLICY LELEKA_SPEC_EXPLORE LELEKA_SPEC_DRAFT_STEP_MS LELEKA_SPEC_MARGIN LELEKA_SPEC_MIN_P_LO LELEKA_SPEC_COST_ALPHA LELEKA_SPEC_DECAY LELEKA_SPEC_BIAS_RATE
|
||||
export LELEKA_ORIGINAL_SERVE_SEED=off LELEKA_ORIGINAL_SERVE_PCIE_FRAC=$PCIE_FRAC
|
||||
for kv in $xenv; do export "$kv"; done
|
||||
{ echo "tag=$tag bin=$bin extra=[$xenv]"; date -u +%FT%TZ; free -g | sed -n 2p; uptime; sha256sum "$UP" "$E2E_BIN"/leleka-inference "$E2E_BIN"/leleka-daemon "$E2E_BIN"/leleka-cli "$E2E_BIN"/strata-next
|
||||
cat "$E2E_BIN/COMMIT.txt" 2>/dev/null; head -1 /data/leleka-e2e/decode/corpus/MANIFEST.txt
|
||||
env | grep -E '^(LELEKA_|STRATA_|E2E_)' | sort; } >"$R/env-arm.txt"
|
||||
export E2E_RUN_CMD="bash $DRT/tools/ts-wrap.sh $R/client.ts.log python3 -I $D/tools/long-session.py --src $CORPUS $SESSION_ARGS"
|
||||
if [ "${PROFILE:-0}" = 1 ]; then
|
||||
export LELEKA_CUPTI_LIB=$LIB LELEKA_CUPTI_TRIGGER=$R/cupti.trigger LCT_MAX_SECONDS=60 LD_LIBRARY_PATH=$DRT/cupti/lib:${LD_LIBRARY_PATH:-}
|
||||
watch_and_trigger "$R/client.ts.log" "$R/cupti.trigger" "$R" &
|
||||
W=$!
|
||||
fi
|
||||
bash "$DR/scripts/e2e/run-e2e.sh" 2>&1 | grep -a -E "^\{|expert cache|request outcome|ready after|rc=|refus|error|Error|long_session|client exit|\[lct\]" | cut -c1-300
|
||||
if [ "${PROFILE:-0}" = 1 ]; then for _ in $(seq 1 60); do [ -e "$R/cupti.trigger.done" ] && break; sleep 1; done; kill $W 2>/dev/null; fi
|
||||
echo "run-e2e done $tag $(date -u +%FT%TZ)" )
|
||||
}
|
||||
|
||||
validity() { # $1 run dir
|
||||
python3 -I - "$1" <<'PY'
|
||||
import json, os, re, sys
|
||||
d = sys.argv[1]
|
||||
f = os.path.join(d, "long-session.json")
|
||||
verdict = "INVALID: no long-session.json"
|
||||
if os.path.exists(f):
|
||||
t = json.load(open(f))
|
||||
final = (t[-1].get("input_tokens") or 0) if t else 0
|
||||
if any("error" in r for r in t):
|
||||
verdict = "INVALID: a turn failed"
|
||||
elif len(t) < 5 or final < 200000:
|
||||
verdict = "INVALID: %d turns, final-turn input tokens %d < 200000 (short corpus?)" % (len(t), final)
|
||||
else:
|
||||
verdict = "VALID: 5 turns, final-turn input tokens %d" % final
|
||||
wins, last = [], []
|
||||
for ln in open(os.path.join(d, "inference.log"), errors="replace"):
|
||||
if ln.startswith("DBG window "):
|
||||
last.append(dict((k, float(v)) for k, v in re.findall(r"(\w+)=([-\d.]+)", ln)))
|
||||
elif "leleka-serve request outcome" in ln:
|
||||
wins.append(last); last = []
|
||||
w = wins[-1] if wins else []
|
||||
ple = sum(x.get("ple", 0) for x in w) / max(len(w), 1)
|
||||
verdict += "; turn-5 window.ple mean %.2f ms over %d windows" % (ple, len(w))
|
||||
if not w:
|
||||
verdict = "INVALID: no turn-5 window lines (trace env missing?)"
|
||||
elif ple >= 5:
|
||||
verdict = "INVALID: turn-5 window.ple mean %.2f ms >= 5 ms (PLE scan back?)" % ple
|
||||
open(os.path.join(d, "VALIDITY.txt"), "w").write(verdict + "\n")
|
||||
print(os.path.basename(d), verdict)
|
||||
PY
|
||||
}
|
||||
|
||||
LIST=""
|
||||
if [ -n "${ENTRIES:-}" ]; then LIST="$ENTRIES"
|
||||
else
|
||||
for b in $BLOCKS; do
|
||||
if [ -n "$C_BIN" ]; then
|
||||
case $(( (b - 1) % 6 )) in
|
||||
0) o="a b c" ;; 1) o="b c a" ;; 2) o="c a b" ;; 3) o="a c b" ;; 4) o="c b a" ;; 5) o="b a c" ;;
|
||||
esac
|
||||
set -- $o; LIST="$LIST $b:1:$1 $b:2:$2 $b:3:$3"
|
||||
elif [ $((b % 2)) = 1 ]; then LIST="$LIST $b:1:a $b:2:b"; else LIST="$LIST $b:1:b $b:2:a"; fi
|
||||
done
|
||||
fi
|
||||
for ent in $LIST; do
|
||||
bn=${ent%%:*}; rest=${ent#*:}; pos=${rest%%:*}; arm=${rest#*:}
|
||||
tag=$(printf "b%02dp%d-%s%s" "$bn" "$pos" "$arm" "$RUN_TAG"); R=$OUTR/$tag
|
||||
[ -e "$DR/STOP" ] && { echo "STOP file present, ending before $tag"; exit 0; }
|
||||
got=0
|
||||
for _ in $(seq 1 1080); do
|
||||
if mkdir "$LOCK" 2>/dev/null; then echo "window-policy $tag $(date -u +%FT%TZ)" >"$LOCK/owner"; got=1; break; fi
|
||||
sleep 5
|
||||
done
|
||||
[ $got = 1 ] || { echo "GPU lock held by: $(cat $LOCK/owner 2>/dev/null)"; exit 3; }
|
||||
echo "=== $tag $(date -u +%FT%TZ)"
|
||||
if [ -n "$(nvidia-smi --query-compute-apps=pid --format=csv,noheader)" ]; then
|
||||
echo "GPU busy, skipping $tag"; rm -f "$LOCK/owner"; rmdir "$LOCK" 2>/dev/null; continue
|
||||
fi
|
||||
mkdir -p "$R"; echo "block=$bn pos=$pos arm=$arm" >"$R/ARM.txt"
|
||||
settle "$R"
|
||||
case $arm in
|
||||
a) ours "$tag" "$R" "$A_BIN" "$A_ENV" ;;
|
||||
b) ours "$tag" "$R" "$B_BIN" "$B_ENV" ;;
|
||||
c) ours "$tag" "$R" "$C_BIN" "$C_ENV" ;;
|
||||
esac
|
||||
for lg in "$R/inference.log"; do [ -r "$lg" ] && grep -a -E "arena|huge|PCIe probe|pcie_frac|CPU pool|pool workers|expert cache|memory guard|Cpus|pinned|affin" "$lg" | head -60 | cut -c1-300; done >"$R/startup.txt"
|
||||
{ echo "after the run: $(date -u +%FT%TZ) $(cat /proc/loadavg)"; ps -eo pid,etime,pcpu,cmd --sort=-pcpu | sed -n 2,4p | cut -c1-200; } >>"$R/settle.txt"
|
||||
validity "$R"
|
||||
echo "arm done $tag $(date -u +%FT%TZ)"
|
||||
rm -f "$LOCK/owner"; rmdir "$LOCK" 2>/dev/null
|
||||
sleep 15
|
||||
done
|
||||
[ -r "$DR/tools/windowpolicy-analyze.py" ] && python3 -I "$DR/tools/windowpolicy-analyze.py" "$OUTR" > "$OUTR/ANALYSIS.$(date -u +%Y%m%dT%H%M%SZ).txt" 2>&1
|
||||
echo "window-policy job done $(date -u +%FT%TZ)"
|
||||
@@ -0,0 +1,93 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Analysis of windowpolicy-ab.sh runs (arms a, b and optionally c): per run all-turn tok/s (tokens over seconds), tok/round, ms/round, verified rows per round,
|
||||
accepted per round, chain steps per round; per arm mean/sd; block-paired differences b - a, c - a, c - b with the per-block values.
|
||||
|
||||
python3 -I windowpolicy-analyze.py <outroot> [<outroot> ...]
|
||||
|
||||
A run directory is <root>/b<NN>p<P>-<a|b|c>[tag]; VALIDITY.txt must start with VALID or the run is listed and left out (a block missing an arm drops out of the pairs it needs).
|
||||
tok/s = total output tokens / total decode seconds (decode seconds of a turn = tokens / the client's decode_tok_s)
|
||||
tok/round = tokens / rounds ('rounds=' of the request outcome lines); ms/round = decode seconds / rounds * 1000
|
||||
rows/round, accepted/round, chain steps/round: the profile spans round.T, round.acc, mtp.chain_step (count) of the request profile lines, summed over the requests / rounds
|
||||
"""
|
||||
import glob, json, math, os, re, statistics, sys
|
||||
|
||||
SPANS = ["round.run_window", "round.apply_pending", "round.draft_committed", "commit.wait", "mtp.finish_first_step", "mtp.chain_step"]
|
||||
|
||||
|
||||
def run_stats(d):
|
||||
j = json.load(open(os.path.join(d, "long-session.json")))
|
||||
toks = [r["output_tokens"] for r in j]
|
||||
secs = [r["output_tokens"] / r["decode_tok_s"] for r in j]
|
||||
rounds, prof = [], []
|
||||
cur = None
|
||||
for ln in open(os.path.join(d, "inference.log"), errors="replace"):
|
||||
if ln.startswith("DBG profile request:"):
|
||||
cur = {m[0]: (float(m[1]), int(m[2])) for m in re.findall(r"(\S+?)=([\d.]+)/(\d+)", ln)}
|
||||
elif "leleka-serve request outcome" in ln:
|
||||
rounds.append(int(re.search(r"rounds=(\d+)", ln).group(1)))
|
||||
prof.append(cur or {})
|
||||
cur = None
|
||||
R = sum(rounds)
|
||||
out = {"turns": [r["decode_tok_s"] for r in j], "tok_s": sum(toks) / sum(secs), "tok_round": sum(toks) / R, "ms_round": sum(secs) / R * 1000, "rounds": R}
|
||||
out["rows_round"] = sum(p.get("round.T", (0, 0))[0] for p in prof) / R
|
||||
out["acc_round"] = sum(p.get("round.acc", (0, 0))[0] for p in prof) / R
|
||||
out["steps_round"] = sum(p.get("mtp.chain_step", (0, 0))[1] for p in prof) / R
|
||||
for s in SPANS:
|
||||
out[s] = sum(p.get(s, (0.0, 0))[0] for p in prof) / R
|
||||
return out
|
||||
|
||||
|
||||
def sd(v):
|
||||
return statistics.stdev(v) if len(v) > 1 else float("nan")
|
||||
|
||||
|
||||
def main():
|
||||
runs = {}
|
||||
for root in sys.argv[1:]:
|
||||
for d in sorted(glob.glob(os.path.join(root, "b*p*-*"))):
|
||||
m = re.match(r"b(\d+)p(\d+)-([abc])(.*)", os.path.basename(d))
|
||||
if not os.path.isdir(d) or not m:
|
||||
continue
|
||||
ver = open(os.path.join(d, "VALIDITY.txt")).read().strip() if os.path.exists(os.path.join(d, "VALIDITY.txt")) else "no VALIDITY"
|
||||
if not ver.startswith("VALID"):
|
||||
print("%s %s (left out)" % (os.path.basename(d), ver))
|
||||
continue
|
||||
try:
|
||||
runs[(root, int(m.group(1)), int(m.group(2)), m.group(3))] = run_stats(d)
|
||||
except Exception as e: # noqa
|
||||
print("%s analysis failed: %s" % (os.path.basename(d), e))
|
||||
print("%-26s %-5s %-26s %8s %8s %8s %8s" % ("run", "pos", "turns tok/s", "tok/s", "tok/rnd", "ms/rnd", "rows/rnd"))
|
||||
for (root, b, p, arm), s in sorted(runs.items(), key=lambda kv: (kv[0][1], kv[0][2])):
|
||||
print("%-26s b%02dp%d %-26s %8.1f %8.3f %8.3f %8.3f" % (os.path.basename(root.rstrip("/")) + "/" + arm, b, p, " ".join("%.0f" % t for t in s["turns"]),
|
||||
s["tok_s"], s["tok_round"], s["ms_round"], s["rows_round"]))
|
||||
arms = {}
|
||||
for (root, b, p, arm), s in runs.items():
|
||||
arms.setdefault(arm, []).append(s)
|
||||
print()
|
||||
for arm, ss in sorted(arms.items()):
|
||||
print("arm %s n=%d tok/s %.2f (sd %.2f, %.1f..%.1f) tok/round %.3f (sd %.3f) ms/round %.3f (sd %.3f) rows/round %.3f accepted/round %.3f chain steps/round %.3f" % (
|
||||
arm, len(ss), statistics.mean(s["tok_s"] for s in ss), sd([s["tok_s"] for s in ss]), min(s["tok_s"] for s in ss), max(s["tok_s"] for s in ss),
|
||||
statistics.mean(s["tok_round"] for s in ss), sd([s["tok_round"] for s in ss]), statistics.mean(s["ms_round"] for s in ss), sd([s["ms_round"] for s in ss]),
|
||||
statistics.mean(s["rows_round"] for s in ss), statistics.mean(s["acc_round"] for s in ss), statistics.mean(s["steps_round"] for s in ss)))
|
||||
print("\nspans, ms per round (mean over the arm's runs):")
|
||||
print("%-26s" % "span", *["%10s" % a for a in sorted(arms)])
|
||||
for sp in SPANS:
|
||||
print("%-26s" % sp, *["%10.3f" % statistics.mean(s[sp] for s in ss) for a, ss in sorted(arms.items())])
|
||||
byb = {}
|
||||
for (root, b, p, arm), s in runs.items():
|
||||
byb.setdefault((root, b), {})[arm] = s
|
||||
for x, y in (("a", "b"), ("a", "c"), ("b", "c")):
|
||||
pairs = [(k, v[x], v[y]) for k, v in sorted(byb.items(), key=lambda kv: kv[0][1]) if x in v and y in v]
|
||||
if len(pairs) < 2:
|
||||
continue
|
||||
print("\nblock-paired, %s - %s (n=%d blocks: %s):" % (y, x, len(pairs), " ".join(str(k[1]) for k, _, _ in pairs)))
|
||||
for key, name in (("tok_s", "tok/s"), ("tok_round", "tok/round"), ("ms_round", "ms/round"), ("rows_round", "rows/round"), ("steps_round", "steps/round")):
|
||||
d = [pb[key] - pa[key] for _, pa, pb in pairs]
|
||||
rel = [100.0 * (pb[key] - pa[key]) / pa[key] for _, pa, pb in pairs]
|
||||
se = sd(d) / math.sqrt(len(d))
|
||||
print(" %-11s per block %s mean %+.3f (sd %.3f, se %.3f) %+.2f %% %s better in %d of %d" % (
|
||||
name, " ".join("%+.3f" % v for v in d), statistics.mean(d), sd(d), se, statistics.mean(rel), y, sum(1 for v in d if v > 0), len(d)))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -0,0 +1,87 @@
|
||||
#!/usr/bin/env bash
|
||||
# window-policy identity gate: teacher-forced replay of the 256k-class capture night5-long-256k (5 requests, recorded replies, decode capped at MAX_NEW forced tokens
|
||||
# each), production shape WITH THE ADAPTIVE WINDOW (the draft-round gate ran a fixed window, LELEKA_SPEC=4, whose widths cannot move), top-16 logprobs of every row, seed OFF,
|
||||
# ONE test binary (dt/$ID_BIN) for all processes, one process per setting, two arms in each (I1 I2: the A/A floor). HOLDER JOB (copy of draftround-id.sh).
|
||||
# The window policy picks the widths from measured times, so two runs cut their windows differently; q_pair keys a row by (request, position, the window's inputs up to the row),
|
||||
# i.e. it compares the rows whose context is the same whatever the window around them was, and the A/A floor (I2 against I1 of one process, adaptive on both) says how much of a
|
||||
# difference is the run-to-run width noise alone. What is compared: the top-16 logprob rows (ids and IEEE logprobs as printed) of the common rows, and the argmax of each.
|
||||
# ID_BIN test binary directory name under /data/leleka-e2e/decode/dt (required)
|
||||
# P1_ENV extra env of the reference process (default: nothing)
|
||||
# P2_ENV extra env of the changed process (required)
|
||||
# P3_ENV, P4_ENV optional third and fourth process
|
||||
# ID_OUT output directory (required) MAX_NEW (default 240) ADAPT (default 4: the adaptive tier swaps, as dt-id2)
|
||||
# SKIP_P1=1 reuse $ID_OUT/idP1.full of an earlier job (same binary, same environment) as the reference instead of running it again
|
||||
# ~10 GPU-min a process. Verdict: q_pair (top-16 logprob rows of the common rows: identical or not, read against the A/A floor) and q_tail_gate.
|
||||
set -uo pipefail
|
||||
LOCK=/data/leleka-e2e/gpu.lock
|
||||
D=/data/leleka-e2e/decode/dt
|
||||
DR=/data/leleka-e2e/draft-round
|
||||
WP=/data/leleka-e2e/window-policy
|
||||
O=${ID_OUT:?ID_OUT}
|
||||
ID_BIN=${ID_BIN:?ID_BIN}
|
||||
MAX_NEW=${MAX_NEW:-240}
|
||||
ADAPT=${ADAPT:-4}
|
||||
mkdir -p "$O"
|
||||
( cd / && sha256sum --quiet -c "$DR/MANIFEST.sha256" ) || { echo "draft-round: MANIFEST.sha256 check failed" >&2; exit 3; }
|
||||
export LD_LIBRARY_PATH=$HOME/cuda-toolkits/cublas-12.9.1.4/lib:$HOME/cuda-toolkits/13.2.2/lib64:${LD_LIBRARY_PATH:-}
|
||||
A=$HOME/leleka-gates/assets
|
||||
G=$HOME/work/gpu-runs
|
||||
CAP=/data/leleka-e2e/sm120/capture
|
||||
export LELEKA_STRA169_KAR_PROVENANCE=$A/qwen-iq3-s-l2-v4.kar.provenance.json
|
||||
export LELEKA_STRA169_IQ3S_SHARD0=$A/model/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf
|
||||
export LELEKA_STRA169_IQ3S_SHARD1=$A/model/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf
|
||||
export LELEKA_STRA169_MTP_PACK=$A/data/mtp-rt LELEKA_STRA169_MTP_STAGING=$G/mtp-staging-own LELEKA_ORIGINAL_SERVE_BUDGET_GIB=30
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=yes LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.45
|
||||
export LELEKA_SMOKE_PROMPT_CACHE=0 LELEKA_SERVE_PROFILE=1 LELEKA_GRAPH_EXEC_REUSE=off
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_PROFILE=/data/leleka-e2e/decode/assets/expert-profile-upstream.bin
|
||||
export LELEKA_ORIGINAL_SERVE_RT_DIR=$A/data/mtp-rt
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS=8000 LELEKA_CHAIN=all
|
||||
export LELEKA_ORIGINAL_SERVE_ADAPT_EVERY=$ADAPT LELEKA_ORIGINAL_SERVE_SEED=off
|
||||
unset LELEKA_SPEC LELEKA_SPEC_ADAPTIVE LELEKA_SPEC_SUFFIX LELEKA_SPEC_POLICY
|
||||
unset LELEKA_SERVE_DRAFT_AFTER_COMMIT LELEKA_PROMPT_EMBED_ALIAS LELEKA_VRAM_LEDGER LELEKA_DENSE_SLAB LELEKA_FOOTPRINT_LEGACY LELEKA_SM120_ATTN_DAILY_MTP LELEKA_DRAFT_FUSED_COMMIT LELEKA_DRAFT_ROUND
|
||||
for f in $D/$ID_BIN $D/tools/q_pair.py $D/tools/q_tail_gate.py $DR/tools/draftround-idcmp.py $CAP/night5-long-256k; do
|
||||
[ -e "$f" ] || { echo "missing $f" >&2; exit 3; }
|
||||
done
|
||||
sha256sum $D/$ID_BIN | tee $O/rt.sha256
|
||||
shape="reply@8192/8192!orig!fast!nocluster!store!qpf!gpool!mspan"
|
||||
run() { # label extra-env
|
||||
got=0
|
||||
for i in $(seq 1 1080); do
|
||||
if mkdir $LOCK 2>/dev/null; then echo "window-policy identity $1 $(date -u +%FT%TZ)" >$LOCK/owner; got=1; break; fi
|
||||
sleep 5
|
||||
done
|
||||
[ $got = 1 ] || { echo "GPU lock held by: $(cat $LOCK/owner 2>/dev/null)"; return 3; }
|
||||
avail=$(awk '/MemAvailable/{print int($2/1048576)}' /proc/meminfo); echo "=== $1 extra=[$2] MemAvailable GiB: $avail"
|
||||
if [ "$avail" -lt 60 ]; then echo "abort: less than 60 GiB available"; rm -f $LOCK/owner; rmdir $LOCK; return 4; fi
|
||||
date -u +%FT%TZ
|
||||
env $2 LELEKA_SPEC_STATS=1 LELEKA_SPEC_TRACE=1 LELEKA_ORIGINAL_SERVE_REPLAY=yes LELEKA_BRINGUP_TRACE=1 LELEKA_REPLAY_DIR=$CAP/night5-long-256k LELEKA_PREFIX_TRACE=1 LELEKA_REPLAY_PREFIX_MIB=6000 LELEKA_TRACE_PREFILL_R=1 LELEKA_TRACE_LOGPROBS=16 \
|
||||
LELEKA_REPLAY_MAX_NEW=$MAX_NEW LELEKA_REPLAY_FORCE=1 LELEKA_REPLAY_ARMS="I1=$shape,I2=$shape" \
|
||||
nice -n 5 $D/$ID_BIN --ignored --exact --test-threads=1 --nocapture backend::original_serve_replay::original_serve_replay_smoke > $O/$1.full 2>&1
|
||||
echo "rc=$? label=$1"; date -u +%FT%TZ
|
||||
grep -a -E "^REPLAY #|test result|panicked|FAILED|expert cache [0-9]+ slots" $O/$1.full | cut -c1-200 | tail -14
|
||||
grep -a -c "^DBG spec-trace" $O/$1.full
|
||||
rm -f $LOCK/owner; rmdir $LOCK 2>/dev/null
|
||||
sleep 15
|
||||
}
|
||||
if [ "${SKIP_P1:-0}" = 1 ]; then [ -s "$O/idP1.full" ] || { echo "SKIP_P1 set but $O/idP1.full is missing" >&2; exit 3; }; else run idP1 "${P1_ENV:-LELEKA_X=1}"; fi
|
||||
run idP2 "${P2_ENV:?P2_ENV}"
|
||||
PROCS="idP1 idP2"
|
||||
if [ -n "${P3_ENV:-}" ]; then run idP3 "$P3_ENV"; PROCS="idP1 idP2 idP3"; fi
|
||||
if [ -n "${P4_ENV:-}" ]; then run idP4 "$P4_ENV"; PROCS="$PROCS idP4"; fi
|
||||
T=$D/tools
|
||||
for p in $PROCS; do echo "== q_tail_gate $p"; python3 $T/q_tail_gate.py $O/$p.full $CAP/night5-long-256k 2>&1 | tail -8; done
|
||||
python3 - <<PY
|
||||
import sys
|
||||
sys.path.insert(0, "$T")
|
||||
import q_pair
|
||||
procs = "$PROCS".split()
|
||||
rows = {p: [q_pair.rows_of("$O/%s.full" % p, i) for i in (0, 1)] for p in procs}
|
||||
q_pair.compare(rows["idP1"][0], rows["idP1"][1], "reference process, arm I2 against arm I1 (A/A noise floor)")
|
||||
for p in procs[1:]:
|
||||
q_pair.compare(rows[p][0], rows[p][1], p + ", arm I2 against arm I1 (A/A)")
|
||||
q_pair.compare(rows["idP1"][0], rows[p][0], p + " against the reference, arm I1")
|
||||
q_pair.compare(rows["idP1"][1], rows[p][1], p + " against the reference, arm I2")
|
||||
PY
|
||||
# (the draft trace of draft-round is not compared here: a policy with another chain floor drafts other tokens by design)
|
||||
sha256sum $O/*.full
|
||||
date -u +%FT%TZ
|
||||
@@ -0,0 +1,35 @@
|
||||
#!/usr/bin/env bash
|
||||
# Install the window-policy A/B inputs on rnr5090 (run on the server from the directory that holds the scripts):
|
||||
# bash windowpolicy-install.sh <repo scripts/e2e dir> [bin dir under dt/ ...]
|
||||
# Copies the A/B tools to /data/leleka-e2e/window-policy/tools and the repository's scripts/e2e (run-e2e.sh and its client files) to /data/leleka-e2e/window-policy/scripts/e2e
|
||||
# (read-only afterwards) and writes MANIFEST.sha256 with the digest of every input a run depends on: the tools, the e2e scripts, the draft-round harness helper,
|
||||
# the binaries named on the command line, the long-session client, the upstream profile and the corpus manifest. windowpolicy-ab.sh refuses to start on a mismatch.
|
||||
set -euo pipefail
|
||||
WP=/data/leleka-e2e/window-policy
|
||||
DRT=/data/leleka-e2e/draft-round/tools
|
||||
D=/data/leleka-e2e/decode/dt
|
||||
SRC=$(cd "$(dirname "$0")" && pwd)
|
||||
E2E=$(cd "${1:?usage: windowpolicy-install.sh <scripts/e2e dir> [bin ...]}" && pwd)
|
||||
shift
|
||||
chmod -R u+w "$WP/tools" "$WP/scripts" 2>/dev/null || true
|
||||
mkdir -p "$WP/tools"
|
||||
for f in windowpolicy-ab.sh windowpolicy-analyze.py windowpolicy-replay.sh windowpolicy-replay-summary.py windowpolicy-id.sh windowpolicy-install.sh; do
|
||||
if [ -e "$SRC/$f" ]; then install -m 0555 "$SRC/$f" "$WP/tools/$f"; fi
|
||||
done
|
||||
rm -rf "$WP/scripts"
|
||||
mkdir -p "$WP/scripts/e2e"
|
||||
for f in "$E2E"/*.sh "$E2E"/*.py; do
|
||||
if [ -f "$f" ]; then install -m 0555 "$f" "$WP/scripts/e2e/$(basename "$f")"; fi
|
||||
done
|
||||
chmod a-w "$WP/tools" "$WP/scripts/e2e" "$WP/scripts"
|
||||
{
|
||||
sha256sum "$WP"/tools/* "$WP"/scripts/e2e/* "$DRT"/ts-wrap.sh
|
||||
for b in "$@"; do
|
||||
for x in leleka-inference leleka-daemon leleka-cli strata-next; do
|
||||
sha256sum "$D/$b/$x"
|
||||
done
|
||||
done
|
||||
sha256sum "$D/tools/long-session.py" /data/leleka-e2e/decode/assets/expert-profile-upstream.bin /data/leleka-e2e/decode/corpus/MANIFEST.txt
|
||||
} >"$WP/MANIFEST.sha256.new"
|
||||
mv "$WP/MANIFEST.sha256.new" "$WP/MANIFEST.sha256"
|
||||
echo "installed; $(wc -l <"$WP/MANIFEST.sha256") inputs in $WP/MANIFEST.sha256"
|
||||
@@ -0,0 +1,45 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Per-arm summary of windowpolicy-replay.sh: REPLAY PASS lines (warm-up pass discarded), tokens / decode time / rounds summed over the passes of an arm,
|
||||
the per-pass tok/s, and the paired difference to the first arm of every repetition. usage: windowpolicy-replay-summary.py <replay.full>"""
|
||||
import re, statistics as st, sys
|
||||
|
||||
# the REPLAY PASS line rounds the decode time to 0.1 s (1.2 % of a pass): the per-request lines carry decode_ms to 0.1 ms, so the passes are rebuilt from them
|
||||
reqs = {}
|
||||
labels = {}
|
||||
for ln in open(sys.argv[1], errors="replace"):
|
||||
m = re.match(r"REPLAY #(\d+) pass=(\d+) (\S+) arm=(\S+) .*? produced=(\d+) rounds=(\d+) tok_per_round=\S+ decode_ms=([\d.]+)", ln)
|
||||
if m:
|
||||
n, ps, lab, arm, produced, rounds, ms = m.groups()
|
||||
r = reqs.setdefault(int(ps), dict(lab=lab, arm=arm, tok=0, sec=0.0, rounds=0))
|
||||
r["tok"] += int(produced)
|
||||
r["sec"] += float(ms) / 1000.0
|
||||
r["rounds"] += int(rounds)
|
||||
passes = []
|
||||
for ps, r in sorted(reqs.items()):
|
||||
passes.append(dict(n=ps, lab=r["lab"], arm=r["arm"], tps=r["tok"] / r["sec"], tok=r["tok"], sec=r["sec"], rounds=r["rounds"]))
|
||||
rows = [p for p in passes if p["lab"] != "warm"]
|
||||
arms = []
|
||||
for p in rows:
|
||||
if p["arm"] not in arms:
|
||||
arms.append(p["arm"])
|
||||
print("passes %d (+%d warm-up), arms %d" % (len(rows), len(passes) - len(rows), len(arms)))
|
||||
print("%-34s %3s %9s %8s %9s %9s per-pass tok/s" % ("arm", "n", "tok/s", "sd", "tok/round", "ms/round"))
|
||||
by = {}
|
||||
for a in arms:
|
||||
v = [p for p in rows if p["arm"] == a]
|
||||
by[a] = v
|
||||
tps = [p["tps"] for p in v]
|
||||
tok, sec, rd = sum(p["tok"] for p in v), sum(p["sec"] for p in v), sum(p["rounds"] for p in v)
|
||||
print("%-34s %3d %9.2f %8.2f %9.3f %9.3f %s" % (a, len(v), tok / sec, st.pstdev(tps) if len(tps) > 1 else 0.0, tok / rd, 1000 * sec / rd, " ".join("%.1f" % x for x in tps)))
|
||||
ref = arms[0]
|
||||
print("\npaired against %s (same repetition, same forced text): mean difference tok/s (se), arms better in n of N" % ref)
|
||||
reps = sorted({p["lab"] for p in rows})
|
||||
for a in arms[1:]:
|
||||
d = []
|
||||
for r in reps:
|
||||
x = [p for p in by[a] if p["lab"] == r]
|
||||
y = [p for p in by[ref] if p["lab"] == r]
|
||||
if x and y:
|
||||
d.append(x[0]["tps"] - y[0]["tps"])
|
||||
if len(d) > 1:
|
||||
print("%-34s %+7.2f (se %.2f) %d of %d [%s]" % (a, st.mean(d), st.stdev(d) / len(d) ** 0.5, sum(1 for z in d if z > 0), len(d), " ".join("%+.1f" % z for z in d)))
|
||||
@@ -0,0 +1,53 @@
|
||||
#!/usr/bin/env bash
|
||||
# window-policy screening: teacher-forced replay of the 256k-class capture night5-long-256k (5 requests, prompts 46k .. 243k tokens, the recorded reply decoded
|
||||
# exactly, MAX_NEW forced tokens each), PRODUCTION decode shape (auto expert slots, seed off, adaptive tier swaps every 4 rounds, chain kernels, upstream ranked profile,
|
||||
# prefix cache reply@8192, PCIe share 0.45), several window policies in ONE process on the SAME forced text (LELEKA_SPEC_ARMS), so the arms differ only in how they
|
||||
# speculate: tokens per round, ms per round and decode tok/s of every arm come from identical work, rotated over the repetitions. HOLDER JOB (rnr5090).
|
||||
# RT_BIN test binary directory name under /data/leleka-e2e/decode/dt (required, e.g. rt-wp1)
|
||||
# ARMS LELEKA_SPEC_ARMS list (required): fixed4@0.5,adaptive@0,adaptive@0.7,adaptive@0~step=0.3 ... ; arm 0 is also the warm-up pass (discarded)
|
||||
# REPS repetitions of the arm list (default 4) MAX_NEW forced tokens per request (default 240)
|
||||
# CAPDIR capture directory (default the night5-long-256k capture; /data/leleka-e2e/window-policy/capture/corpus245 = the 245k corpus session of the e2e A/B)
|
||||
# OUT output directory (required) ENVX extra KEY=VALUE words for the process (e.g. LELEKA_SM120_ATTN_DAILY_MTP=1)
|
||||
# One model load; a pass is ~1 min with the prefix cache warm. Summary: windowpolicy-replay-summary.py.
|
||||
set -uo pipefail
|
||||
LOCK=/data/leleka-e2e/gpu.lock
|
||||
D=/data/leleka-e2e/decode/dt
|
||||
RT=${RT_BIN:?RT_BIN}; ARMS=${ARMS:?ARMS}; O=${OUT:?OUT}; REPS=${REPS:-4}; MAX_NEW=${MAX_NEW:-240}
|
||||
mkdir -p "$O"
|
||||
export LD_LIBRARY_PATH=$HOME/cuda-toolkits/cublas-12.9.1.4/lib:$HOME/cuda-toolkits/13.2.2/lib64:${LD_LIBRARY_PATH:-}
|
||||
A=$HOME/leleka-gates/assets
|
||||
G=$HOME/work/gpu-runs
|
||||
CAP=/data/leleka-e2e/sm120/capture
|
||||
export LELEKA_STRA169_KAR_PROVENANCE=$A/qwen-iq3-s-l2-v4.kar.provenance.json
|
||||
export LELEKA_STRA169_IQ3S_SHARD0=$A/model/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf
|
||||
export LELEKA_STRA169_IQ3S_SHARD1=$A/model/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00002-of-00002.gguf
|
||||
export LELEKA_STRA169_MTP_PACK=$A/data/mtp-rt LELEKA_STRA169_MTP_STAGING=$G/mtp-staging-own LELEKA_ORIGINAL_SERVE_BUDGET_GIB=30
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=yes LELEKA_ORIGINAL_SERVE_PCIE_FRAC=0.45
|
||||
export LELEKA_SMOKE_PROMPT_CACHE=0 LELEKA_SERVE_PROFILE=1 LELEKA_GRAPH_EXEC_REUSE=off
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_PROFILE=/data/leleka-e2e/decode/assets/expert-profile-upstream.bin
|
||||
export LELEKA_ORIGINAL_SERVE_RT_DIR=$A/data/mtp-rt
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS=auto LELEKA_CHAIN=all LELEKA_ORIGINAL_SERVE_SEED=off
|
||||
unset LELEKA_SPEC LELEKA_SPEC_ADAPTIVE LELEKA_SPEC_SUFFIX LELEKA_ORIGINAL_SERVE_ADAPT_EVERY LELEKA_SERVE_DRAFT_AFTER_COMMIT LELEKA_PROMPT_EMBED_ALIAS LELEKA_VRAM_LEDGER LELEKA_DENSE_SLAB LELEKA_FOOTPRINT_LEGACY LELEKA_SM120_ATTN_DAILY_MTP LELEKA_DRAFT_FUSED_COMMIT LELEKA_DRAFT_ROUND
|
||||
CAPDIR=${CAPDIR:-$CAP/night5-long-256k}
|
||||
for f in "$D/$RT" "$CAPDIR" "$LELEKA_ORIGINAL_SERVE_EXPERT_PROFILE"; do [ -e "$f" ] || { echo "missing $f" >&2; exit 3; }; done
|
||||
sha256sum "$D/$RT" "$LELEKA_ORIGINAL_SERVE_EXPERT_PROFILE" | tee "$O/inputs.sha256"
|
||||
echo "arms=$ARMS reps=$REPS max_new=$MAX_NEW capdir=$CAPDIR envx=[${ENVX:-}]" | tee "$O/args.txt"
|
||||
CAPDIR=${CAPDIR:-$CAP/night5-long-256k}
|
||||
shape="reply@8192/8192!orig!fast!nocluster!store!qpf!gpool!mspan"
|
||||
got=0
|
||||
for i in $(seq 1 1080); do
|
||||
if mkdir $LOCK 2>/dev/null; then echo "window-policy replay $(date -u +%FT%TZ)" >$LOCK/owner; got=1; break; fi
|
||||
sleep 5
|
||||
done
|
||||
[ $got = 1 ] || { echo "GPU lock held by: $(cat $LOCK/owner 2>/dev/null)"; exit 3; }
|
||||
avail=$(awk '/MemAvailable/{print int($2/1048576)}' /proc/meminfo); echo "MemAvailable GiB: $avail"
|
||||
if [ "$avail" -lt 60 ]; then echo "abort: less than 60 GiB available"; rm -f $LOCK/owner; rmdir $LOCK; exit 4; fi
|
||||
date -u +%FT%TZ
|
||||
env ${ENVX:-LELEKA_X=1} LELEKA_ORIGINAL_SERVE_REPLAY=yes LELEKA_BRINGUP_TRACE=1 LELEKA_REPLAY_DIR=$CAPDIR LELEKA_PREFIX_TRACE=1 LELEKA_REPLAY_PREFIX_MIB=6000 \
|
||||
LELEKA_REPLAY_MAX_NEW=$MAX_NEW LELEKA_REPLAY_FORCE=1 LELEKA_REPLAY_ARMS="W=$shape" LELEKA_REPLAY_REPS=$REPS LELEKA_REPLAY_SPEC_MIN_P=0 \
|
||||
LELEKA_SPEC_ARMS="$ARMS" LELEKA_SPEC_STATS=1 LELEKA_SPEC_TRACE=1 \
|
||||
"$D/$RT" --ignored --exact --test-threads=1 --nocapture backend::original_serve_replay::original_serve_replay_smoke >"$O/replay.full" 2>&1
|
||||
echo "rc=$?"; date -u +%FT%TZ
|
||||
grep -a -E "^REPLAY PASS|test result|panicked|FAILED|expert cache [0-9]+ slots" "$O/replay.full" | cut -c1-240 | tail -40
|
||||
rm -f $LOCK/owner; rmdir $LOCK 2>/dev/null
|
||||
python3 -I "$(dirname "$0")/windowpolicy-replay-summary.py" "$O/replay.full" | tee "$O/SUMMARY.txt"
|
||||
@@ -80,6 +80,9 @@ chmod 600 "$KEYFILE"
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS=${LELEKA_ORIGINAL_SERVE_EXPERT_SLOTS:-2048}
|
||||
export LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER=${LELEKA_ORIGINAL_SERVE_EXPERT_PER_LAYER:-yes}
|
||||
export LELEKA_ORIGINAL_SERVE_PCIE_FRAC=${LELEKA_ORIGINAL_SERVE_PCIE_FRAC:-0.45}
|
||||
# MTP draft attention = upstream pre75 chunk + merge v2 (bitwise identical to the Original, docs/experiments/draft-round-5090.md): on in the rtx5090-32g profile's
|
||||
# engine_env, so on in the harness too (set LELEKA_SM120_ATTN_DAILY_MTP=0 for the old kernels; only the value 1 enables it).
|
||||
export LELEKA_SM120_ATTN_DAILY_MTP=${LELEKA_SM120_ATTN_DAILY_MTP:-1}
|
||||
# The ranked upstream profile (data/expert-profile.bin, the file crates/deploy pins as EXPERT_PROFILE_SHA256 and vanilla Strata runs) is the default.
|
||||
# The old default, $G/baseline/profile.bin, is a PLACEHOLDER in expert-id order (47 % overlap with the ranked set at 11,280 slots): every e2e run
|
||||
# that used it started from an unranked VRAM set, which showed up as a burst of CPU/PCIe experts in the first 20 windows of each request and an
|
||||
|
||||
Reference in New Issue
Block a user