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

Merge from cTuning #898

Merged
merged 5 commits into from
Aug 4, 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
6 changes: 6 additions & 0 deletions cm-mlops/script/get-sys-utils-cm/do_pip_installs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

PIP_EXTRA=`python3 -c "import pkg_resources; print(' --break-system-packages ' if int(pkg_resources.get_distribution('pip').version.split('.')[0]) >= 23 else '')"`
cmd="python3 -m pip install -r ${CM_TMP_CURRENT_SCRIPT_PATH}/requirements.txt ${CM_PYTHON_PIP_USER} ${CM_PYTHON_PIP_COMMON_EXTRA} ${PIP_EXTRA}"
echo $cmd
eval $cmd
3 changes: 2 additions & 1 deletion cm-mlops/script/get-sys-utils-cm/run-arch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ ${CM_SUDO} ${CM_PACKAGE_TOOL} -Syu && \
xz \
zip

python3 -m pip install -r ${CM_TMP_CURRENT_SCRIPT_PATH}/requirements.txt ${CM_PYTHON_PIP_USER}
. ${CM_TMP_CURRENT_SCRIPT_PATH}/do_pip_installs.sh
test $? -eq 0 || exit $?
3 changes: 2 additions & 1 deletion cm-mlops/script/get-sys-utils-cm/run-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ ${CM_SUDO} ${CM_APT_TOOL} update && \
libgl1 \
libncurses5

python3 -m pip install -r ${CM_TMP_CURRENT_SCRIPT_PATH}/requirements.txt ${CM_PYTHON_PIP_USER}
. ${CM_TMP_CURRENT_SCRIPT_PATH}/do_pip_installs.sh
test $? -eq 0 || exit $?
3 changes: 2 additions & 1 deletion cm-mlops/script/get-sys-utils-cm/run-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ brew update && \
zlib \
python3

python3 -m pip install -r ${CM_TMP_CURRENT_SCRIPT_PATH}/requirements.txt ${CM_PYTHON_PIP_USER}
. ${CM_TMP_CURRENT_SCRIPT_PATH}/do_pip_installs.sh
test $? -eq 0 || exit $?
3 changes: 2 additions & 1 deletion cm-mlops/script/get-sys-utils-cm/run-rhel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ ${CM_SUDO} ${CM_PACKAGE_TOOL} update && \
xz \
zip

python3 -m pip install -r ${CM_TMP_CURRENT_SCRIPT_PATH}/requirements.txt ${CM_PYTHON_PIP_USER}
. ${CM_TMP_CURRENT_SCRIPT_PATH}/do_pip_installs.sh
test $? -eq 0 || exit $?
3 changes: 2 additions & 1 deletion cm-mlops/script/get-sys-utils-cm/run-sles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ ${CM_SUDO} ${CM_PACKAGE_TOOL} update && \
xz \
zip

python3 -m pip install -r ${CM_TMP_CURRENT_SCRIPT_PATH}/requirements.txt ${CM_PYTHON_PIP_USER}
. ${CM_TMP_CURRENT_SCRIPT_PATH}/do_pip_installs.sh
test $? -eq 0 || exit $?
3 changes: 2 additions & 1 deletion cm-mlops/script/get-sys-utils-cm/run-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,5 @@ ${CM_SUDO} ${CM_APT_TOOL} update && \
libgl1-mesa-glx \
zlib1g-dev

python3 -m pip install -r ${CM_TMP_CURRENT_SCRIPT_PATH}/requirements.txt ${CM_PYTHON_PIP_USER} ${CM_PYTHON_PIP_COMMON_EXTRA}
. ${CM_TMP_CURRENT_SCRIPT_PATH}/do_pip_installs.sh
test $? -eq 0 || exit $?
20 changes: 10 additions & 10 deletions docs/mlperf/inference/README_a100.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cmr "generate-run-cmds inference _performance-only" \
--model=bert-99 --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --scenario=Offline --execution_mode=fast \
--target_qps=1000 --rerun --gpu_name=a100 \
--target_qps=3560 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand All @@ -20,7 +20,7 @@ cmr "generate-run-cmds inference _submission _all-scenarios" \
--model=bert-99 --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --execution_mode=valid \
--target_qps=1000 --rerun --gpu_name=a100 \
--target_qps=3560 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand All @@ -38,7 +38,7 @@ cmr "generate-run-cmds inference _performance-only" \
--model=resnet50 --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --scenario=Offline --execution_mode=fast \
--target_qps=1000 --rerun --gpu_name=a100 \
--target_qps=43000 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand All @@ -50,7 +50,7 @@ cmr "generate-run-cmds inference _submission _all-scenarios" \
--model=resnet50 --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --execution_mode=valid \
--target_qps=1000 --rerun --gpu_name=a100 \
--target_qps=43000 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand All @@ -62,7 +62,7 @@ cmr "generate-run-cmds inference _performance-only" \
--model=retinanet --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --scenario=Offline --execution_mode=fast \
--target_qps=100 --rerun --gpu_name=a100 \
--target_qps=715 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand All @@ -74,7 +74,7 @@ cmr "generate-run-cmds inference _submission _all-scenarios" \
--model=retinanet --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --execution_mode=valid \
--target_qps=100 --rerun --gpu_name=a100 \
--target_qps=715 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand All @@ -87,7 +87,7 @@ cmr "generate-run-cmds inference _performance-only" \
--model=rnnt --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --scenario=Offline --execution_mode=fast \
--target_qps=1000 --rerun --gpu_name=a100 \
--target_qps=14000 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand All @@ -99,7 +99,7 @@ cmr "generate-run-cmds inference _submission _all-scenarios" \
--model=rnnt --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --execution_mode=valid \
--target_qps=1000 --rerun --gpu_name=a100 \
--target_qps=14000 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand All @@ -112,7 +112,7 @@ cmr "generate-run-cmds inference _performance-only" \
--model=3d-unet-99 --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --scenario=Offline --execution_mode=fast \
--target_qps=1000 --rerun --gpu_name=a100 \
--target_qps=3.7 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand All @@ -124,7 +124,7 @@ cmr "generate-run-cmds inference _submission _all-scenarios" \
--model=3d-unet-99 --implementation=nvidia-original \
--device=cuda --backend=tensorrt --category=edge \
--division=open --quiet --execution_mode=valid \
--target_qps=1000 --rerun --gpu_name=a100 \
--target_qps=3.7 --rerun --gpu_name=a100 \
--adr.nvidia-harness.tags=_sxm
```

Expand Down
Loading