forked from rycolab/probing-via-prompting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_dp_mlp_deep.sh
44 lines (40 loc) · 899 Bytes
/
run_dp_mlp_deep.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
41
42
43
44
#!/bin/bash -l
#SBATCH -n 4
#SBATCH --cpus-per-task=4
#SBATCH --time=48:00:00
#SBATCH --mem-per-cpu=4096
#SBATCH --gpus=1
#SBATCH --gres=gpumem:10240m
module load eth_proxy
module load gcc/9.3.0
module load cuda/11.7.0
conda activate PvP
wandb login
export TASK_NAME=ner
export CUDA_LAUNCH_BLOCKING=1
python3 run_dp.py \
--seed 42 \
--n_gpu 1 \
--do_train \
--do_eval \
--per_device_train_batch_size 32 \
--per_device_eval_batch_size 32 \
--gpt2_name_or_path gpt2 \
--data_dir ontonotes/dp/ \
--task $TASK_NAME \
--output_dir outputs/dp/mlp/$TASK_NAME/ \
--overwrite_output_dir \
--cache_dir cache/ \
--mlp_dropout 0.0 \
--num_train_epochs 256.0 \
--learning_rate 1e-5 \
--weight_decay 0.0 \
--mlp_dim 512 \
--mlp_layers 96 \
--fp16 \
--use_mlp True \
--dev \
--save_strategy epoch \
--evaluation_strategy epoch \
--randomized \
# --chinese True