run.sh 333 字节
Newer Older
X
xixiaoyao 已提交
1 2
#!/bin/bash

3
# for gpu memory optimization
X
xixiaoyao 已提交
4 5 6
export FLAGS_sync_nccl_allreduce=0
export FLAGS_eager_delete_tensor_gb=1

R
root 已提交
7
export CUDA_VISIBLE_DEVICES=0
X
xixiaoyao 已提交
8

9 10 11 12 13 14
if [[ ! -d pretrain_model/bert ]]; then
    bash download_pretrain.sh bert
fi

if [[ ! -d pretrain_model/ernie ]]; then
    bash download_pretrain.sh ernie
X
xixiaoyao 已提交
15 16
fi

R
root 已提交
17
python3.5 -u mtl_run.py
X
xixiaoyao 已提交
18