LNPBench / code /scripts /mode_ablate.sh
eduzrh's picture
LNPBench: code, caches, results and figures
7462f1a verified
Raw History Blame Contribute Delete
812 Bytes
#!/bin/bash
# Ablation ladder for the discrete-mode decoders (LaRIN-style ladder for
# PhysMode-LNP, CoDiffGRN-style ladder for DiffMode-LNP).
# Usage: ./mode_ablate.sh physmode | ./mode_ablate.sh diffmode
export PATH=/root/miniconda3/bin:$PATH
cd /root/autodl-tmp/lnpbench
export PYTHONPATH=src OMP_NUM_THREADS=2
FAM=$1
if [ "$FAM" = "physmode" ]; then
MODELS="physmode_base physmode_novq physmode_hard physmode_lin physmode_resonly physmode_k8 physmode_k32"
else
MODELS="diffmode_base diffmode_hard diffmode_lin diffmode_tass"
fi
for M in $MODELS; do
CUDA_VISIBLE_DEVICES=0 python scripts/run_benchmark.py --models $M \
--protocols external --folds 0 --device cuda --epochs 30 --batch-size 256 \
--seeds 0 --tag $M --out results/abl_${M}.csv > logs/abl_${M}.log 2>&1
done
echo ABL_DONE_$FAM