Unverified Commit 79337c7d authored by Ryan McCormick's avatar Ryan McCormick Committed by GitHub
Browse files

build: support custom TRTLLM build for commits not on main branch (#2021)

parent 95dd9426
......@@ -151,8 +151,7 @@ RUN [ -f /etc/pip/constraint.txt ] && : > /etc/pip/constraint.txt || true && \
fi; \
else \
# Install TensorRT-LLM wheel from the provided index URL, allow dependencies from PyPI
pip install --index-url "${TENSORRTLLM_INDEX_URL}" \
--extra-index-url https://pypi.org/simple \
pip install --extra-index-url "${TENSORRTLLM_INDEX_URL}" \
"${TENSORRTLLM_PIP_WHEEL}" ; \
fi
......@@ -466,8 +465,10 @@ ARG TENSORRTLLM_INDEX_URL="https://pypi.python.org/simple"
COPY --from=dev /workspace/wheels/nixl/*.whl wheelhouse/
COPY --from=wheel_builder /workspace/dist/*.whl wheelhouse/
RUN uv pip install --index-url "${TENSORRTLLM_INDEX_URL}" \
--extra-index-url https://pypi.org/simple \
# NOTE: If a package (tensorrt_llm) exists on both --index-url and --extra-index-url,
# uv will prioritize the --extra-index-url, unless --index-strategy unsafe-best-match
# is also specified. So set the configurable index as a --extra-index-url for prioritization.
RUN uv pip install --extra-index-url "${TENSORRTLLM_INDEX_URL}" \
"${TENSORRTLLM_PIP_WHEEL}" && \
uv pip install ai-dynamo nixl --find-links wheelhouse
......
......@@ -44,7 +44,7 @@ MAIN_DIR=$(dirname "$(readlink -f "$0")")
(cd /tmp && \
# Clone the TensorRT-LLM repository.
if [ ! -d "TensorRT-LLM" ]; then
git clone --single-branch --branch main https://github.com/NVIDIA/TensorRT-LLM.git
git clone https://github.com/NVIDIA/TensorRT-LLM.git
fi
cd TensorRT-LLM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment