-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrun_model_n2c2.sh
More file actions
41 lines (34 loc) · 1.71 KB
/
run_model_n2c2.sh
File metadata and controls
41 lines (34 loc) · 1.71 KB
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 --partition=chip-gpu # queue to be used
#SBATCH --account=chip
#SBATCH --time=12:00:00 # Running time (in hours-minutes-seconds)
#SBATCH --job-name=conorm # Job name
#SBATCH --mail-type=BEGIN,END,FAIL # send and email when the job begins, ends or fails
#SBATCH --mail-user=dongfang.xu@childrens.harvard.edu # Email address to send the job status
#SBATCH --output=log/1_0.85_fixed_concept_umls+train+dev%j.txt # Name of the output file
#SBATCH --error=log/1_0.85_fixed_concept_umls+train+dev%j.err
#SBATCH --nodes=1 # Number of gpu nodes
#SBATCH --gres=gpu:Titan_RTX:1 # Number of gpu devices on one gpu node
pwd; hostname; date
module load singularity
OUTPUT_DIR=/temp_work/ch223150/outputs/share/1_0.85_fixed_concept_umls+train+dev_umls+train_triplet_ontology+train_all_e20_b400_seq16_5e5_sc45_m0.35
singularity exec -B $TEMP_WORK --nv /temp_work/ch223150/image/hpc-ml_centos7-python3.7-transformers4.4.1.sif python3.7 train_system_conceptnorm.py \
--model_name_or_path /temp_work/ch223150/outputs/n2c2/bert/ \
--data_dir /home/ch223150/projects/Concept_Norm/data/n2c2/joint_input/umls+data/ \
--output_dir $OUTPUT_DIR \
--task_name concept_normalization \
--do_train \
--do_eval \
--do_predict \
--per_device_train_batch_size 128 \
--num_train_epochs 10 \
--overwrite_output_dir true \
--overwrite_cache true \
--max_seq_length 16 \
--token true \
--label_names concept_labels \
--pad_to_max_length true \
--learning_rate 3e-5 \
--margin 0.45 \
--scale 30 \
--concept_embeddings_pre true