21 lines
1.0 KiB
Bash
21 lines
1.0 KiB
Bash
#!/bin/bash
|
|
# Run the q8_1 quantizer identity / extreme-activation probe over every sealed asset that carries one.
|
|
# bash scripts/q8/probe_all.sh OLD_DIR NEW_DIR OLD_DIR/NEW_DIR hold the PTX files before and after (same file names)
|
|
# Needs the GPU (one small context, a few hundred MB) and tools/q8-probe built (tools/q8-probe/build.sh).
|
|
set -u
|
|
OLD=${1:?old dir}
|
|
NEW=${2:?new dir}
|
|
PROBE=${PROBE:-$(dirname "$0")/../../tools/q8-probe/q8_probe}
|
|
export LD_LIBRARY_PATH=$HOME/cuda-toolkits/13.2.2/lib64:${LD_LIBRARY_PATH:-}
|
|
rc=0
|
|
probe() { echo "=== $1 ($2)"; "$PROBE" "$OLD/$1" "$NEW/$1" "$2" ${3:-} || rc=1; }
|
|
probe mtp_original_full_head_native.ptx head
|
|
probe native_head_native.ptx head
|
|
probe mtp_original_tail.ptx tail
|
|
probe mtp_original_full_checks.ptx tail
|
|
probe mtp_original_full_head_iq.ptx iq quantize_q8_1_kernelEPKfP10block_q8_1x
|
|
probe native_head_iq.ptx iq quantize_q8_1_kernelEPKfP10block_q8_1x
|
|
probe chain_window.ptx chain
|
|
[ $rc = 0 ] && echo "probe_all: every asset OK" || echo "probe_all: FAILED"
|
|
exit $rc
|