Download code/scripts/mode_ablate.sh from eduzrh/LNPBench: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/datasets/eduzrh/LNPBench/resolve/main/code/scripts/mode_ablate.sh
- Command line
-
hf download hf://datasets/eduzrh/LNPBench/code/scripts/mode_ablate.sh
-
curl -L -o mode_ablate.sh https://huggingface.co/datasets/eduzrh/LNPBench/resolve/main/code/scripts/mode_ablate.sh
812 Bytes
| # 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 |