File tree Expand file tree Collapse file tree 4 files changed +108
-0
lines changed
tests/test_tipc/static/dp Expand file tree Collapse file tree 4 files changed +108
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ model_item=bert_large_seqlen512
16
+ model=bert
17
+ bs_item=4
18
+ fp_item=fp16
19
+ run_mode=DP
20
+ device_num=N1C1
21
+ max_epochs=1000
22
+ num_workers=0
23
+
24
+ # get data
25
+ bash ./test_tipc/static/dp/${model} /benchmark_common/prepare.sh
26
+ # run
27
+ bash ./test_tipc/static/dp/${model} /benchmark_common/run_benchmark.sh ${model_item} ${bs_item} ${fp_item} ${run_mode} ${device_num} ${max_epochs} ${num_workers} 2>&1 ;
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ model_item=bert_large_seqlen512
16
+ model=bert
17
+ bs_item=4
18
+ fp_item=fp32
19
+ run_mode=DP
20
+ device_num=N1C1
21
+ max_epochs=1000
22
+ num_workers=0
23
+
24
+ # get data
25
+ bash ./test_tipc/static/dp/${model} /benchmark_common/prepare.sh
26
+ # run
27
+ bash ./test_tipc/static/dp/${model} /benchmark_common/run_benchmark.sh ${model_item} ${bs_item} ${fp_item} ${run_mode} ${device_num} ${max_epochs} ${num_workers} 2>&1 ;
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ model_item=gpt2
16
+ model=gpt
17
+ bs_item=8
18
+ fp_item=fp16
19
+ run_mode=DP
20
+ device_num=N1C1
21
+ max_epochs=200
22
+ num_workers=0
23
+
24
+ # get data
25
+ bash ./test_tipc/static/dp/${model} /benchmark_common/prepare.sh
26
+ # run
27
+ bash ./test_tipc/static/dp/${model} /benchmark_common/run_benchmark.sh ${model_item} ${bs_item} ${fp_item} ${run_mode} ${device_num} ${max_epochs} ${num_workers} 2>&1 ;
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ model_item=gpt3
16
+ model=gpt
17
+ bs_item=8
18
+ fp_item=fp16
19
+ run_mode=DP
20
+ device_num=N1C1
21
+ max_epochs=200
22
+ num_workers=0
23
+
24
+ # get data
25
+ bash ./test_tipc/static/dp/${model} /benchmark_common/prepare.sh
26
+ # run
27
+ bash ./test_tipc/static/dp/${model} /benchmark_common/run_benchmark.sh ${model_item} ${bs_item} ${fp_item} ${run_mode} ${device_num} ${max_epochs} ${num_workers} 2>&1 ;
You can’t perform that action at this time.
0 commit comments