Skip to content

Commit db6aa4e

Browse files
authored
Update 'build.py' to allow customer set the dependency group for wheel … (#8525)
1 parent 116c3b4 commit db6aa4e

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

build.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,16 +1240,16 @@ def create_dockerfile_linux(
12401240
argmap, backends, FLAGS.enable_gpu, target_machine()
12411241
)
12421242

1243-
df += """
1243+
df += f"""
12441244
WORKDIR /opt
12451245
COPY --chown=1000:1000 build/install tritonserver
12461246
12471247
WORKDIR /opt/tritonserver
12481248
COPY --chown=1000:1000 NVIDIA_Deep_Learning_Container_License.pdf .
12491249
RUN find /opt/tritonserver/python -maxdepth 1 -type f -name \\
1250-
"tritonserver-*.whl" | xargs -I {} pip install --upgrade {}[all] && \\
1250+
"tritonserver-*.whl" | xargs -I {{}} pip install --upgrade {{}}[{FLAGS.triton_wheels_dependencies_group}] && \\
12511251
find /opt/tritonserver/python -maxdepth 1 -type f -name \\
1252-
"tritonfrontend-*.whl" | xargs -I {} pip install --upgrade {}[all]
1252+
"tritonfrontend-*.whl" | xargs -I {{}} pip install --upgrade {{}}[{FLAGS.triton_wheels_dependencies_group}]
12531253
12541254
RUN pip3 install -r python/openai/requirements.txt
12551255
@@ -2784,6 +2784,13 @@ def enable_all():
27842784
" - 'build_public_vllm': A flag (default is 'true') indicating whether to build the public VLLM version.\n\n"
27852785
"Ensure that the required environment variables for these secrets are set before running the build.",
27862786
)
2787+
parser.add_argument(
2788+
"--triton-wheels-dependencies-group",
2789+
required=False,
2790+
type=str,
2791+
default="all",
2792+
help="The group of dependencies for Triton wheels to be installed. Default value is 'all'.",
2793+
)
27872794
FLAGS = parser.parse_args()
27882795

27892796
if FLAGS.image is None:

0 commit comments

Comments
 (0)