forked from mlcommons/mlperf-automations
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmeta.yaml
More file actions
634 lines (551 loc) · 15.6 KB
/
meta.yaml
File metadata and controls
634 lines (551 loc) · 15.6 KB
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
alias: app-mlperf-automotive-mlcommons-python
uid: 621240c5d30a437c
automation_alias: script
automation_uid: 5b4e0237da074764
category: "Modular MLPerf inference benchmark pipeline for ABTF model"
# User-friendly tags to find this CM script
tags:
- automotive
- mlcommons
- reference
- run-mlperf-inference
- object-detection
- abtf-model
- demo
# Default environment
default_env:
MLC_MLPERF_LOADGEN_MODE: accuracy
MLC_MLPERF_LOADGEN_SCENARIO: Offline
MLC_MLPERF_LOADGEN_BUILD_FROM_SRC: 'on'
MLC_OUTPUT_FOLDER_NAME: test_results
MLC_MLPERF_RUN_STYLE: test
MLC_TEST_QUERY_COUNT: '10'
MLC_MLPERF_QUANTIZATION: off
MLC_MLPERF_SUT_NAME_IMPLEMENTATION_PREFIX: reference
MLC_MLPERF_SUT_NAME_RUN_CONFIG_SUFFIX: ''
# Map script inputs to environment variables
input_mapping:
device: MLC_MLPERF_DEVICE
count: MLC_MLPERF_LOADGEN_QUERY_COUNT
docker: MLC_RUN_DOCKER_CONTAINER
hw_name: MLC_HW_NAME
imagenet_path: IMAGENET_PATH
max_batchsize: MLC_MLPERF_LOADGEN_MAX_BATCHSIZE
mode: MLC_MLPERF_LOADGEN_MODE
num_threads: MLC_NUM_THREADS
threads: MLC_NUM_THREADS
dataset: MLC_MLPERF_VISION_DATASET_OPTION
model: MLC_MLPERF_CUSTOM_MODEL_PATH
output_dir: OUTPUT_BASE_DIR
power: MLC_MLPERF_POWER
power_server: MLC_MLPERF_POWER_SERVER_ADDRESS
ntp_server: MLC_MLPERF_POWER_NTP_SERVER
max_amps: MLC_MLPERF_POWER_MAX_AMPS
max_volts: MLC_MLPERF_POWER_MAX_VOLTS
regenerate_files: MLC_REGENERATE_MEASURE_FILES
rerun: MLC_RERUN
scenario: MLC_MLPERF_LOADGEN_SCENARIO
test_query_count: MLC_TEST_QUERY_COUNT
clean: MLC_MLPERF_CLEAN_SUBMISSION_DIR
dataset_args: MLC_MLPERF_EXTRA_DATASET_ARGS
target_qps: MLC_MLPERF_LOADGEN_TARGET_QPS
target_latency: MLC_MLPERF_LOADGEN_TARGET_LATENCY
offline_target_qps: MLC_MLPERF_LOADGEN_OFFLINE_TARGET_QPS
server_target_qps: MLC_MLPERF_LOADGEN_SERVER_TARGET_QPS
constantstream_target_qps: MLC_MLPERF_LOADGEN_CONSTANTSTREAM_TARGET_QPS
singlestream_target_latency: MLC_MLPERF_LOADGEN_SINGLESTREAM_TARGET_LATENCY
multistream_target_latency: MLC_MLPERF_LOADGEN_MULTISTREAM_TARGET_LATENCY
output: MLC_MLPERF_OUTPUT_DIR
# Duplicate CM environment variables to the ones used in native apps
env_key_mappings:
MLC_HOST_: HOST_
MLC_ML_: ML_
MLC_MLPERF_TVM: MLPERF_TVM
MLC_MLPERF_DELETE: MLPERF_DELETE
# Env keys which are exposed to higher level scripts
new_env_keys:
- MLC_MLPERF_*
- MLC_DATASET_*
- MLC_PREPROCESSED_DATASET_*
- MLC_HW_NAME
- MLC_COGNATA_ACCURACY_DUMP_FILE
- MLC_OUTPUT_PREDICTIONS_PATH
- MLC_ML_MODEL_*
- MLC_MAX_EXAMPLES
new_state_keys:
- mlperf-inference-implementation
- MLC_SUT_*
# Dependencies on other CM scripts
deps:
# Detect host OS features
- tags: detect,os
# Detect host CPU features
- tags: detect,cpu
# Install system dependencies on a given host
- tags: get,sys-utils-cm
# Detect/install python
- tags: get,python
names:
- python
- python3
# Use cmind inside CM scripts
- tags: get,generic-python-lib,_package.cmind
# CUDA
- tags: get,cuda
enable_if_env:
USE_CUDA:
- yes
names:
- cuda
########################################################################
# Install ML engines via CM
## Onnx CPU Runtime
- tags: get,generic-python-lib,_onnxruntime
names:
- ml-engine-onnxruntime
- onnxruntime
enable_if_env:
MLC_MLPERF_BACKEND:
- onnxruntime
- tvm-onnx
MLC_MLPERF_DEVICE:
- cpu
- rocm
## Onnx CUDA Runtime
- tags: get,generic-python-lib,_onnxruntime_gpu
names:
- ml-engine-onnxruntime-cuda
enable_if_env:
MLC_MLPERF_BACKEND:
- onnxruntime
- tvm-onnx
MLC_MLPERF_DEVICE:
- gpu
skip_if_env:
MLC_MODEL:
- 3d-unet-99
- 3d-unet-99.9
## resnet50 and 3d-unet need both onnxruntime and onnxruntime_gpu on cuda
- tags: get,generic-python-lib,_onnxruntime
enable_if_env:
MLC_MLPERF_BACKEND:
- onnxruntime
MLC_MLPERF_DEVICE:
- gpu
MLC_MODEL:
- 3d-unet-99
- 3d-unet-99.9
- resnet50
- tags: get,generic-python-lib,_onnxruntime_gpu
env:
MLC_GENERIC_PYTHON_PIP_UNINSTALL_DEPS: ""
enable_if_env:
MLC_MLPERF_BACKEND:
- onnxruntime
MLC_MLPERF_DEVICE:
- gpu
MLC_MODEL:
- 3d-unet-99
- 3d-unet-99.9
- resnet50
## Pytorch (CPU)
- tags: get,generic-python-lib,_torch
names:
- ml-engine-pytorch
- pytorch
skip_if_env:
MLC_MLPERF_DEVICE:
- gpu
## Pytorch (CUDA)
- tags: get,generic-python-lib,_torch_cuda
names:
- ml-engine-pytorch
- pytorch
skip_if_env:
MLC_MLPERF_DEVICE:
- cpu
- rocm
## Torchvision (CPU)
- tags: get,generic-python-lib,_torchvision
names:
- ml-engine-torchvision
enable_if_env:
MLC_MLPERF_BACKEND:
- pytorch
- tvm-pytorch
MLC_MLPERF_DEVICE:
- cpu
## Torchvision (CUDA)
- tags: get,generic-python-lib,_torchvision_cuda
names:
- ml-engine-torchvision
enable_if_env:
MLC_MLPERF_BACKEND:
- pytorch
- tvm-pytorch
- ray
MLC_MLPERF_DEVICE:
- gpu
## tensorrt
- tags: get,generic-python-lib,_tensorrt
names:
- ml-engine-tensorrt
enable_if_env:
MLC_MLPERF_BACKEND:
- ray
## torch_tensorrt
- tags: get,generic-python-lib,_torch_tensorrt
names:
- ml-engine-torch_tensorrt
enable_if_env:
MLC_MLPERF_BACKEND:
- ray
## Ray
- tags: get,generic-python-lib,_ray
names:
- ray
enable_if_env:
MLC_MLPERF_BACKEND:
- ray
## Tensorflow
- tags: get,generic-python-lib,_tensorflow
names:
- ml-engine-tensorflow
- tensorflow
enable_if_env:
MLC_MLPERF_BACKEND:
- tf
- tflite
# Install MLPerf inference dependencies
# Creates user conf for given SUT
- tags: generate,user-conf,mlperf,inference,_wg-automotive
names:
- user-conf-generator
# Install MLPerf loadgen
- tags: get,generic-python-lib,_package.mlcommons-loadgen
enable_if_env:
MLC_MLPERF_LOADGEN_BUILD_FROM_SRC:
- "off"
names:
- loadgen
- mlperf-inference-loadgen
- tags: get,loadgen,_wg-automotive
enable_if_any_env:
MLC_MLPERF_LOADGEN_BUILD_FROM_SRC:
- "on"
names:
- loadgen
- mlperf-inference-loadgen
- mlperf-inference-loadgen-from-src
#
# # Download MLPerf inference source
# - tags: get,mlcommons,inference,src
# env:
# MLC_GET_MLPERF_IMPLEMENTATION_ONLY: 'yes'
# names:
# - mlperf-implementation
- tags: get,generic-python-lib,_package.psutil
prehook_deps:
- names:
- remote-run-cmds
tags: remote,run,cmds
enable_if_env:
MLC_ASSH_RUN_COMMANDS:
- "on"
posthook_deps:
- names:
- mlperf-runner
tags: benchmark-mlperf
skip_if_env:
MLC_MLPERF_SKIP_RUN:
- "on"
post_deps:
- tags: save,mlperf,inference,state
names:
- save-mlperf-inference-state
docker:
real_run: false
# Variations to customize dependencies
variations:
# Implementation
python:
group: implementation
default: true
env:
MLC_MLPERF_PYTHON: 'yes'
MLC_MLPERF_IMPLEMENTATION: reference
# ML engine
onnxruntime:
group: framework
env:
MLC_MLPERF_BACKEND: onnxruntime
add_deps_recursive:
ml-model-bevformer:
tags: _onnx
ml-model-ssd:
tags: _onnx
ml-model-deeplabv3-plus:
tags: _onnx
onnxruntime,cpu:
env:
MLC_MLPERF_BACKEND_VERSION: <<<MLC_ONNXRUNTIME_VERSION>>>
onnxruntime,cuda:
env:
MLC_MLPERF_BACKEND_VERSION: <<<MLC_ONNXRUNTIME_GPU_VERSION>>>
ONNXRUNTIME_PREFERRED_EXECUTION_PROVIDER: "CUDAExecutionProvider"
pytorch:
group: framework
default: true
add_deps_recursive:
imagenet-preprocessed:
tags: _NCHW
openimages-preprocessed:
tags: _NCHW
ml-model:
tags: raw,_pytorch
ml-model-bevformer:
tags: _pytorch
ml-model-ssd:
tags: _pytorch
ml-model-deeplabv3-plus:
tags: _pytorch
env:
MLC_MLPERF_BACKEND: pytorch
MLC_MLPERF_BACKEND_VERSION: <<<MLC_TORCH_VERSION>>>
pytorch,cpu:
add_deps_recursive:
pytorch:
env:
MLC_GENERIC_PYTHON_PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu/torch_stable.html
ml-engine-torchvision:
env:
MLC_GENERIC_PYTHON_PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu/torch_stable.html
torchaudio:
env:
MLC_GENERIC_PYTHON_PIP_EXTRA_INDEX_URL: https://download.pytorch.org/whl/cpu/torch_stable.html
# retinanet:
# group: models
# deps:
# - tags: get,generic-python-lib,_opencv-python
# - tags: get,generic-python-lib,_numpy
# - tags: get,generic-python-lib,_pycocotools
#
# env:
# MLC_MODEL: retinanet
# MLC_MLPERF_USE_MLCOMMONS_RUN_SCRIPT: 'yes'
# MLC_MLPERF_LOADGEN_MAX_BATCHSIZE: '1'
abtf-demo-model:
group: models
add_deps_recursive:
automotive-src:
tags: _sha.ee526dc63d9ca2636000343c5d2d16132145719e
deps:
- tags: get,generic-python-lib,_opencv-python
- tags: get,generic-python-lib,_numpy
- tags: get,generic-python-lib,_pycocotools
- tags: get,generic-python-lib,_package.torchmetrics
- tags: get,generic-python-lib,_package.faster-coco-eval
version_max: "1.5.7"
version_max_usable: "1.5.7"
names:
- cocoeval
- tags: get,dataset,raw,mlcommons-cognata
names:
- raw-dataset-mlcommons-cognata
- tags: get,ml-model,abtf-ssd-pytorch,_abtf-mvp
names:
- ml-model-abtf
env:
MLC_MODEL: retinanet
abtf-poc-model:
group: models
default: true
add_deps_recursive:
automotive-src:
tags: _sha.ee526dc63d9ca2636000343c5d2d16132145719e
deps:
- tags: get,generic-python-lib,_opencv-python
- tags: get,generic-python-lib,_numpy
version_max: "1.26.4"
version_max_usable: "1.26.4"
- tags: get,generic-python-lib,_pycocotools
- tags: get,generic-python-lib,_package.torchmetrics
- tags: get,generic-python-lib,_package.faster-coco-eval
version_max: "1.5.7"
version_max_usable: "1.5.7"
names:
- cocoeval
- tags: get,dataset,raw,mlcommons-cognata,_abtf-poc
skip_if_env:
MLC_RUN_STATE_DOCKER:
- 'yes'
names:
- raw-dataset-mlcommons-cognata
- tags: get,ml-model,abtf-ssd-pytorch,_abtf-poc
names:
- ml-model-abtf
env:
MLC_MODEL: retinanet
bevformer:
group: models
add_deps_recursive:
pytorch:
version_max: "2.5.1"
version_max_usable: "2.5.1"
ml-engine-torchvision:
version_max: "0.20.1"
version_max_usable": "0.20.1"
torchaudio:
version_max: "2.5.1"
version_max_usable": "2.5.1"
deps:
- tags: get,generic-python-lib,_package.opencv-python
- tags: get,generic-python-lib,_package.numpy
version_max: "1.26.4"
version_max_usable: "1.26.4"
- tags: get,generic-python-lib,_package.onnx
- tags: get,generic-python-lib,_package.onnxruntime
- tags: get,generic-python-lib,_package.pillow
- tags: get,generic-python-lib,_package.pyquaternion
- tags: get,generic-python-lib,_package.tqdm
- tags: get,generic-python-lib,_package.nuscenes-devkit
- tags: get,preprocessed,dataset,nuscenes,_mlc,_validation
skip_if_env:
MLC_RUN_STATE_DOCKER:
- "yes"
names:
- preprocessed-dataset-mlcommons-nuscenes
- tags: get,ml-model,bevformer,_mlc,_rclone
skip_if_env:
MLC_RUN_STATE_DOCKER:
- "yes"
names:
- ml-model-bevformer
ssd:
group: models
add_deps_recursive:
pytorch:
version_max: "2.3.1"
version_max_usable: "2.3.1"
ml-engine-torchvision:
version_max: "0.18.1"
version_max_usable": "0.18.1"
torchaudio:
version_max: "2.3.1"
version_max_usable": "2.3.1"
deps:
- tags: get,generic-python-lib,_package.Cython
- tags: get,generic-python-lib,_package.scikit-image
- tags: get,generic-python-lib,_package.faster-coco-eval
- tags: get,generic-python-lib,_torchvision
names:
- ml-engine-torchvision
- tags: get,generic-python-lib,_package.torchinfo
- tags: get,generic-python-lib,_package.torchmetrics
- tags: get,generic-sys-util,_libgl1-mesa-glx
- tags: get,generic-python-lib,_package.onnx
- tags: get,generic-python-lib,_package.onnxruntime
- tags: get,generic-python-lib,_package.tqdm
- tags: get,preprocessed,dataset,cognata,_mlc,_2d_obj_det,_validation
skip_if_env:
MLC_RUN_STATE_DOCKER:
- "yes"
names:
- preprocessed-dataset-mlcommons-cognata-ssd
- tags: get,ml-model,ssd,resnet50,_mlc,_rclone
skip_if_any_env:
MLC_RUN_STATE_DOCKER:
- "yes"
names:
- ml-model-ssd
deeplabv3plus:
group: models
add_deps_recursive:
pytorch:
version_max: "2.3.1"
version_max_usable: "2.3.1"
ml-engine-torchvision:
version_max: "0.18.1"
version_max_usable": "0.18.1"
torchaudio:
version_max: "2.3.1"
version_max_usable": "2.3.1"
deps:
- tags: get,generic-python-lib,_package.Cython
- tags: get,generic-python-lib,_package.scikit-image
- tags: get,generic-python-lib,_package.scikit-learn
- tags: get,generic-python-lib,_torchvision
names:
- ml-engine-torchvision
- tags: get,generic-python-lib,_package.torchinfo
- tags: get,generic-python-lib,_package.torchmetrics
- tags: get,generic-sys-util,_libgl1-mesa-glx
- tags: get,generic-python-lib,_package.onnx
- tags: get,generic-python-lib,_package.onnxruntime
- tags: get,generic-python-lib,_package.tqdm
- tags: get,generic-python-lib,_package.ijson
- tags: get,preprocessed,dataset,cognata,_mlc,_segmentation,_validation
skip_if_env:
MLC_RUN_STATE_DOCKER:
- "yes"
names:
- preprocessed-dataset-mlcommons-cognata-deeplabv3-plus
- tags: get,ml-model,deeplabv3-plus,_mlc,_rclone
skip_if_env:
MLC_RUN_STATE_DOCKER:
- "yes"
names:
- ml-model-deeplabv3-plus
# Target devices
cpu:
group: device
default: true
env:
MLC_MLPERF_DEVICE: cpu
CUDA_VISIBLE_DEVICES: ''
USE_CUDA: no
USE_GPU: no
cuda:
group: device
env:
MLC_MLPERF_DEVICE: gpu
USE_CUDA: yes
USE_GPU: yes
# Loadgen scenarios
offline:
env:
MLC_MLPERF_LOADGEN_SCENARIO: Offline
multistream:
env:
MLC_MLPERF_LOADGEN_SCENARIO: MultiStream
singlestream:
group: loadgen-scenario
env:
MLC_MLPERF_LOADGEN_SCENARIO: SingleStream
default_variations:
batch-size: batch_size.1
server:
env:
MLC_MLPERF_LOADGEN_SCENARIO: Server
constantstream:
group: loadgen-scenario
env:
MLC_MLPERF_LOADGEN_SCENARIO: ConstantStream
bevformer,singlestream:
default_env:
MLC_MLPERF_SINGLESTREAM_TARGET_LATENCY_PERCENTILE: "99.9"
MLC_MLPERF_DEFAULT_MAX_QUERY_COUNT: 6636
ssd,singlestream:
default_env:
MLC_MLPERF_SINGLESTREAM_TARGET_LATENCY_PERCENTILE: "99.9"
MLC_MLPERF_DEFAULT_MAX_QUERY_COUNT: 6636
deeplabv3plus,singlestream:
default_env:
MLC_MLPERF_SINGLESTREAM_TARGET_LATENCY_PERCENTILE: "99.9"
MLC_MLPERF_DEFAULT_MAX_QUERY_COUNT: 6636
mvp_demo:
env:
batch_size.#:
group: batch-size
env:
MLC_MLPERF_LOADGEN_MAX_BATCHSIZE: "#"