DylanJHJ/APRIL / slurm_ilps /run_rerank_sparse.sh
DylanJHJ's picture
download
raw
1.62 kB
#!/bin/sh
#SBATCH --job-name=sparse
#SBATCH --partition=gpu
#SBATCH --gres=gpu:nvidia_rtx_a6000:1
#SBATCH --mem=32G
#SBATCH --nodes=1
#SBATCH --array=2
#SBATCH --ntasks-per-node=1
#SBATCH --time=72:00:00
#SBATCH --output=%x-%a.out
source $HOME/.bashrc
initconda
conda activate autollmrerank
cd $HOME/APRIL
MODEL=Qwen/Qwen2.5-7B-Instruct
mkdir -p runs/${MODEL##*/}
DATASETS=(
"beir@arguana"
"beir@climate-fever"
"beir@fever/test"
"beir@fiqa/test"
"beir@hotpotqa/test"
"beir@nq"
"beir@quora/test"
"beir@scifact/test"
)
dataset=${DATASETS[$SLURM_ARRAY_TASK_ID]}
benchmark=$(echo $dataset | cut -d'@' -f1)
subset=$(echo $dataset | cut -d'@' -f2)
for r in bm25 splade-v3 nomicai-modernbert-embed qwen3-embed-600m colbert-small;do
for seed in $(seq 1 10); do
mkdir -p "runs/${MODEL##*/}/sample-$seed"
for method in point judge judge_expr setmaxheaptopk rankgpt; do
inital_run=$HOME/runs-and-qrels/runs/${benchmark}/run.${benchmark}.${r}.${subset%%/*}.txt
output_run=runs/${MODEL##*/}/sample-$seed/run.${benchmark}.${r}-rerank-${method}.${subset%%/*}.txt
if [ -f "$output_run" ]; then
echo "Skipping $output_run (already exists)"
continue
fi
echo "=== RUNNING: dataset=$dataset r=$r seed=$seed method=$method ==="
python -m autollmrerank.wrapper_sample \
--sampling=true --sampling_size=32 --sampling_seed=$seed \
--config=$HOME/APRIL/src/autollmrerank/configs/${method}.yaml \
--data.dataset_name=${benchmark}/${subset} \
--data.input_run=${inital_run} \
--data.output_run=${output_run} \
--llm.model_name_or_path=$MODEL
done
done
done

Xet Storage Details

Size:
1.62 kB
·
Xet hash:
963c779ad7df3dd010ee85ec61d42cdf5f3bc8df40a983fea6319742dda28ccf

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