File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
datasets/Ali_Display_Ad_Click_DSIN Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 11mkdir big_train
22mkdir big_test
3- wget -O model_input.tar.gz https://bj.bcebos.com/v1/ai-studio-online/53e61a9bcfc54e0581044883d0f876d9841cb4d0a68848f1a1d568a84591da6f ? responseContentDisposition=attachment%3B%20filename%3Dmodel_input .tar.gz& authorization=bce-auth-v1%2F0ef6765c1e494918bc0d4c3ca3e5c6d1%2F2022-04-21T01%3A43%3A00Z%2F-1%2F%2F665a728726f0569e1ef9dd423adfa40a2a5e798f86a8d5d68804a2f21cc03624
3+ wget https://paddlerec. bj.bcebos.com/datasets/Ali_Display_Ad_Click/model_input .tar.gz
44tar -zxvf model_input.tar.gz
55mv model_input/test_feat_input.pkl big_test/
66mv model_input/test_label.pkl big_test/
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ os : windows/linux/macos
5454本文提供了样例数据可以供您快速体验,在任意目录下均可执行。在aitm模型目录的快速执行命令如下:
5555``` bash
5656# 进入模型目录
57- # cd models/rank /aitm # 在任意目录均可运行
57+ # cd models/multitask /aitm # 在任意目录均可运行
5858# 动态图训练
5959python -u ../../../tools/trainer.py -m config.yaml
6060
@@ -66,9 +66,9 @@ python -u ../../../tools/infer.py -m config.yaml
6666在全量数据下模型的指标如下:
6767| 模型 | click auc | purchase auc | batch_size | epoch_num| Time of each epoch |
6868| :------| :------ | :------ | :------ | :------| :------ |
69- | aitm | 0.6186 | 0.6525 | 2000 | 6| 约3小时 |
69+ | aitm | 0.6130 | 0.6166 | 2000 | 6| 约3小时 |
7070
71- 1 . 确认您当前所在目录为PaddleRec/models/rank /aitm
71+ 1 . 确认您当前所在目录为PaddleRec/models/multitask /aitm
72722 . 进入Paddlerec/datasets/ali-cpp_aitm
73733 . 执行命令运行全量数据
7474
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ runner.test_data_dir:test_tipc/data/infer
1313runner.train_data_dir:../../../test_tipc/data/train
1414##
1515trainer:norm_train
16- norm_train:-u tools/trainer.py -m ./models/rank /aitm/config.yaml -o runner.print_interval=2
16+ norm_train:-u tools/trainer.py -m ./models/multitask /aitm/config.yaml -o runner.print_interval=2
1717quant_train:null
1818fpgm_train:null
1919distill_train:null
@@ -27,7 +27,7 @@ null:null
2727===========================infer_params===========================
2828runner.model_save_path:
2929runner.model_init_path:
30- norm_export:-u test_tipc/configs/aitm/to_static.py -m ./models/rank /aitm/config.yaml -o runner.CE=true
30+ norm_export:-u test_tipc/configs/aitm/to_static.py -m ./models/multitask /aitm/config.yaml -o runner.CE=true
3131quant_export:null
3232fpgm_export:null
3333distill_export:null
@@ -37,7 +37,7 @@ null:null
3737infer_model:test_tipc/save_aitm_model
3838infer_export:null
3939infer_quant:False
40- inference:-u test_tipc/configs/aitm/paddle_infer.py --model_name=aitm --reader_file=./models/rank /aitm/reader .py
40+ inference:-u test_tipc/configs/aitm/paddle_infer.py --model_name=aitm --reader_file=./models/multitask /aitm/aitm_reader .py
4141--use_gpu:True|False
4242--enable_mkldnn:True|False
4343--cpu_threads:1|6
Original file line number Diff line number Diff line change @@ -315,8 +315,8 @@ elif [ ${model_name} == "aitm" ]; then
315315 mkdir -p ./test_tipc/data/train
316316 mkdir -p ./test_tipc/data/infer
317317 if [ ${MODE} = " lite_train_lite_infer" ]; then
318- cp -r ./models/rank /aitm/data/sample_data/train/* ./test_tipc/data/train
319- cp -r ./models/rank /aitm/data/sample_data/test/* ./test_tipc/data/infer
318+ cp -r ./models/multitask /aitm/data/sample_data/train/* ./test_tipc/data/train
319+ cp -r ./models/multitask /aitm/data/sample_data/test/* ./test_tipc/data/infer
320320 echo " demo data ready"
321321 elif [ ${MODE} = " whole_train_whole_infer" ]; then
322322 cd ./datasets/ali-cpp_aitm
You can’t perform that action at this time.
0 commit comments