#!/bin/bash
dataset_target='superglue-rte'
json_file="./attempt/configs/fewshot/target_${dataset_target}.json"
fewshot_num=20
attn_method='weight_more'
#target_prompt_embedding_path="./outputs/self_training/saved_label_${dataset_target}/prefix_embeddings_0.pt"
#attn_path_sub="./outputs/self_training/saved_label_${dataset_target}"
#layer_norm_dir="./outputs/self_training/saved_label_${dataset_target}"
#checkpoint_dir="./outputs/self_training/saved_label_${dataset_target}"
resume_from_checkpoint="./outputs/self_training/saved_label_${dataset_target}"
#  --load_attention \
#  --load_layer_norm \
#  --layer_norm_dir $layer_norm_dir \
#  --target_prompt_embedding_path $target_prompt_embedding_path \
#  --attn_path_sub $attn_path_sub \
export CUDA_VISIBLE_DEVICES='1'
save_dir="./outputs/self_training/sf_fewshot_${dataset_target}"
mkdir -p $save_dir

#nohup python \
#  attempt/seq2seq/few_shot.py $json_file $fewshot $datase_target $attn_method\
#  > ${save_dir}/debug.log 2>&1 &
nohup python \
  attempt/seq2seq/few_shot.py \
  --json_file $json_file \
  --dataset_target $dataset_target \
  --fewshot \
  --fewshot_num $fewshot_num \
  --attn_method $attn_method \
  --save_dir $save_dir \
  --resume_from_checkpoint $resume_from_checkpoint \
  > ${save_dir}/debug.log 2>&1 &