The draft step attends over the 32,768-cell MTP window (512 chunks, one query): with the opt-in, the Original chunk kernel and chain_qsa_decode_merge_n of that step become sm120_attn_daily.ptx's leleka_qsa_decode_chunk_daily / leleka_qsa_decode_merge_v2 (module slot 22 after the chain slot; the window_ids pre-launch keys on the new chunk entry too). sm120_probe `attn512` byte-compares the pair against the Original on the draft shape and times them; it has not been run yet (no GPU slot), so the switch stays default off. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
16 lines
756 B
Bash
16 lines
756 B
Bash
#!/usr/bin/env bash
|
|
# Build the sm120 decode probe in WSL (never on the server) and collect the PTX it compares.
|
|
# tools/decode-sm120/build.sh [OUTDIR] default OUTDIR=$HOME/sm120-bin
|
|
set -euo pipefail
|
|
here="$(cd "$(dirname "$0")" && pwd)"
|
|
root="$(cd "$here/../.." && pwd)"
|
|
out="${1:-$HOME/sm120-bin}"
|
|
nvcc="${NVCC:-$HOME/cuda-toolkits/13.2.2/bin/nvcc}"
|
|
mkdir -p "$out/ptx"
|
|
"$nvcc" -O2 -std=c++17 "$here/sm120_probe.cpp" -lcuda -o "$out/sm120_probe"
|
|
for f in mtp_original_full_attention original_verify_window_moe_experts mtp_original_full_head_iq chain_window sm120_attn_daily sm120_gu_swiglu; do
|
|
cp "$root/crates/cuda-driver/src/$f.ptx" "$out/ptx/$f.ptx"
|
|
done
|
|
sha256sum "$out"/sm120_probe "$out"/ptx/* > "$out/SHA256SUMS"
|
|
ls -la "$out" "$out/ptx"
|