-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated baremetal DLRMv2 readme (#1910)
* Updated baremetal DLRMv2 readme Co-authored-by: Srikanth Ramakrishna <srikanth.ramakrishna@intel.com>
- Loading branch information
1 parent
c598c81
commit 303de0c
Showing
12 changed files
with
224 additions
and
73 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
46 changes: 46 additions & 0 deletions
46
docker/max-gpu/pytorch-dlrmv2-inference/pytorch-max-series-dlrmv2-inference.Dockerfile
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,46 @@ | ||
# Copyright (c) 2023 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# ============================================================================ | ||
|
||
ARG PYT_BASE_IMAGE="intel/intel-extension-for-pytorch" | ||
ARG PYT_BASE_TAG="2.1.10-xpu-pip-base" | ||
|
||
FROM ${PYT_BASE_IMAGE}:${PYT_BASE_TAG} | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /workspace/pytorch-max-series-dlrmv2-inference/models | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl \ | ||
intel-oneapi-mpi-devel=2021.11.0-49493 \ | ||
intel-oneapi-ccl=2021.11.2-5 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
COPY models_v2/pytorch/torchrec_dlrm/inference/gpu . | ||
COPY models_v2/common common | ||
|
||
RUN python -m pip install -r requirements.txt | ||
|
||
ENV LD_LIBRARY_PATH=/opt/intel/oneapi/ccl/2021.11/lib/:/opt/intel/oneapi/mpi/2021.11/opt/mpi/libfabric/lib:/opt/intel/oneapi/mpi/2021.11/lib:$LD_LIBRARY_PATH | ||
ENV LIBRARY_PATH=/opt/intel/oneapi/mpi/2021.11/lib:/opt/intel/oneapi/ccl/2021.11/lib/ | ||
ENV PATH=/opt/intel/oneapi/mpi/2021.11/opt/mpi/libfabric/bin:/opt/intel/oneapi/mpi/2021.11/bin:$PATH | ||
ENV CCL_ROOT=/opt/intel/oneapi/ccl/2021.11 | ||
ENV I_MPI_ROOT=/opt/intel/oneapi/mpi/2021.11 | ||
ENV FI_PROVIDER_PATH=/opt/intel/oneapi/mpi/2021.11/opt/mpi/libfabric/lib/prov:/usr/lib/x86_64-linux-gnu/libfabric | ||
|
||
COPY LICENSE licenses/LICENSE | ||
COPY third_party licenses/third_party |
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,22 @@ | ||
fp16-distributed-real-data-inference: | ||
img: ${REGISTRY}/aiops/mlops-ci:b-${GITHUB_RUN_NUMBER:-0}-recommendation-pytorch-max-gpu-dlrmv2-inference | ||
cmd: bash run_model.sh | ||
ipc: host | ||
device: /dev/dri | ||
env: | ||
PRECISION: FP16 | ||
BATCH_SIZE: '65536' | ||
OUTPUT_DIR: /tmp | ||
MULTI_TILE: 'True' | ||
PLATFORM: Max | ||
DATASET_DIR: /var/torchrec-dlrm-v2 | ||
WEIGHT_DIR: /var/torchrec-dlrm-v2-weights | ||
volumes: | ||
- src: /var/torchrec-dlrm-v2 | ||
dst: /var/torchrec-dlrm-v2 | ||
- src: /dev/dri | ||
dst: /dev/dri | ||
- src: /var/torchrec-dlrm-v2-weights | ||
dst: /var/torchrec-dlrm-v2-weights | ||
- src: /tmp | ||
dst: /tmp |
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
37 changes: 37 additions & 0 deletions
37
models_v2/pytorch/torchrec_dlrm/inference/gpu/ddp-dlrm-terabyte.py
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,37 @@ | ||
# | ||
# Copyright (c) 2023 Intel Corporation | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
"""Consts for ddp-dlrm-terabyte inference.""" | ||
|
||
ACC = { | ||
"type": "total", | ||
"pattern": r"AUROC over test set: (\d+.\d+)", | ||
"unit": "AUROC", | ||
"number_of_partials": 2, | ||
} | ||
|
||
|
||
PERF = { | ||
"type": "max", | ||
"pattern": r"avg eval time per iter at ITER: 45, (\d+.\d+) s", | ||
"inverse": True, | ||
"multiply": False, | ||
"use_batch_size": True, | ||
"unit": "samples/s", | ||
} | ||
|
||
FUNCTIONAL = { | ||
"pattern": r"AUROC over test set: (\d+.\d+)", | ||
} |
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 |
---|---|---|
|
@@ -2,3 +2,4 @@ fbgemm-gpu==0.3.2 | |
torchmetrics==0.11.0 | ||
torchrec==0.3.2 | ||
torchsnapshot | ||
typing-extensions!=4.7.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
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.