Skip to content

Commit

Permalink
Remove packages that are only needed for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
krishung5 committed Oct 12, 2023
1 parent 2e262e1 commit aaaaebf
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,20 +1349,17 @@ def dockerfile_prepare_container_linux(argmap, backends, enable_gpu, target_mach
rm -fr ${TRT_ROOT}/doc ${TRT_ROOT}/onnx_graphsurgeon ${TRT_ROOT}/python && \
rm -fr ${TRT_ROOT}/samples ${TRT_ROOT}/targets/${ARCH}-linux-gnu/samples
# Install required packages for TRT-LLM models
RUN python3 -m pip install --upgrade pip && \
pip3 install transformers && \
pip3 install torch
# Uninstall unused nvidia packages
RUN if pip freeze | grep -q "nvidia.*"; then \
pip freeze | grep "nvidia.*" | xargs pip uninstall -y; \
fi
RUN pip cache purge
# Install required packages for example models
RUN python3 -m pip install --upgrade pip && \
pip3 install transformers && \
pip3 install torch && \
pip3 install tritonclient[all] && \
pip3 install pandas && \
pip3 install tabulate
ENV LD_LIBRARY_PATH=/usr/local/tensorrt/lib/:/opt/tritonserver/backends/tensorrtllm:$LD_LIBRARY_PATH
"""

Expand Down

0 comments on commit aaaaebf

Please sign in to comment.