forked from NVIDIA-Merlin/HugeCTR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
165 lines (150 loc) · 5.44 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
stages:
- build
- test
image: gitlab-master.nvidia.com/zehuanw/hugectr:devel
variables:
GIT_SUBMODULE_STRATEGY: recursive
FF_USE_LEGACY_GIT_CLEAN_STRATEGY: 1
GIT_DEPTH: 1
build_single:
tags:
- hugectr
stage: build
artifacts:
paths:
- ${CI_PROJECT_DIR}/build_single/
expire_in: 1 week
script:
- cd ${CI_PROJECT_DIR}
- mkdir build_single
- cd build_single
- cmake -DCMAKE_BUILD_TYPE=Release -DSM=70 ..
- make -j
build_multi:
tags:
- hugectr
stage: build
artifacts:
paths:
- ${CI_PROJECT_DIR}/build_multi/
expire_in: 1 week
script:
- cd ${CI_PROJECT_DIR}
- mkdir build_multi
- cd build_multi
- cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_MULTINODES=ON -DSM=70 ..
- make -j
criteo:
tags:
- hugectr
stage: test
needs:
- job: build_single
artifacts: true
script:
- cd /dataset/criteo_kaggle/criteo
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/criteo_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/criteo_8gpu.json
- cd /dataset/criteo_kaggle/criteo_multi_slots
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/criteo_multi_slots_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/criteo_multi_slots_8gpu.json
- cd /dataset/criteo_kaggle/criteo_parquet_multi_slots
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/criteo_parquet_multi_slots_1gpu.json
dcn:
tags:
- hugectr
stage: test
needs:
- job: build_single
artifacts: true
script:
- cd /dataset/criteo_kaggle/dcn
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dcn_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dcn_8gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dcn_localized_embedding_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dcn_localized_embedding_8gpu.json
- cd /dataset/criteo_kaggle/dcn_parquet
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dcn_parquet_distributed_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dcn_parquet_distributed_8gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dcn_parquet_localized_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dcn_parquet_localized_8gpu.json
wdl_deepfm:
tags:
- hugectr
stage: test
needs:
- job: build_single
artifacts: true
script:
- cd /dataset/criteo_kaggle/wdl
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/wdl_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/wdl_8gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/wdl_fp16_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/wdl_fp16_8gpu.json
- cd /dataset/criteo_kaggle/deepfm
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/deepfm_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/deepfm_8gpu.json
dlrm:
tags:
- hugectr
stage: test
needs:
- job: build_single
artifacts: true
script:
- cd /dataset/criteo_kaggle/dcn
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dlrm_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dlrm_8gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dlrm_fp16_1gpu.json
- ${CI_PROJECT_DIR}/build_single/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dlrm_fp16_8gpu.json
unit_tests:
tags:
- hugectr
stage: test
needs:
- job: build_single
artifacts: true
script:
- cd ${CI_PROJECT_DIR}/build_single/bin
- ./layers_test
- ./embedding_test
- ./checker_test
- ./data_reader_test
- ./device_map_test
- ./heap_test
- ./loss_test
- ./optimizer_test
- ./regularizers_test
- ./parser_test
- ./session_test
criteo_multinode:
tags:
- hugectr
stage: test
needs:
- job: build_multi
artifacts: true
script:
- cd /dataset/criteo_kaggle/criteo
- mpirun --allow-run-as-root -np 2 ${CI_PROJECT_DIR}/build_multi/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/criteo_2node_4gpu.json
dcn_multinode:
tags:
- hugectr
stage: test
needs:
- job: build_multi
artifacts: true
script:
- cd /dataset/criteo_kaggle/dcn
- mpirun --allow-run-as-root -np 4 ${CI_PROJECT_DIR}/build_multi/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dcn_4node_2gpu.json
dlrm_multinode:
tags:
- hugectr
stage: test
needs:
- job: build_multi
artifacts: true
script:
- cd /dataset/criteo_kaggle/dcn
- mpirun --allow-run-as-root -np 4 ${CI_PROJECT_DIR}/build_multi/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dlrm_fp16_4node_2gpu.json
- mpirun --allow-run-as-root -np 4 ${CI_PROJECT_DIR}/build_multi/bin/huge_ctr --train ${CI_PROJECT_DIR}/test/scripts/dlrm_fp32_4node_2gpu.json