-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathbenchmarks.yml
42 lines (41 loc) · 1.26 KB
/
benchmarks.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
---
config_options: &config_options
requirements_path: requirements.txt
pre_run_commands: [make]
pytorch_yolov4_infer_real_pod4:
<<: *config_options
description:
PyTorch Yolov4 inference benchmark on 4 IPUs using coco val2017 dataset
parameters:
- [img_size, batch_size, device_iterations, max_detections, topk_nums]
- [896, 1, 5, 200, 1800]
- [896, 1, 10, 300, 1468]
- [640, 2, 5, 200, 1200]
- [640, 2, 10, 300, 1300]
- [512, 2, 5, 200, 2600]
- [512, 2, 10, 300, 1400]
- [416, 2, 5, 200, 3000]
- [416, 4, 10, 100, 900]
cmd: >-
mpirun --tag-output --np 4 --allow-run-as-root
python3 run.py
--device-iterations {device_iterations}
--image-size {img_size}
--micro-batch-size {batch_size}
--benchmark
--mode test_inference
--nms-max-detections {max_detections}
--pre-nms-topk-k {topk_nums}
data:
throughput:
regexp: 'throughput: *(.*?) samples\/sec'
latency:
regexp: 'latency avg: *(.*?) ms'
output:
- [Batchsize, "batch_size"]
- [Device iterations, "device_iterations"]
- [Image size, "img_size"]
- [Pre-nms Topk, "topk_nums"]
- [NMS max detections, "max_detections"]
- [samples/sec, "throughput"]
- [latency(ms), "latency"]