Skip to content

Commit

Permalink
[TRTLLM] split further for container layers (deepjavalibrary#1297)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qing Lan authored Nov 9, 2023
1 parent c367540 commit 31d7d92
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions serving/docker/tensorrt-llm.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,13 @@ RUN apt-get update && apt-get install -y wget unzip openmpi-bin libopenmpi-dev l
pip3 cache purge && \
apt-get clean -y && rm -rf /var/lib/apt/lists/*

# Install PyTorch and TensorRT
# Install PyTorch
RUN pip install torch==${TORCH_VERSION} transformers==${transformers_version} accelerate==${accelerate_version} ${peft_wheel} sentencepiece \
mpi4py cuda-python==${cuda_python_version} onnx polygraphy datasets pydantic==${pydantic_version} && \
pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com tensorrt==${tensorrtlibs_version} && \
pip3 cache purge

# Install TensorRT and TRT LLM
RUN pip install --no-cache-dir --extra-index-url https://pypi.nvidia.com tensorrt==${tensorrtlibs_version} && \
pip install --no-deps ${trtllm_wheel} && \
pip3 cache purge

Expand Down

0 comments on commit 31d7d92

Please sign in to comment.