Skip to content

Commit

Permalink
Merge pull request #41 from mlcommons/mlperf-inference
Browse files Browse the repository at this point in the history
Mlperf inference
  • Loading branch information
ctuning-admin authored May 4, 2024
2 parents d5fcf38 + 90e0358 commit 1e6f335
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: MLPerf inference MLCommons C++ ResNet50

on:
pull_request:
branches: [ "main", "dev" ]
branches: [ "main", "dev", "mlperf-inference" ]
paths:
- '.github/workflows/test-mlperf-inference-mlcommons-cpp-resnet50.yml'
- '**'
Expand Down
7 changes: 6 additions & 1 deletion script/build-dockerfile/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,16 @@ def preprocess(i):
if not docker_image_base:
return {'return': 1, 'error': f"Version \"{env['CM_DOCKER_OS_VERSION']}\" is not supported yet for \"{env['CM_DOCKER_OS']}\" "}

if "CM_MLOPS_REPO" in env:
if env.get("CM_MLOPS_REPO", "") != "":
cm_mlops_repo = env["CM_MLOPS_REPO"]
else:
cm_mlops_repo = "mlcommons@ck"

if env.get("CM_MLOPS_REPO_BRANCH", '') != '':
cm_mlops_repo_branch_string = f" --branch {env['CM_MLOPS_REPO_BRANCH']}"
else:
cm_mlops_repo_branch_string = ""

if 'CM_DOCKERFILE_WITH_PATH' not in env:
env['CM_DOCKERFILE_WITH_PATH'] = os.path.join(os.getcwd(), "Dockerfile")

Expand Down
5 changes: 3 additions & 2 deletions script/build-mlperf-inference-server-nvidia/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ deps:

# Detect CMake
- tags: get,cmake
version_min: "3.25"
version: "3.25.1"

# Detect Google Logger
- tags: get,generic,sys-util,_glog-dev
Expand Down Expand Up @@ -203,7 +203,6 @@ versions:
nvidia-scratch-space:
tags: _version.4_0
deps:
- tags: install,nccl,libs,_cuda
- tags: install,pytorch,from.src,_for-nvidia-mlperf-inference-v3.1
names:
- pytorch
Expand All @@ -212,13 +211,15 @@ versions:
names:
- pytorchvision
- torchvision
- tags: install,nccl,libs,_cuda

docker:
skip_run_cmd: 'no'
all_gpus: 'yes'
shm_size: '32gb'
extra_run_args: ' --runtime=nvidia --ulimit memlock=-1 --cap-add SYS_ADMIN --cap-add SYS_TIME --security-opt apparmor=unconfined --security-opt seccomp=unconfined'
docker_os: ubuntu
cm_repo_flags1: ' --branch=mlperf-inference'
docker_real_run: False
interactive: True
docker_os_version: '20.04'
Expand Down
7 changes: 3 additions & 4 deletions script/get-ml-model-rnnt/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
},
"pytorch,fp32,amazon-s3": {
"env": {
"CM_PACKAGE_URL": "https://mlperf-public.s3.us-west-2.amazonaws.com/DistributedDataParallel_1576581068.9962234-epoch-100.pt"
}
},
"pytorch,fp32,zenodo": {
Expand All @@ -61,11 +60,11 @@
}
},
"zenodo": {
"group": "download-src"
},
"amazon-s3": {
"group": "download-src",
"default": true
},
"amazon-s3": {
"group": "download-src"
}
},
"print_env_at_the_end" : {
Expand Down
9 changes: 7 additions & 2 deletions script/install-pytorch-from-src/_cm.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
"CM_GIT_CHECKOUT_TAG": "#"
},
"ad": {
"pytorch-src-repo": {
"pytorch-src-repo": {
"tags": "_no-recurse-submodules,_full-history"
}
}
Expand Down Expand Up @@ -230,7 +230,12 @@
"tags": "get,cmake",
"version_min": "3.25.0"
}
]
],
"ad": {
"pytorch-src-repo": {
"tags": "_no-recurse-submodules,_full-history"
}
}
},
"cuda": {
"deps": [
Expand Down

0 comments on commit 1e6f335

Please sign in to comment.