#!/bin/bash
#SBATCH --job-name CoLA Finetuned             # 任务名叫 example
#SBATCH --gres gpu:a100:1                   # 每个子任务都用一张 A100 GPU
#SBATCH --time 3-1:00:00                    # 子任务 1 天 1 小时就能跑完

echo 'MID SST2 3encoders'
# 0.5
# python main_pipeline_llm_3.py --seed 66 --configs sst2_mid

# 0.1
sed -i 's/"lambda": 0.5/"lambda": 0.1/g' ./configs/sst2_mid.json
# python main_pipeline_llm_3.py --seed 66 --configs sst2_mid

# 0.01
sed -i 's/"lambda": 0.1/"lambda": 0.01/g' ./configs/sst2_mid.json
python main_pipeline_llm_3.py --seed 66 --configs sst2_mid

# 0.001
sed -i 's/"lambda": 0.01/"lambda": 0.001/g' ./configs/sst2_mid.json
python main_pipeline_llm_3.py --seed 66 --configs sst2_mid

# 0.0001
sed -i 's/"lambda": 0.001/"lambda": 0.0001/g' ./configs/sst2_mid.json
python main_pipeline_llm_3.py --seed 66 --configs sst2_mid

# 1e-5
sed -i 's/"lambda": 0.0001/"lambda": 0.00001/g' ./configs/sst2_mid.json
python main_pipeline_llm_3.py --seed 66 --configs sst2_mid

# 0.005
sed -i 's/"lambda": 0.00001/"lambda": 0.005/g' ./configs/sst2_mid.json
python main_pipeline_llm_3.py --seed 66 --configs sst2_mid

# 0.05
sed -i 's/"lambda": 0.005/"lambda": 0.05/g' ./configs/sst2_mid.json
python main_pipeline_llm_3.py --seed 66 --configs sst2_mid

sed -i 's/"lambda": 0.05/"lambda": 0.5/g' ./configs/sst2_mid.json


for seed in {67,68,69}
    do
    # 0.5
    python main_pipeline_llm_3.py --seed $seed --configs sst2_mid

    # 0.1
    sed -i 's/"lambda": 0.5/"lambda": 0.1/g' ./configs/sst2_mid.json
    python main_pipeline_llm_3.py --seed $seed --configs sst2_mid

    # 0.01
    sed -i 's/"lambda": 0.1/"lambda": 0.01/g' ./configs/sst2_mid.json
    python main_pipeline_llm_3.py --seed $seed --configs sst2_mid

    # 0.001
    sed -i 's/"lambda": 0.01/"lambda": 0.001/g' ./configs/sst2_mid.json
    python main_pipeline_llm_3.py --seed $seed --configs sst2_mid

    # 0.0001
    sed -i 's/"lambda": 0.001/"lambda": 0.0001/g' ./configs/sst2_mid.json
    python main_pipeline_llm_3.py --seed $seed --configs sst2_mid

    # 1e-5
    sed -i 's/"lambda": 0.0001/"lambda": 0.00001/g' ./configs/sst2_mid.json
    python main_pipeline_llm_3.py --seed $seed --configs sst2_mid

    # 0.005
    sed -i 's/"lambda": 0.00001/"lambda": 0.005/g' ./configs/sst2_mid.json
    python main_pipeline_llm_3.py --seed $seed --configs sst2_mid

    # 0.05
    sed -i 's/"lambda": 0.005/"lambda": 0.05/g' ./configs/sst2_mid.json
    python main_pipeline_llm_3.py --seed $seed --configs sst2_mid

    sed -i 's/"lambda": 0.05/"lambda": 0.5/g' ./configs/sst2_mid.json

done
