-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #973 from anarkiwi/orin
build Orin torchserve.
- Loading branch information
Showing
6 changed files
with
88 additions
and
2 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
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,9 @@ | ||
FROM nvcr.io/nvidia/l4t-pytorch:r35.2.1-pth2.0-py3 | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
WORKDIR /root | ||
COPY torchserve/install-orin-torchserve.sh /torchserve/install-orin-torchserve.sh | ||
RUN /torchserve/install-orin-torchserve.sh | ||
RUN /usr/local/bin/torchserve --help | ||
COPY torchserve/config.properties /torchserve/config.properties | ||
COPY torchserve/torchserve-entrypoint.sh /torchserve/torchserve-entrypoint.sh | ||
CMD ["/torchserve/torchserve-entrypoint.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
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,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
apt-get update && \ | ||
apt-get install -y \ | ||
git \ | ||
python3-pip \ | ||
openjdk-17-jdk \ | ||
wget \ | ||
numactl | ||
apt-get purge -y opencv-python && \ | ||
pip install "opencv-python<4.8.0.76" && \ | ||
echo /usr/local/lib/python3.8/dist-packages/opencv_python.libs > /etc/ld.so.conf.d/opencv.conf && \ | ||
ldconfig && \ | ||
pip config set global.no-cache-dir false && \ | ||
git clone https://github.com/pytorch/serve -b v0.9.0 && \ | ||
cd serve && \ | ||
pip install -r requirements/common.txt && \ | ||
pip install -r requirements/common_gpu.txt && \ | ||
pip install -r requirements/torch_common.txt && \ | ||
pip install . && \ | ||
cd .. && \ | ||
rm -rf serve |