run_predict.sh 769 字节
Newer Older
1
export FLAGS_eager_delete_tensor_gb=0.0
W
wuzewu 已提交
2
export CUDA_VISIBLE_DEVICES=0
Z
Zeyu Chen 已提交
3

K
kinghuin 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17
# User can select chnsenticorp, nlpcc_dbqa, lcqmc and so on for different task

DATASET="chnsenticorp"
CKPT_DIR="./ckpt_${DATASET}"

# Support ChnSentiCorp	NLPCC_DBQA	LCQMC	MRPC	QQP	SST-2
#         CoLA	QNLI	RTE	MNLI	XNLI
# for XNLI: Specify the language with an underscore like xnli_zh.
#       ar: Arabic      bg: Bulgarian      de: German
#       el: Greek       en: English        es: Spanish
#       fr: French      hi: Hindi          ru: Russian
#       sw: Swahili     th: Thai           tr: Turkish
#       ur: Urdu        vi: Vietnamese     zh: Chinese (Simplified)

Z
zhangxuefei 已提交
18
python -u predict.py --checkpoint_dir $CKPT_DIR --max_seq_len 128 --use_gpu False --dataset=${DATASET} --use_taskid False