Skip to content

Commit

Permalink
skip onnxruntime-gpu requirement on arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
AdeelH committed Mar 29, 2024
1 parent 7b679e6 commit 8f8dd56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ RUN pip install sagemaker_pytorch_training==2.8.1
ENV SAGEMAKER_TRAINING_MODULE=sagemaker_pytorch_container.training:main

# Install a onnxruntime-gpu version compatible with CUDA 12. Specifying
# --extra-index-url in requirements.txt seems to cause problems witht the
# --extra-index-url in requirements.txt seems to cause problems with the
# RTD build.
RUN pip uninstall onnxruntime-gpu -y && \
pip install --upgrade onnxruntime-gpu==1.17 --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
RUN if [ "${TARGETARCH}" != "arm64" ]; then \
pip install --upgrade onnxruntime-gpu==1.17 --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/; fi

CMD ["bash"]

0 comments on commit 8f8dd56

Please sign in to comment.