forked from aksholokhov/SimCSE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_dropout.sh
40 lines (36 loc) · 950 Bytes
/
run_dropout.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
#SBATCH --job-name="dropout_0"
#SBATCH --account=dynamicsai
#SBATCH --partition=gpu-a40
#SBATCH --nodes=1
#SBATCH --cpus-per-task=4
#SBATCH --gpus=1
#SBATCH --mem=32G
#SBATCH --time=23:00:00
#SBATCH --output=logs/slurm-%A_%a.out
source ~/.bashrc
module load gcc/11.2.0
module load cuda/11.8.0
conda activate compute
python train.py \
--model_name_or_path bert-base-uncased \
--train_file data/wiki1m_for_simcse.txt \
--output_dir result/dropout_0 \
--num_train_epochs 1 \
--per_device_train_batch_size 64 \
--learning_rate 3e-5 \
--max_seq_length 32 \
--evaluation_strategy steps \
--metric_for_best_model stsb_spearman \
--load_best_model_at_end \
--eval_steps 125 \
--pooler_type cls \
--mlp_only_train \
--overwrite_output_dir \
--temp 0.05 \
--do_train \
--do_eval \
--attention_probs_dropout_prob 0.0 \
--hidden_dropout_prob 0.0 \
--fp16 \
"$@"