-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rel 22.03 #124
Rel 22.03 #124
Changes from all commits
66f4418
65b1794
e9fe6a6
287f422
e463b1e
f2fb976
5ce02f9
8092a56
caa3ffd
21d3b37
a851fbb
3d8af9d
695a6e3
ba708a3
62aaaf5
97fa059
7acab21
335fa9e
10a9e05
bf837b0
bd53c24
1e3c376
2a662de
3a60463
ee87fe0
2830f61
af01696
1c5cf12
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# syntax=docker/dockerfile:1.2 | ||
ARG TRITON_VERSION=22.01 | ||
ARG TRITON_VERSION=22.02 | ||
ARG IMAGE=nvcr.io/nvidia/tritonserver:${TRITON_VERSION}-py3-min | ||
FROM ${IMAGE} | ||
|
||
|
@@ -8,6 +8,7 @@ ARG CORE_VER=main | |
ARG RMM_VER=v21.12.00 | ||
ARG CUDF_VER=v21.12.02 | ||
ARG NVTAB_VER=main | ||
ARG NVTAB_BACKEND_VER=main | ||
ARG MODELS_VER=main | ||
ARG HUGECTR_VER=master | ||
ARG HUGECTR_BACKEND_VER=main | ||
|
@@ -29,12 +30,13 @@ RUN apt update -y --fix-missing && \ | |
apt-get install -y --no-install-recommends \ | ||
clang-format \ | ||
libboost-serialization-dev \ | ||
libcurl4-openssl-dev \ | ||
libssl-dev \ | ||
libtbb-dev \ | ||
protobuf-compiler \ | ||
python3-dev \ | ||
python3-pip \ | ||
rapidjson-dev \ | ||
zlib1g-dev && \ | ||
rapidjson-dev &&\ | ||
apt-get autoremove -y && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
@@ -44,7 +46,7 @@ RUN ln -s /usr/bin/python3 /usr/bin/python | |
# Install multiple packages | ||
RUN pip install cupy-cuda115 nvidia-pyindex pybind11 pytest protobuf transformers==4.12 tensorflow-metadata | ||
RUN pip install betterproto cachetools graphviz nvtx scipy sklearn | ||
RUN pip install numba --no-deps | ||
RUN pip install pandas numba==0.55.1 numpy==1.21.5 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to fix versions here? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For now we need to change them before installin Merlin Software. We need to update Merlin Software prerequisites |
||
RUN pip install tritonclient[all] grpcio-channelz | ||
RUN pip install dask==2021.11.2 distributed==2021.11.2 dask[dataframe]==2021.11.2 dask-cuda | ||
RUN pip install git+https://github.com/rapidsai/asvdb.git@main | ||
|
@@ -59,7 +61,7 @@ RUN git clone --branch v1.9.2 https://github.com/gabime/spdlog.git build-env && | |
mkdir build && cd build && cmake .. && make -j && make install && \ | ||
popd && \ | ||
rm -rf build-env | ||
|
||
# Install arrow | ||
ENV ARROW_HOME=/usr/local | ||
RUN git clone --branch apache-arrow-5.0.0 --recurse-submodules https://github.com/apache/arrow.git build-env && \ | ||
|
@@ -156,7 +158,7 @@ ENV PYTHONPATH=/models:$PYTHONPATH | |
# Install NVTabular Triton Backend | ||
ARG TRITON_VERSION | ||
RUN git clone https://github.com/NVIDIA-Merlin/nvtabular_triton_backend.git build-env && \ | ||
cd build-env && git checkout ${NVTAB_VER} && cd .. && \ | ||
cd build-env && git checkout ${NVTAB_BACKEND_VER} && cd .. && \ | ||
pushd build-env && \ | ||
mkdir build && \ | ||
cd build && \ | ||
|
@@ -165,7 +167,7 @@ RUN git clone https://github.com/NVIDIA-Merlin/nvtabular_triton_backend.git buil | |
-D TRITON_CORE_REPO_TAG="r$TRITON_VERSION" \ | ||
-D TRITON_BACKEND_REPO_TAG="r$TRITON_VERSION" .. \ | ||
&& make -j && \ | ||
mkdir /opt/tritonserver/backends/nvtabular && \ | ||
mkdir -p /opt/tritonserver/backends/nvtabular && \ | ||
cp libtriton_nvtabular.so /opt/tritonserver/backends/nvtabular/ && \ | ||
popd && \ | ||
rm -rf build-env | ||
|
@@ -201,21 +203,16 @@ RUN apt-get update -y && \ | |
./configure && make -j$(nproc) && make install && \ | ||
rm -rf /var/tmp/librdkafka | ||
|
||
# Install Java | ||
RUN mkdir -p /var/tmp && cd /var/tmp && wget https://download.java.net/java/GA/jdk16.0.2/d4a915d82b4c4fbb9bde534da945d746/7/GPL/openjdk-16.0.2_linux-x64_bin.tar.gz && \ | ||
ARG INSTALL_HDFS=false | ||
RUN if [ "$INSTALL_HDFS" == "true" ]; then \ | ||
mkdir -p /var/tmp && cd /var/tmp && wget https://download.java.net/java/GA/jdk16.0.2/d4a915d82b4c4fbb9bde534da945d746/7/GPL/openjdk-16.0.2_linux-x64_bin.tar.gz && \ | ||
mkdir -p /usr/java && tar -zxvf ./openjdk-16.0.2_linux-x64_bin.tar.gz -C /usr/java && \ | ||
rm -rf ./openjdk-16.0.2_linux-x64_bin.tar.gz | ||
|
||
#Intall libhdfs client | ||
RUN mkdir -p /var/tmp && cd /var/tmp && wget https://archive.apache.org/dist/hadoop/common/hadoop-3.3.1/hadoop-3.3.1.tar.gz && \ | ||
rm -rf ./openjdk-16.0.2_linux-x64_bin.tar.gz && \ | ||
mkdir -p /var/tmp && cd /var/tmp && wget https://archive.apache.org/dist/hadoop/common/hadoop-3.3.1/hadoop-3.3.1.tar.gz && \ | ||
tar -zxvf ./hadoop-3.3.1.tar.gz && rm -rf hadoop-3.3.1.tar.gz && \ | ||
cp ./hadoop-3.3.1/lib/native/libhdfs.so.0.0.0 /usr/local/lib/ && cp hadoop-3.3.1/include/hdfs.h /usr/local/include/ && \ | ||
mv ./hadoop-3.3.1 /usr/local/hadoop && cd /usr/local/lib/ && ln -s libhdfs.so.0.0.0 libhdfs.so && \ | ||
rm /usr/local/hadoop/share/hadoop/common/lib/jackson-databind-2.10.5.1.jar && rm /usr/local/hadoop/share/hadoop/hdfs/lib/jackson-databind-2.10.5.1.jar && \ | ||
wget https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.13.1/jackson-databind-2.13.1.jar && \ | ||
cp jackson-databind-2.13.1.jar /usr/local/hadoop/share/hadoop/hdfs/lib/ && \ | ||
mv jackson-databind-2.13.1.jar /usr/local/hadoop/share/hadoop/common/lib/ && \ | ||
rm /usr/local/hadoop/share/hadoop/common/lib/log4j-1.2.17.jar && rm /usr/local/hadoop/share/hadoop/hdfs/lib/log4j-1.2.17.jar | ||
mv ./hadoop-3.3.1 /usr/local/hadoop && cd /usr/local/lib/ && ln -s libhdfs.so.0.0.0 libhdfs.so; \ | ||
fi | ||
|
||
ENV JAVA_HOME=/usr/java/jdk-16.0.2 | ||
ENV PATH=$JAVA_HOME/bin:$PATH | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# syntax=docker/dockerfile:1 | ||
ARG IMAGE=nvcr.io/nvidia/tensorflow:22.01-tf2-py3 | ||
ARG IMAGE=nvcr.io/nvidia/tensorflow:22.02-tf2-py3 | ||
FROM ${IMAGE} | ||
|
||
# Args | ||
|
@@ -26,6 +26,7 @@ RUN apt update -y --fix-missing && \ | |
clang-format \ | ||
graphviz \ | ||
libaio-dev \ | ||
libexpat1-dev \ | ||
libtbb-dev \ | ||
protobuf-compiler && \ | ||
apt-get autoremove -y && \ | ||
|
@@ -39,9 +40,17 @@ RUN apt remove --purge cmake -y && wget http://www.cmake.org/files/v3.21/cmake-3 | |
# Install multiple packages | ||
RUN pip install nvidia-pyindex mpi4py onnx onnxruntime | ||
RUN pip install betterproto graphviz pybind11 pytest | ||
RUN pip install --upgrade ipython | ||
RUN pip install numba==0.55.1 numpy==1.21.5 --no-deps | ||
RUN pip install --ignore-installed llvmlite==0.38.0 --no-deps | ||
RUN pip install tritonclient[all] grpcio-channelz | ||
RUN pip install git+https://github.com/rapidsai/asvdb.git@main | ||
|
||
# Install Merlin Core | ||
RUN git clone https://github.com/NVIDIA-Merlin/core.git /core/ && \ | ||
cd /core/ && git checkout ${CORE_VER} && pip install --no-deps -e . | ||
ENV PYTHONPATH=/core:$PYTHONPATH | ||
|
||
# Install NVTabular | ||
ENV PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION='python' | ||
RUN git clone https://github.com/NVIDIA-Merlin/NVTabular.git /nvtabular/ && \ | ||
|
@@ -88,21 +97,16 @@ RUN apt-get update -y && \ | |
./configure && make -j$(nproc) && make install && \ | ||
rm -rf /var/tmp/librdkafka | ||
|
||
#Install Java | ||
RUN mkdir -p /var/tmp && cd /var/tmp && wget https://download.java.net/java/GA/jdk16.0.2/d4a915d82b4c4fbb9bde534da945d746/7/GPL/openjdk-16.0.2_linux-x64_bin.tar.gz && \ | ||
ARG INSTALL_HDFS=false | ||
RUN if [ "$INSTALL_HDFS" == "true" ]; then \ | ||
mkdir -p /var/tmp && cd /var/tmp && wget https://download.java.net/java/GA/jdk16.0.2/d4a915d82b4c4fbb9bde534da945d746/7/GPL/openjdk-16.0.2_linux-x64_bin.tar.gz && \ | ||
mkdir -p /usr/java && tar -zxvf ./openjdk-16.0.2_linux-x64_bin.tar.gz -C /usr/java && \ | ||
rm -rf ./openjdk-16.0.2_linux-x64_bin.tar.gz | ||
|
||
#Intall libhdfs client | ||
RUN mkdir -p /var/tmp && cd /var/tmp && wget https://archive.apache.org/dist/hadoop/common/hadoop-3.3.1/hadoop-3.3.1.tar.gz && \ | ||
rm -rf ./openjdk-16.0.2_linux-x64_bin.tar.gz && \ | ||
mkdir -p /var/tmp && cd /var/tmp && wget https://archive.apache.org/dist/hadoop/common/hadoop-3.3.1/hadoop-3.3.1.tar.gz && \ | ||
tar -zxvf ./hadoop-3.3.1.tar.gz && rm -rf hadoop-3.3.1.tar.gz && \ | ||
cp ./hadoop-3.3.1/lib/native/libhdfs.so.0.0.0 /usr/local/lib/ && cp hadoop-3.3.1/include/hdfs.h /usr/local/include/ && \ | ||
mv ./hadoop-3.3.1 /usr/local/hadoop && cd /usr/local/lib/ && ln -s libhdfs.so.0.0.0 libhdfs.so && \ | ||
rm /usr/local/hadoop/share/hadoop/common/lib/jackson-databind-2.10.5.1.jar && rm /usr/local/hadoop/share/hadoop/hdfs/lib/jackson-databind-2.10.5.1.jar && \ | ||
wget https://repo1.maven.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.13.1/jackson-databind-2.13.1.jar && \ | ||
cp jackson-databind-2.13.1.jar /usr/local/hadoop/share/hadoop/hdfs/lib/ && \ | ||
mv jackson-databind-2.13.1.jar /usr/local/hadoop/share/hadoop/common/lib/ && \ | ||
rm /usr/local/hadoop/share/hadoop/common/lib/log4j-1.2.17.jar && rm /usr/local/hadoop/share/hadoop/hdfs/lib/log4j-1.2.17.jar | ||
mv ./hadoop-3.3.1 /usr/local/hadoop && cd /usr/local/lib/ && ln -s libhdfs.so.0.0.0 libhdfs.so ; \ | ||
fi | ||
|
||
ENV JAVA_HOME=/usr/java/jdk-16.0.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we even need java if we're not installing hdfs? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. HugeCTR wanted to keep it as optional. They will be using it for dev |
||
ENV PATH=$JAVA_HOME/bin:$PATH | ||
|
@@ -169,7 +173,10 @@ ENV PYTHONPATH=/hugectr/onnx_converter:$PYTHONPATH | |
RUN rm /usr/local/cuda/lib64/stubs/libcuda.so.1 | ||
|
||
# Clean up | ||
RUN pip install numba==0.53.1 numpy==1.22.2 --no-deps | ||
RUN rm -rf /repos | ||
RUN rm -rf /usr/local/share/jupyter/lab/staging/node_modules/marked | ||
RUN rm -rf /usr/local/share/jupyter/lab/staging/node_modules/node-fetch | ||
|
||
HEALTHCHECK NONE | ||
CMD ["/bin/bash"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to make this a range? >= ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a variable, it it not a comparison, it is an assignation