A quick start guide to benchmarking AI models in Azure: MLPerf Inferencing v2.0

Published Apr 06 2022 10:07 AM 2,437 Views
Microsoft

This blog was authored by Aimee Garcia, Program Manager - AI Benchmarking.  Additional contributions by Program Manager Daramfon Akpan, Program Manager Gaurav Uppal, Program Manager Hugo Affaticati.

 

Microsoft Azure’s publicly available AI inferencing capabilities are led by the NDm A100 v4, ND A100 v4 and NC A100 v4 virtual machines (VMs) powered by the latest NVIDIA A100 Tensor Core GPUs. These results showcase Azure’s commitment to making AI inferencing available to all researchers and users in the most accessible way while raising the bar in AI inferencing in Azure.  To see the announcement on Azure.com please click here.

 

Highlights from the results

ND96amsr A100 v4 powered by NVIDIA A100 80G SXM Tensor Core GPU

Benchmark

Samples/second

Queries/second

Scenarios

bert-99

27.5K+

~22.5K

Offline and server

resnet

300K+

~200K+

Offline and server

3d-unet

24.87

 

Offline

 

NC96ads A100 v4 powered by NVIDIA A100 80G PCIe Tensor Core GPU

Benchmark

Samples/second

Queries/second

Scenarios

bert-99.9

~6.3K

~5.3K

Offline and server

resnet

144K

~119.6K

Offline and server

3d-unet

11.7

 

Offline

 

The results were generated by deploying the environment using the VM offerings and Azure’s Ubuntu 18.04-HPC marketplace image.

 

Steps to reproduce the results in Azure

Set up and connect to a VM via SSH - decide which VM you want to benchmark

  • Image: Ubuntu 18.04-HPC marketplace image
  • Availability: Depending on client need (ex. No redundancy)
  • Region: Depending on client need (ex. South Central US)

Set up the dependencies

  1. Verify the nvidia-docker version:

cd /mnt

nvidia-smi

 

  1. If the driver version is less than 510, install the following: CUDA Toolkit 11.6 Downloads | NVIDIA Developer

sudo wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin

sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600

sudo wget https://developer.download.nvidia.com/compute/cuda/11.6.1/local_installers/cuda-repo-ubuntu1804-11-6...

sudo dpkg -i cuda-repo-ubuntu1804-11-6-local_11.6.1-510.47.03-1_amd64.deb

sudo apt-key add /var/cuda-repo-ubuntu1804-11-6-local/7fa2af80.pub

sudo apt-get update

sudo apt-get -y install cuda

 

  1. Update docker to the latest version:

sudo dpkg -P moby-cli

curl https://get.docker.com | sh && sudo systemctl --now enable docker​

sudo chmod 777 /var/run/docker.sock

 

  1. To check the docker version run:

docker info (add check docker version by running this)

sudo reboot

 

You should have version 20.10.12 or newer

 

  1. To verify the version again:

nvidia-smi

 

  1. Create and run the script to mount the nvme disk using the following:

cd /mnt

sudo touch nvme.sh

sudo vi nvme.sh

 

  1. RAID the nvme disks and mount onto the machine by copying and inserting the following into your file:

#!/bin/bash 

 

NVME_DISKS_NAME=`ls /dev/nvme*n1`

NVME_DISKS=`ls -latr /dev/nvme*n1 | wc -l`

 

echo "Number of NVMe Disks: $NVME_DISKS"

 

if [ "$NVME_DISKS" == "0" ]

then

    exit 0

else

    mkdir -p /mnt/resource_nvme

    # Needed incase something did not unmount as expected. This will delete any data that may be left behind

    mdadm  --stop /dev/md*

    mdadm --create /dev/md128 -f --run --level 0 --raid-devices $NVME_DISKS $NVME_DISKS_NAME

    mkfs.xfs -f /dev/md128

    mount /dev/md128 /mnt/resource_nvme

fi

chmod 1777 /mnt/resource_nvme

 

  1. Run the script:

sudo sh nvme.sh

 

  1. Update Docker root directory in the docker daemon config file:

sudo vi /etc/docker/daemon.json

