Skip to content

Commit

Permalink
Use cm4mlops for mlperf-nvidia
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed May 3, 2024
1 parent b15a3ee commit 0cb8341
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
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
1 change: 1 addition & 0 deletions script/build-mlperf-inference-server-nvidia/_cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ docker:
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_flags: ' --branch=mlperf-inference'
docker_real_run: False
interactive: True
docker_os_version: '20.04'
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": "_recurse-submodules,_full-history"
}
}
},
"cuda": {
"deps": [
Expand Down
2 changes: 1 addition & 1 deletion script/install-pytorch-from-src/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ ! -e pytorch/dist/torch*.whl ]]; then
cp -r ${CM_PYTORCH_SRC_REPO_PATH} pytorch
cd pytorch
git submodule sync
git submodule update --init --recursive
#git submodule update --init --recursive
rm -rf build

${CM_PYTHON_BIN_WITH_PATH} -m pip install -r requirements.txt
Expand Down

0 comments on commit 0cb8341

Please sign in to comment.