start.sh 544 字节
Newer Older
0
0YuanZhang0 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/bin/bash

gpu_id=0

# start ernie service
# usage: sh start.sh port gpu_id
cd ernie_server
nohup sh start.sh 5118 $gpu_id > ernie.log 2>&1 &
cd ..

# start xlnet service
cd xlnet_server
nohup sh start.sh 5119 $gpu_id > xlnet.log 2>&1 &
cd ..

# start bert service
0
0YuanZhang0 已提交
17
cd bert_server
0
0YuanZhang0 已提交
18
nohup sh start.sh 5120 $gpu_id > bert.log 2>&1 &
0
0YuanZhang0 已提交
19 20
cd ..

0
0YuanZhang0 已提交
21 22 23 24 25
sleep 3
# start main server
# usage: python main_server.py --model_name
# the model_name specifies the model to be used in the ensemble.
nohup python main_server.py --ernie --xlnet > main_server.log 2>&1 &