Buckets:

Pranav2748's picture
download
raw
1.57 kB
#!/usr/bin/env bash
# Run ONE ablation cell (build + eval) of the W4A8 SVDQuant grid, with its own logs.
# Invoked one-at-a-time by the operator (see saved feedback: no batched bg loops).
#
# Usage: bash scripts/run_cell.sh <RANK> <variant> <WHITEN> <REFINE>
# e.g. bash scripts/run_cell.sh 16 plain 0 0
# bash scripts/run_cell.sh 16 whiten 1 0
# bash scripts/run_cell.sh 16 plain_refine 0 3
# bash scripts/run_cell.sh 16 whiten_refine 1 3
set -uo pipefail
cd /workspace
source .venv/bin/activate
export PYTHONPATH=.
export HF_HOME=/workspace/.cache/huggingface
R="$1"; name="$2"; wh="$3"; rf="$4"
OUT="outputs/abl_c300_r${R}_${name}"
blog="tmp/abl_r${R}_${name}.build.log"
elog="tmp/abl_r${R}_${name}.eval.log"
echo ">>> [$(date +%H:%M:%S)] BUILD r=$R variant=$name (WHITEN=$wh REFINE=$rf) -> $OUT"
RANK=$R ALPHA=0.5 WGROUP=64 N_CALIB=300 WHITEN=$wh REFINE=$rf \
CALIB_DIR=data/monet_cache MB=4 OUT="$OUT" \
python3 -u scripts/12_build_svdquant.py 2>&1 | tee "$blog"
if ! grep -q "DONE ->" "$blog"; then
echo "!!! BUILD FAILED r=$R $name — see $blog"; tail -6 "$blog"; exit 1
fi
echo ">>> [$(date +%H:%M:%S)] EVAL r=$R variant=$name"
python3 -u scripts/13_eval_svdquant.py "$OUT" 2>&1 | tee "$elog"
if ! grep -q "saved .* montages" "$elog"; then
echo "!!! EVAL FAILED r=$R $name — see $elog"; tail -6 "$elog"; exit 1
fi
echo "=== CELL DONE r=$R $name :: $(grep 'eval_vel_loss=' "$elog" | tail -1) ::"
grep -E "rel-err: mean|output-recon rel-err|refinement: best-iter|x smaller" "$blog" | sed 's/^/ /'

Xet Storage Details

Size:
1.57 kB
·
Xet hash:
f6943d1e7c7c02353aad2eabb3c2ad238d95279f05c987b0afded80ac799d07d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.