forked from mlcommons/inference_results_v2.1
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for different SPR/ICX SKUs
- Loading branch information
1 parent
8b68e7b
commit f448d4c
Showing
29 changed files
with
308 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,4 +86,3 @@ bash make_preprocess.sh | |
bash run_SPR56C_2S.sh acc | ||
bash run_SPR56C_2S.sh perf | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RUN_TYPE=acc |
1 change: 1 addition & 0 deletions
1
closed/Intel/code/3d-unet-99.9/pytorch-cpu-kits19/env_perf.list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RUN_TYPE=perf |
19 changes: 19 additions & 0 deletions
19
closed/Intel/code/3d-unet-99.9/pytorch-cpu-kits19/run_offline.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
number_threads=`nproc --all` | ||
echo $number_threads | ||
number_instance=$((number_threads/8)) | ||
echo $number_instance | ||
|
||
|
||
if [ -z "${RUN_TYPE}" ]; then | ||
echo "NO RUN_TYPE ( perf/acc)found export RUN_TYPE=perf" | ||
export RUN_TYPE=perf | ||
fi | ||
echo $RUN_TYPE | ||
bash run_mlperf.sh --type=${RUN_TYPE} \ | ||
--precision=int8 \ | ||
--user-conf=/workspace/user.conf \ | ||
--num-instance=$number_instance \ | ||
--cpus-per-instance=4 \ | ||
--scenario=Offline | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Please set these fields depending on the performance of your system to | ||
# override default LoadGen settings. | ||
*.Offline.target_qps = 1.5 | ||
#*.Offline.min_query_count = 1200 | ||
#*.Offline.min_duration = 6000 | ||
*.Offline.min_query_count = 1200 | ||
*.Offline.min_duration = 6000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# MLPerf Inference Benchmarks on AWS instances | ||
|
||
## Setup Instructions | ||
|
||
|
||
|
||
## How to Run on AWS | ||
|
||
### Docker images list | ||
|
||
| IMAGE ID | IMAGE REPO and TAG | | ||
| --------- | ------------------------------------------------ | | ||
| ce03546c4d75 | intel/intel-optimized-pytorch:mlperf-inference-2.1-3dunet_v2 | | ||
| a17e4ea194cc | intel/intel-optimized-pytorch:mlperf-infernece-2.1-resnet50_v2 | | ||
| 038cf950d509 | intel/intel-optimized-pytorch:mlperf-inference-2.1-dlrm_v2 | | ||
| 5dfdb372208a | intel/intel-optimized-pytorch:mlperf-inference-2.1-datacenter-retinanet_v2 | | ||
|
||
### 3dunet | ||
|
||
``` | ||
cd 3d-unet-99.9/pytorch-cpu-kits19/ | ||
``` | ||
|
||
You could run the workload with prepared AWS AMI image. | ||
please replace the IMAGE ID, YOUR SCRIPT and PATH accordingly. | ||
``` | ||
../../run_docker.sh <IMAGE ID> /workspace/<YOUR SCRIPT in current host folder> <PATH of 3dunet codes in docker image> aws_3dunet | ||
``` | ||
Here is the example, and it should also work with the prepared AMI image. | ||
``` | ||
../../run_docker.sh ce03546c4d75 /workspace/run_offline.sh /opt/workdir/code/3d-unet-99.9/pytorch-cpu-kits19 aws_3dunet | ||
``` | ||
|
||
### Resnet50 | ||
|
||
``` | ||
cd resnet50/pytorch-cpu/ | ||
``` | ||
``` | ||
../../run_docker.sh a17e4ea194cc /workspace/run_offline.sh /opt/workdir/code/resnet50/pytorch-cpu aws_rn50 | ||
``` | ||
|
||
### DLRM | ||
|
||
``` | ||
cd dlrm-99.9/pytorch-cpu/ | ||
``` | ||
``` | ||
../../run_docker.sh 038cf950d509 /workspace/run_offline.sh /opt/workdir/code/dlrm-99.9/pytorch-cpu aws_dlrm | ||
``` | ||
> Please change 'run_offline.sh' to 'run_offline_accuracy.sh', 'run_server.sh' or 'run_server_accuracy.sh' accordingly, based on your desired benchmark type and the mode. | ||
### Retinanet | ||
|
||
``` | ||
cd retinanet/pytorch-cpu/ | ||
``` | ||
``` | ||
../../run_docker.sh 5dfdb372208a /workspace/run_offline.sh /opt/workdir/code/retinanet/pytorch-cpu aws_ret | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/workspace/run_mlperf.sh --mode=offline --type=perf --dtype=int8 |
1 change: 1 addition & 0 deletions
1
closed/Intel/code/dlrm-99.9/pytorch-cpu/run_offline_accuracy.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/workspace/run_mlperf.sh --mode=offline --type=acc --dtype=int8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/workspace/run_mlperf.sh --mode=server --type=perf --dtype=int8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/workspace/run_mlperf.sh --mode=server --type=acc --dtype=int8 |
2 changes: 1 addition & 1 deletion
2
closed/Intel/code/dlrm-99.9/pytorch-cpu/setup_dataset.sh
100644 → 100755
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export DATA_DIR=/data/mlperf_data/dlrm/ | ||
export MODEL_DIR=/data/mlperf_data/dlrm/ | ||
export MODEL_DIR=/media |
12 changes: 12 additions & 0 deletions
12
closed/Intel/code/dlrm-99.9/pytorch-cpu/setup_env_offline_ICX.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
number_threads=`nproc --all` | ||
number_cores=$((number_threads/2)) | ||
number_sockets=`grep physical.id /proc/cpuinfo | sort -u | wc -l` | ||
cpu_per_socket=$((number_cores/number_sockets)) | ||
|
||
export NUM_SOCKETS=$number_sockets # i.e. 8 | ||
export CPUS_PER_SOCKET=$cpu_per_socket # i.e. 28 | ||
export CPUS_PER_PROCESS=$cpu_per_socket # which determine how much processes will be used | ||
# process-per-socket = CPUS_PER_SOCKET/CPUS_PER_PROCESS | ||
export CPUS_PER_INSTANCE=1 # instance-per-process number=CPUS_PER_PROCESS/CPUS_PER_INSTANCE | ||
# total-instance = instance-per-process * process-per-socket | ||
export BATCH_SIZE=16000 |
12 changes: 12 additions & 0 deletions
12
closed/Intel/code/dlrm-99.9/pytorch-cpu/setup_env_server_ICX.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
number_threads=`nproc --all` | ||
number_cores=$((number_threads/2)) | ||
number_sockets=`grep physical.id /proc/cpuinfo | sort -u | wc -l` | ||
cpu_per_socket=$((number_cores/number_sockets)) | ||
|
||
export NUM_SOCKETS=$number_sockets # i.e. 8 | ||
export CPUS_PER_SOCKET=$cpu_per_socket # i.e. 28 | ||
export CPUS_PER_PROCESS=$cpu_per_socket # which determine how much processes will be used | ||
# process-per-socket = CPUS_PER_SOCKET/CPUS_PER_PROCESS | ||
export CPUS_PER_INSTANCE=8 # instance-per-process number=CPUS_PER_PROCESS/CPUS_PER_INSTANCE | ||
# total-instance = instance-per-process * process-per-socket | ||
export BATCH_SIZE=8000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dlrm.Server.target_qps = 14000.0 | ||
dlrm.Offline.target_qps = 100430.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
cd resnet50/pytorch-cpu/ | ||
chmod +x run_offline_accuracy.sh | ||
chmod +x run_offline.sh | ||
../../run_docker.sh a17e4ea194cc /workspace/run_offline_accuracy.sh /opt/workdir/code/resnet50/pytorch-cpu aws_rn50 resnet50_acc.txt | ||
../../run_docker.sh a17e4ea194cc /workspace/run_offline.sh /opt/workdir/code/resnet50/pytorch-cpu aws_rn50 resnet50_perf.txt | ||
cd ../../ | ||
|
||
cd dlrm-99.9/pytorch-cpu/ | ||
chmod +x run_offline_accuracy.sh | ||
chmod +x run_offline.sh | ||
../../run_docker.sh 038cf950d509 /workspace/run_offline_accuracy.sh /opt/workdir/code/dlrm-99.9/pytorch-cpu aws_dlrm dlrm_acc.txt | ||
../../run_docker.sh 038cf950d509 /workspace/run_offline.sh /opt/workdir/code/dlrm-99.9/pytorch-cpu aws_dlrm dlrm_perf.txt | ||
cd ../../ | ||
|
||
cd retinanet/pytorch-cpu/ | ||
chmod +x run_offline_accuracy.sh | ||
chmod +x run_offline.sh | ||
../../run_docker.sh 5dfdb372208a /workspace/run_offline_accuracy.sh /opt/workdir/code/retinanet/pytorch-cpu aws_ret retinanet_acc.txt | ||
../../run_docker.sh 5dfdb372208a /workspace/run_offline.sh /opt/workdir/code/retinanet/pytorch-cpu aws_ret retinanet_perf.txt | ||
cd ../../ | ||
|
||
cd 3d-unet-99.9/pytorch-cpu-kits19/ | ||
chmod +x run_offline.sh | ||
../../run_docker.sh ce03546c4d75 /workspace/run_offline.sh /opt/workdir/code/3d-unet-99.9/pytorch-cpu-kits19 aws_3dunet 3dunet_acc.txt env_acc.list | ||
../../run_docker.sh ce03546c4d75 /workspace/run_offline.sh /opt/workdir/code/3d-unet-99.9/pytorch-cpu-kits19 aws_3dunet 3dunet_perf.txt env_perf.list | ||
cd ../../ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.