Skip to content

Commit 3439f2b

Browse files
committed
feat(docker): Add TensorRT modelopt
1 parent cfaa00b commit 3439f2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docker/pytorch_base/Dockerfile.prebuilt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
3333
&& /opt/conda/bin/conda clean -ya \
3434
&& /opt/conda/bin/pip install torch==${TORCH_VERSION} torchvision==${TORCHVISION_VERSION} \
3535
tensorrt torch-tensorrt==${TORCH_TENSORRT_VERSION} --extra-index-url https://download.pytorch.org/whl/cu$(echo $CUDA_VERSION | tr -d .) \
36+
&& /opt/conda/bin/pip install "nvidia-modelopt[all]" --extra-index-url https://pypi.nvidia.com \
3637
# && /opt/conda/bin/pip install tensorrt torch-tensorrt==${TORCH_TENSORRT_VERSION} -f https://github.com/NVIDIA/Torch-TensorRT/releases \
3738
&& apt-mark auto '.*' > /dev/null \
3839
&& apt-mark manual $preexistingAptMark ca-certificates > /dev/null \

0 commit comments

Comments
 (0)