|
1 | 1 | # Multi-stage Dockerfile |
2 | 2 | ARG BASE_IMAGE=nvcr.io/nvidia/pytorch |
3 | 3 | ARG TRITON_IMAGE=nvcr.io/nvidia/tritonserver |
4 | | -ARG BASE_TAG=25.08-py3 |
5 | | -ARG TRITON_BASE_TAG=25.08-py3 |
| 4 | +ARG BASE_TAG=25.10-py3 |
| 5 | +# [TODO] Update to NVIDIA Triton 25.10 when it's available |
| 6 | +ARG TRITON_BASE_TAG=25.09-py3 |
6 | 7 | ARG DEVEL_IMAGE=devel |
7 | 8 |
|
8 | 9 | FROM ${BASE_IMAGE}:${BASE_TAG} AS base |
@@ -71,26 +72,7 @@ RUN GITHUB_MIRROR=${GITHUB_MIRROR} bash ./install.sh --mpi4py && rm install_mpi4 |
71 | 72 | ARG TORCH_INSTALL_TYPE="skip" |
72 | 73 | RUN TORCH_INSTALL_TYPE=${TORCH_INSTALL_TYPE} bash ./install.sh --pytorch && rm install_pytorch.sh |
73 | 74 |
|
74 | | -RUN bash ./install.sh --opencv && bash ./install.sh --protobuf && rm install.sh |
75 | | - |
76 | | -# wait for new triton to be published |
77 | | -# Rename pytorch_triton package to triton |
78 | | -RUN if [ -f /etc/redhat-release ]; then \ |
79 | | - echo "Rocky8 detected, skipping symlink and ldconfig steps"; \ |
80 | | - else \ |
81 | | - cd /usr/local/lib/python3.12/dist-packages/ && \ |
82 | | - ls -la | grep pytorch_triton && \ |
83 | | - mv pytorch_triton-3.3.1+gitc8757738.dist-info triton-3.3.1+gitc8757738.dist-info && \ |
84 | | - cd triton-3.3.1+gitc8757738.dist-info && \ |
85 | | - echo "Current directory: $(pwd)" && \ |
86 | | - echo "Files in directory:" && \ |
87 | | - ls -la && \ |
88 | | - sed -i 's/^Name: pytorch-triton/Name: triton/' METADATA && \ |
89 | | - sed -i 's|pytorch_triton-3.3.1+gitc8757738.dist-info/|triton-3.3.1+gitc8757738.dist-info/|g' RECORD && \ |
90 | | - echo "METADATA after update:" && \ |
91 | | - grep "^Name:" METADATA; \ |
92 | | - fi |
93 | | - |
| 75 | +RUN bash ./install.sh --opencv && rm install.sh |
94 | 76 |
|
95 | 77 | FROM ${TRITON_IMAGE}:${TRITON_BASE_TAG} AS triton |
96 | 78 |
|
|
0 commit comments