-
Notifications
You must be signed in to change notification settings - Fork 9
/
run_bert_encoder
executable file
·32 lines (22 loc) · 1.4 KB
/
run_bert_encoder
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
#PBS -S /bin/bash
#PBS -qgpu
#PBS -l walltime=10:00:00
module load eb
module load Python/3.6.3-foss-2017b
module load CUDA/9.0.176
module load cuDNN/7.0.5-CUDA-9.0.176
export LD_LIBRARY_PATH=$CUDA_HOME/lib64:/hpc/eb/Debian9/cuDNN/7.0.5-CUDA-9.0.176/lib64:$LD_LIBRARY_PATH
export PYTHONPATH=$PYTHONPATH:/home/samigpu/Codes/GoogleLM1b/
export PYTHONPATH=$PYTHONPATH:/home/samigpu/Codes/bert/
export PYTHONPATH=$PYTHONPATH:/home/samigpu/Codes/
cd ~/Codes/Bridge
text_encoder='bert' #universal_large elmo glove tf_token
embedding_type='none'
past_window=6
python encode_stimuli_in_context_bert.py --root /home/samigpu/Codes --text_encoder=$text_encoder --embedding_type=$embedding_type --past_window=$past_window --context_mode=sentence --past_window=$past_window
past_window=5
python encode_stimuli_in_context_bert.py --root /home/samigpu/Codes --text_encoder=$text_encoder --embedding_type=$embedding_type --past_window=$past_window --context_mode=sentence --past_window=$past_window
past_window=4
python encode_stimuli_in_context_bert.py --root /home/samigpu/Codes --text_encoder=$text_encoder --embedding_type=$embedding_type --past_window=$past_window --context_mode=sentence --past_window=$past_window
past_window=3
python encode_stimuli_in_context_bert.py --root /home/samigpu/Codes --text_encoder=$text_encoder --embedding_type=$embedding_type --past_window=$past_window --context_mode=sentence --past_window=$past_window