Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for 4090 and Orin #876

Merged
merged 9 commits into from
Jul 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion cm-mlops/script/get-ml-model-retinanet/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
},
"update_tags_from_env_with_prefix": {
"_url.": [ "CM_PACKAGE_URL" ]
}
},
"names": [
"dae"
]
}
],
"variations": {
Expand Down Expand Up @@ -87,6 +90,11 @@
"CM_UNZIP": "yes",
"CM_ML_MODEL_FILE": "retinanet_model_10.pth",
"CM_ML_MODEL_ACCURACY": "0.3755"
},
"add_deps_recursive": {
"dae": {
"tags": "_extract"
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion cm-mlops/script/get-tensorrt/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def preprocess(i):
env = i['env']


if env.get('CM_TENSORRT_TAR_FILE_PATH','')=='' and env.get('CM_TENSORRT_REQUIRE_DEV', '') != 'yes':
if env.get('CM_TENSORRT_TAR_FILE_PATH','')=='' and env.get('CM_TENSORRT_REQUIRE_DEV', '') != 'yes' and env.get('CM_HOST_PLATFORM_FLAVOR', '') != 'aarch64':

if os_info['platform'] == 'windows':
extra_pre=''
Expand Down
103 changes: 80 additions & 23 deletions cm-mlops/script/reproduce-mlperf-inference-nvidia/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,30 @@ variations:
env:
MLPERF_NVIDIA_RUN_COMMAND: build
CM_MLPERF_NVIDIA_HARNESS_RUN_MODE: build
deps:
- tags: get,cmake
version_min: "3.18"

# Detect Google Logger
- tags: get,generic,sys-util,_glog-dev

# Detect GFlags
- tags: get,generic,sys-util,_gflags-dev

# Detect libgmock-dev
- tags: get,generic,sys-util,_libgmock-dev

# Detect libre2-dev
- tags: get,generic,sys-util,_libre2-dev

# Detect libnuma-dev
- tags: get,generic,sys-util,_libnuma-dev

# Detect libboost-all-dev
- tags: get,generic,sys-util,_libboost-all-dev

# Detect rapidjson-dev
- tags: get,generic,sys-util,_rapidjson-dev

preprocess_data:
group: run-mode
Expand Down Expand Up @@ -468,6 +492,7 @@ variations:
- batch-size
- triton
- build-engine-options

- tags: reproduce,mlperf,inference,nvidia,harness,_download_model
inherit_variation_tags: true
force_cache: true
Expand Down Expand Up @@ -682,44 +707,28 @@ variations:
CM_MODEL_BATCH_SIZE: "2048"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

resnet50,multistream,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.8
env:
CM_MODEL_BATCH_SIZE: "8"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

retinanet,multistream,run_harness:
gpu_memory.80,resnet50,server,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.1
env:
CM_MODEL_BATCH_SIZE: "1"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rnnt,multistream,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.8
tags: _batch_size.64
env:
CM_MODEL_BATCH_SIZE: "8"
CM_MODEL_BATCH_SIZE: "64"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

3d-unet,multistream,run_harness:
resnet50,multistream,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.8
env:
CM_MODEL_BATCH_SIZE: "8"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

dlrm,multistream,run_harness:
retinanet,multistream,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.8
tags: _batch_size.2
env:
CM_MODEL_BATCH_SIZE: "8"
CM_MODEL_BATCH_SIZE: "2"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

gpu_memory.16,retinanet,offline,run_harness:
Expand Down Expand Up @@ -754,6 +763,14 @@ variations:
CM_MODEL_BATCH_SIZE: "32"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

gpu_memory.80,retinanet,server,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.8
env:
CM_MODEL_BATCH_SIZE: "8"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

gpu_memory.16,rnnt,offline,run_harness:
add_deps_recursive:
build-engine:
Expand Down Expand Up @@ -863,6 +880,14 @@ variations:
CM_MODEL_BATCH_SIZE: "64"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,resnet50,server,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.64
env:
CM_MODEL_BATCH_SIZE: "64"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,retinanet,offline,run_harness:
add_deps_recursive:
build-engine:
Expand All @@ -871,6 +896,14 @@ variations:
CM_MODEL_BATCH_SIZE: "2"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,retinanet,server,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.2
env:
CM_MODEL_BATCH_SIZE: "2"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,bert_,offline,run_harness:
add_deps_recursive:
build-engine:
Expand All @@ -879,6 +912,14 @@ variations:
CM_MODEL_BATCH_SIZE: "256"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,bert_,server,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.256
env:
CM_MODEL_BATCH_SIZE: "256"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,3d-unet_,offline,run_harness:
add_deps_recursive:
build-engine:
Expand All @@ -887,6 +928,14 @@ variations:
CM_MODEL_BATCH_SIZE: "8"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,3d-unet_,server,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.8
env:
CM_MODEL_BATCH_SIZE: "8"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,rnnt,offline,run_harness:
add_deps_recursive:
build-engine:
Expand All @@ -895,6 +944,14 @@ variations:
CM_MODEL_BATCH_SIZE: "2048"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,rnnt,server,run_harness:
add_deps_recursive:
build-engine:
tags: _batch_size.512
env:
CM_MODEL_BATCH_SIZE: "512"
CM_MLPERF_NVIDIA_HARNESS_GPU_BATCH_SIZE: "<<<CM_MODEL_BATCH_SIZE>>>"

rtx_4090,dlrm_,offline,run_harness:
add_deps_recursive:
build-engine:
Expand Down
Loading
Loading