Files
leleka/scripts/e2e/decode/draftround-install.sh
T
Pavlo RatushnyiandClaude Sonnet 5.5 28d74a2efd draft-round: fused verifier commit graph (LELEKA_DRAFT_FUSED_COMMIT=on, opt-in, sm_120 only): 182 nodes -> 4
The accepted-prefix commit graph replayed each of the 36 GDN layers (conv history commit + recurrence replay through the accepted tokens) and each of the 12 QSA layers (tail restore +
8 row appends) as its own kernels. Two sealed kernels do all layers in one launch each: draft_commit_gdn_layers (precise math like original_verify.cu; the replay's output path,
which nothing reads, is not computed; the state-independent loads of all tokens are issued first) and draft_commit_qsa_layers (fast math like the resealed original_verify_qsa.cu;
one block per layer, rows in order). Model-free probe tools/draft-round/commit_probe.cpp: every state byte identical to the Original's kernels on 36 GDN and 60 QSA random
cases (n_keep 0..8, three RoPE settings, positions around block edges, holes); in a graph the GDN part is 346 -> 156 us, the QSA part 72 -> 4.5 us. Replay gate: draft-round-id1
(fused alone, DAILY alone and both): 2057/2057 top-16 logprob rows and 1036/1036 draft traces bit-identical, A/A exact.

Sealed with scripts/gpu-bringup (extra-seal-plan.json group draft-round, nvcc 13.2.86); ptx-sm86/MANIFEST.json records them as not built for sm_86 (record_commit fuses only on cc 12).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 13:00:32 +01:00

24 lines
1.7 KiB
Bash

#!/usr/bin/env bash
# Install the draft-round measurement inputs on rnr5090 (run on the server from the directory that holds the scripts):
# bash draftround-install.sh [extra bin dir under dt/ ...]
# Copies the tools to /data/leleka-e2e/draft-round/tools (read-only afterwards) and writes MANIFEST.sha256 with the digest of every input a run depends on: the tools, the CUPTI
# tracer, the ours binaries named on the command line (bin-main-ffd9322 is always included), the harness, the upstream profile and the corpus manifest. Jobs refuse to start on a mismatch.
set -euo pipefail
DR=/data/leleka-e2e/draft-round
D=/data/leleka-e2e/decode/dt
SRC=$(cd "$(dirname "$0")" && pwd)
mkdir -p "$DR/tools"
chmod -R u+w "$DR/tools" 2>/dev/null || true
for f in draftround-ab.sh draftround-id.sh draftround-idcmp.py draftround-kernels.py draftround-install.sh ts-wrap.sh draftround-analyze.py; do [ -e "$SRC/$f" ] && install -m 0444 "$SRC/$f" "$DR/tools/$f"; done
[ -e "$DR/tools/libleleka_cupti_trace.so" ] || install -m 0444 "$HOME/work/cupti-trace/libleleka_cupti_trace.so" "$DR/tools/libleleka_cupti_trace.so"
chmod a-w "$DR/tools"
BINS="bin-main-ffd9322 $*"
{
sha256sum "$DR"/tools/* "$DR"/cupti/lib/libcupti.so.2026.1.2
for b in $BINS; do for x in leleka-inference leleka-daemon leleka-cli strata-next; do echo "$(sha256sum "$D/$b/$x" | cut -d' ' -f1) $D/$b/$x"; done; done
sha256sum "$D/tools/long-session.py" "$D/scripts/e2e/run-e2e.sh" "$D/scripts/e2e/sample_env.sh" \
/data/leleka-e2e/decode/assets/expert-profile-upstream.bin /data/leleka-e2e/decode/corpus/MANIFEST.txt
} >"$DR/MANIFEST.sha256.new"
mv "$DR/MANIFEST.sha256.new" "$DR/MANIFEST.sha256"
echo "installed; $(wc -l <"$DR/MANIFEST.sha256") inputs in $DR/MANIFEST.sha256"