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

echo 'SST2 4encoders'

# 5
sed -i 's/"lambda": 0.001/"lambda": 5.0/g' ./configs/sst2_ad_5.json
python main_pipeline_llm_5.py --seed 61 --configs sst2_ad_5


sed -i 's/"lambda": 5.0/"lambda": 0.001/g' ./configs/sst2_ad_5.json
    

for seed in {62,63,64,65,66,67,68,69}
    do

    # 0.001
    python main_pipeline_llm_5.py --seed $seed --configs sst2_ad_5

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

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

    # 1
    sed -i 's/"lambda": 0.1/"lambda": 1.0/g' ./configs/sst2_ad_5.json
    python main_pipeline_llm_5.py --seed $seed --configs sst2_ad_5

    # 5
    sed -i 's/"lambda": 1.0/"lambda": 5.0/g' ./configs/sst2_ad_5.json
    python main_pipeline_llm_5.py --seed $seed --configs sst2_ad_5


    sed -i 's/"lambda": 5.0/"lambda": 0.001/g' ./configs/sst2_ad_5.json
    
done