Add this line after the first curly bracket:

"data-root": "/mnt/resource_nvme/data",

 

  1. Run the following:

sudo systemctl restart docker

cd resource_nvme

 

  1. Now that your environment is set up, get the repository from the MLCommons github and run the benchmarks:
    • When setting up the scratch path, the path should be /mnt/resource_nvme/scratch

export MLPERF_SCRATCH_PATH=/mnt/resource_nvme/scratch

 

  1. Run benchmarks by following the steps in the README.md file in the working directory. To open the file:

vi README.md

 

Below are graphs showing the achieved results for the NDm A100 v4, NC A100 v4 and ND A100 v4 VMs. The units are in throughput/second (samples and queries).

 

KevinRaines_0-1648829171858.png

 

KevinRaines_1-1648829184471.png

 

KevinRaines_2-1648829191850.png

 

KevinRaines_3-1648829201351.png

 

More about MLPerf

To learn more about MLCommons benchmarks, visit the MLCommons website.

%3CLINGO-SUB%20id%3D%22lingo-sub-3273878%22%20slang%3D%22en-US%22%3EA%20quick%20start%20guide%20to%20benchmarking%20AI%20models%20in%20Azure%3A%20MLPerf%20Inferencing%20v2.0%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3273878%22%20slang%3D%22en-US%22%3E%3CP%3E%3CFONT%20size%3D%222%22%3E%3CEM%3EThis%20blog%20was%20authored%20by%20Aimee%20Garcia%2C%20Program%20Manager%20-%20AI%20Benchmarking.%26nbsp%3B%20Additional%20contributions%20by%26nbsp%3BProgram%20Manager%20%3CSPAN%3EDaramfon%20Akpan%3C%2FSPAN%3E%2C%20Program%20Manager%20Gaurav%20Uppal%2C%20Program%20Manager%20Hugo%20Affaticati.%3C%2FEM%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMicrosoft%20Azure%E2%80%99s%20publicly%20available%20AI%20inferencing%20capabilities%20are%20led%20by%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fndm-a100-v4-series%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ENDm%20A100%20v4%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fnda100-v4-series%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3END%20A100%20v4%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fnc-a100-v4-series%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ENC%20A100%20v4%3C%2FA%3E%20virtual%20machines%20(VMs)%20powered%20by%20the%20latest%20NVIDIA%20A100%20Tensor%20Core%20GPUs.%20These%20results%20showcase%20Azure%E2%80%99s%20commitment%20to%20making%20AI%20inferencing%20available%20to%20all%20researchers%20and%20users%20in%20the%20most%20accessible%20way%20while%20raising%20the%20bar%20in%20AI%20inferencing%20in%20Azure.%26nbsp%3B%26nbsp%3BTo%20see%20the%20announcement%20on%20Azure.com%20please%20click%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fblog%2Fazure-delivers-strong-mlperf-inferencing-v20-results-from-1-to-8-gpus%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehere%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EHighlights%20from%20the%20results%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3END96amsr%20A100%20v4%20powered%20by%20NVIDIA%20A100%2080G%20SXM%20Tensor%20Core%20GPU%3C%2FP%3E%0A%3CTABLE%20width%3D%22624%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22114%22%3E%3CP%3E%3CSTRONG%3EBenchmark%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22130%22%3E%3CP%3E%3CSTRONG%3ESamples%2Fsecond%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22134%22%3E%3CP%3E%3CSTRONG%3EQueries%2Fsecond%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22246%22%3E%3CP%3E%3CSTRONG%3EScenarios%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22114%22%3E%3CP%3Ebert-99%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22130%22%3E%3CP%3E27.5K%2B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22134%22%3E%3CP%3E~22.5K%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22246%22%3E%3CP%3EOffline%20and%20server%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22114%22%3E%3CP%3Eresnet%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22130%22%3E%3CP%3E300K%2B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22134%22%3E%3CP%3E~200K%2B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22246%22%3E%3CP%3EOffline%20and%20server%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22114%22%3E%3CP%3E3d-unet%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22130%22%3E%3CP%3E24.87%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22134%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22246%22%3E%3CP%3EOffline%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENC96ads%20A100%20v4%20powered%20by%20NVIDIA%20A100%2080G%20PCIe%20Tensor%20Core%20GPU%3C%2FP%3E%0A%3CTABLE%20width%3D%22624%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22114%22%3E%3CP%3E%3CSTRONG%3EBenchmark%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22130%22%3E%3CP%3E%3CSTRONG%3ESamples%2Fsecond%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22134%22%3E%3CP%3E%3CSTRONG%3EQueries%2Fsecond%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22246%22%3E%3CP%3E%3CSTRONG%3EScenarios%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22114%22%3E%3CP%3Ebert-99.9%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22130%22%3E%3CP%3E~6.3K%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22134%22%3E%3CP%3E~5.3K%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22246%22%3E%3CP%3EOffline%20and%20server%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22114%22%3E%3CP%3Eresnet%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22130%22%3E%3CP%3E144K%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22134%22%3E%3CP%3E~119.6K%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22246%22%3E%3CP%3EOffline%20and%20server%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22114%22%3E%3CP%3E3d-unet%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22130%22%3E%3CP%3E11.7%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22134%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%22246%22%3E%3CP%3EOffline%3C%2FP%3E%0A%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20results%20were%20generated%20by%20deploying%20the%20environment%20using%20the%20VM%20offerings%20and%20Azure%E2%80%99s%20Ubuntu%2018.04-HPC%20marketplace%20image.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ESteps%20to%20reproduce%20the%20results%20in%20Azure%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fms.portal.azure.com%2F%23blade%2FHubsExtension%2FBrowseResource%2FresourceType%2FMicrosoft.Compute%252FVirtualMachines%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ESet%20up%20and%20connect%20to%20a%20VM%3C%2FA%3E%3CSPAN%3E%20via%20SSH%20-%20decide%20which%20VM%20you%20want%20to%20benchmark%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EImage%3A%20Ubuntu%2018.04-HPC%20marketplace%20image%3C%2FLI%3E%0A%3CLI%3EAvailability%3A%20Depending%20on%20client%20need%20(ex.%20No%20redundancy)%3C%2FLI%3E%0A%3CLI%3ERegion%3A%20Depending%20on%20client%20need%20(ex.%20South%20Central%20US)%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSTRONG%3ESet%20up%20the%20dependencies%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EVerify%20the%20nvidia-docker%20version%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Ecd%20%2Fmnt%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Envidia-smi%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%222%22%3E%0A%3CLI%3EIf%20the%20driver%20version%20is%20less%20than%20510%2C%20install%20the%20following%3A%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.nvidia.com%2Fcuda-downloads%3Ftarget_os%3DLinux%26amp%3Btarget_arch%3Dx86_64%26amp%3BDistribution%3DUbuntu%26amp%3Btarget_version%3D18.04%26amp%3Btarget_type%3Ddeb_network%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ECUDA%20Toolkit%2011.6%20%3C%2FA%3E%3CSPAN%3EDownloads%20%7C%20NVIDIA%20%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdeveloper.nvidia.com%2Fcuda-downloads%3Ftarget_os%3DLinux%26amp%3Btarget_arch%3Dx86_64%26amp%3BDistribution%3DUbuntu%26amp%3Btarget_version%3D18.04%26amp%3Btarget_type%3Ddeb_network%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EDeveloper%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20wget%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.download.nvidia.com%2Fcompute%2Fcuda%2Frepos%2Fubuntu1804%2Fx86_64%2Fcuda-ubuntu1804.pin%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.download.nvidia.com%2Fcompute%2Fcuda%2Frepos%2Fubuntu1804%2Fx86_64%2Fcuda-ubuntu1804.pin%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20mv%20cuda-ubuntu1804.pin%20%2Fetc%2Fapt%2Fpreferences.d%2Fcuda-repository-pin-600%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20wget%20%3CA%20href%3D%22https%3A%2F%2Fdeveloper.download.nvidia.com%2Fcompute%2Fcuda%2F11.6.1%2Flocal_installers%2Fcuda-repo-ubuntu1804-11-6-local_11.6.1-510.47.03-1_amd64.deb%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fdeveloper.download.nvidia.com%2Fcompute%2Fcuda%2F11.6.1%2Flocal_installers%2Fcuda-repo-ubuntu1804-11-6-local_11.6.1-510.47.03-1_amd64.deb%3C%2FA%3E%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20dpkg%20-i%26nbsp%3Bcuda-repo-ubuntu1804-11-6-local_11.6.1-510.47.03-1_amd64.deb%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20apt-key%20add%20%2Fvar%2Fcuda-repo-ubuntu1804-11-6-local%2F7fa2af80.pub%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20apt-get%20update%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20apt-get%20-y%20install%20cuda%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%223%22%3E%0A%3CLI%3EUpdate%20docker%20to%20the%20latest%20version%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20dpkg%20-P%20moby-cli%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Ecurl%20%3CA%20href%3D%22https%3A%2F%2Fget.docker.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fget.docker.com%3C%2FA%3E%20%7C%20sh%20%26amp%3B%26amp%3B%20sudo%20systemctl%20--now%20enable%20docker%20%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20chmod%20777%20%2Fvar%2Frun%2Fdocker.sock%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%224%22%3E%0A%3CLI%3ETo%20check%20the%20docker%20version%20run%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Edocker%20info%20(add%20check%20docker%20version%20by%20running%20this)%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20reboot%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CEM%3EYou%20should%20have%20version%2020.10.12%20or%20newer%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%225%22%3E%0A%3CLI%3ETo%20verify%20the%20version%20again%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Envidia-smi%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%226%22%3E%0A%3CLI%3E%3CSPAN%3ECreate%20and%20run%20the%20script%20to%20mount%20the%20nvme%20disk%20using%20the%20following%3A%20%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Ecd%20%2Fmnt%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20touch%20nvme.sh%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20vi%20nvme.sh%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%227%22%3E%0A%3CLI%3ERAID%20the%20nvme%20disks%20and%20mount%20onto%20the%20machine%20by%20copying%20and%20inserting%20the%20following%20into%20your%20file%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3E%23!%2Fbin%2Fbash%26nbsp%3B%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3ENVME_DISKS_NAME%3D%60ls%20%2Fdev%2Fnvme*n1%60%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3ENVME_DISKS%3D%60ls%20-latr%20%2Fdev%2Fnvme*n1%20%7C%20wc%20-l%60%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Eecho%20%22Number%20of%20NVMe%20Disks%3A%20%24NVME_DISKS%22%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Eif%20%5B%20%22%24NVME_DISKS%22%20%3D%3D%20%220%22%20%5D%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Ethen%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20exit%200%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Eelse%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20mkdir%20-p%20%2Fmnt%2Fresource_nvme%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%23%20Needed%20incase%20something%20did%20not%20unmount%20as%20expected.%20This%20will%20delete%20any%20data%20that%20may%20be%20left%20behind%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20mdadm%26nbsp%3B%20--stop%20%2Fdev%2Fmd*%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20mdadm%20--create%20%2Fdev%2Fmd128%20-f%20--run%20--level%200%20--raid-devices%20%24NVME_DISKS%20%24NVME_DISKS_NAME%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20mkfs.xfs%20-f%20%2Fdev%2Fmd128%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%20mount%20%2Fdev%2Fmd128%20%2Fmnt%2Fresource_nvme%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Efi%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Echmod%201777%20%2Fmnt%2Fresource_nvme%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%20start%3D%228%22%3E%0A%3CLI%3ERun%20the%20script%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20sh%20nvme.sh%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%229%22%3E%0A%3CLI%3EUpdate%20Docker%20root%20directory%20in%20the%20docker%20daemon%20config%20file%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20vi%20%2Fetc%2Fdocker%2Fdaemon.json%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3EAdd%20this%20line%20after%20the%20first%20curly%20bracket%3A%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3E%22data-root%22%3A%20%22%2Fmnt%2Fresource_nvme%2Fdata%22%2C%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2210%22%3E%0A%3CLI%3ERun%20the%20following%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Esudo%20systemctl%20restart%20docker%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Ecd%20resource_nvme%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%20start%3D%2211%22%3E%0A%3CLI%3ENow%20that%20your%20environment%20is%20set%20up%2C%20get%20the%20repository%20from%20the%20MLCommons%20github%20and%20run%20the%20benchmarks%3A%3CUL%3E%0A%3CLI%3EWhen%20setting%20up%20the%20scratch%20path%2C%20the%20path%20should%20be%20%3CSTRONG%3E%2Fmnt%2Fresource_nvme%2Fscratch%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3Eexport%20MLPERF_SCRATCH_PATH%3D%2Fmnt%2Fresource_nvme%2Fscratch%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FP%3E%0A%3COL%20start%3D%2212%22%3E%0A%3CLI%3ERun%20benchmarks%20by%20following%20the%20steps%20in%20the%20README.md%20file%20in%20the%20working%20directory.%20To%20open%20the%20file%3A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%3CFONT%20size%3D%222%22%3Evi%20README.md%3C%2FFONT%3E%3C%2FP%3E%0A%3CP%20style%3D%22%20padding-left%20%3A%2030px%3B%20%22%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBelow%20are%20graphs%20showing%20the%20achieved%20results%20for%20the%20NDm%20A100%20v4%2C%20NC%20A100%20v4%20and%20ND%20A100%20v4%20VMs.%20The%20units%20are%20in%20throughput%2Fsecond%20(samples%20and%20queries).%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22KevinRaines_0-1648829171858.png%22%20style%3D%22width%3A%20455px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360622i7B2023B711D7B754%2Fimage-dimensions%2F455x258%3Fv%3Dv2%22%20width%3D%22455%22%20height%3D%22258%22%20role%3D%22button%22%20title%3D%22KevinRaines_0-1648829171858.png%22%20alt%3D%22KevinRaines_0-1648829171858.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22KevinRaines_1-1648829184471.png%22%20style%3D%22width%3A%20452px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360623i4E777B25B5BE455F%2Fimage-dimensions%2F452x256%3Fv%3Dv2%22%20width%3D%22452%22%20height%3D%22256%22%20role%3D%22button%22%20title%3D%22KevinRaines_1-1648829184471.png%22%20alt%3D%22KevinRaines_1-1648829184471.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22KevinRaines_2-1648829191850.png%22%20style%3D%22width%3A%20448px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360624i9048DFFC987EFFA9%2Fimage-dimensions%2F448x261%3Fv%3Dv2%22%20width%3D%22448%22%20height%3D%22261%22%20role%3D%22button%22%20title%3D%22KevinRaines_2-1648829191850.png%22%20alt%3D%22KevinRaines_2-1648829191850.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22KevinRaines_3-1648829201351.png%22%20style%3D%22width%3A%20448px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F360625iEE07FE79E3B2C4EF%2Fimage-dimensions%2F448x252%3Fv%3Dv2%22%20width%3D%22448%22%20height%3D%22252%22%20role%3D%22button%22%20title%3D%22KevinRaines_3-1648829201351.png%22%20alt%3D%22KevinRaines_3-1648829201351.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EMore%20about%20MLPerf%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3ETo%20learn%20more%20about%20MLCommons%20benchmarks%2C%20visit%20the%20%3CA%20href%3D%22https%3A%2F%2Fmlcommons.org%2Fen%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EMLCommons%3C%2FA%3E%20website.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-3273878%22%20slang%3D%22en-US%22%3E%3CP%3EMicrosoft%20Azure%E2%80%99s%20publicly%20available%20AI%20inferencing%20capabilities%20are%20led%20by%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fndm-a100-v4-series%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3ENDm%20A100%20v4%3C%2FA%3E%2C%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fnda100-v4-series%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3END%20A100%20v4%3C%2FA%3E%20and%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Fnc-a100-v4-series%22%20rel%3D%22noopener%20noreferrer%22%20target%3D%22_blank%22%3ENC%20A100%20v4%3C%2FA%3E%20virtual%20machines%20(VMs)%20powered%20by%20the%20latest%20NVIDIA%20A100%20Tensor%20Core%20GPUs.%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Co-Authors
Version history
Last update:
‎Apr 07 2022 02:10 PM
Updated by: