提交 032f657c 编写于 作者: T tangwei

add paddle cloud run

上级 1bdfd06b
......@@ -75,9 +75,7 @@ function _submit() {
function submit_hook() {
_before_submit
_submit
_after_submit
}
......
......@@ -6,19 +6,17 @@ force_reuse_output_path="True"
fs_name="afs://yinglong.afs.baidu.com:9902"
fs_ugi="paddle,paddle"
FLAGS_rpc_deadline=300000
##train data path on hdfs
train_data_path="/user/paddle/benchmark/ctr/train_data_paddle"
thirdparty_path="/user/paddle/benchmark/ctr/thirdparty"
#train data path on hdfs
train_data_path="/user/paddle/benchmark/ctr/train_data_paddle/part_1*"
#test data path on hdfs
#test_data_path="/user/paddle/benchmark/ctr/test_data"
#the output directory on hdfs
output_path="/user/paddle/ly"
#the test data path on hdfs
test_data_path="/user/paddle/benchmark/ctr/test_data"
CPU_NUM=16
GLOG_v=0
FLAGS_communicator_fake_rpc=0
FLAGS_rpc_retry_times=0
GLOG_v=0
FLAGS_rpc_deadline=300000
......@@ -7,4 +7,4 @@
echo "heheda"
python -m paddlerec.run -m paddlerec.models.rank.dnn -e cluster -r worker
python -m paddlerec.run -m config.yaml -e cluster -r worker
......@@ -34,10 +34,10 @@ function package() {
echo "package"
temp=${engine_temp_path}
cp ${engine_workspace}/submit.sh ${temp}
cp ${engine_workspace}/job.sh ${temp}
cp ${engine_workspace}/before_hook.sh ${temp}
cp ${engine_run_config} ${temp}/config.yaml
g_submitfiles="submit.sh before_hook.sh"
g_submitfiles="job.sh before_hook.sh config.yaml"
g_run_cmd="sh job.sh"
}
......@@ -136,6 +136,7 @@ def cluster_engine(args):
flattens = envs.flatten_environs(_envs, "_")
flattens["engine_role"] = args.role
flattens["engine_run_config"] = args.model
flattens["engine_temp_path"] = tempfile.mkdtemp()
update_workspace(flattens)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册