[UX] Add flashinfer-cubin as CUDA default dep (#37233)
Signed-off-by: mgoin <mgoin64@gmail.com>
This commit is contained in:
+2
-4
@@ -587,14 +587,12 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
|||||||
--extra-index-url ${PYTORCH_CUDA_INDEX_BASE_URL}/cu$(echo $CUDA_VERSION | cut -d. -f1,2 | tr -d '.') && \
|
--extra-index-url ${PYTORCH_CUDA_INDEX_BASE_URL}/cu$(echo $CUDA_VERSION | cut -d. -f1,2 | tr -d '.') && \
|
||||||
rm /tmp/requirements-cuda.txt /tmp/common.txt
|
rm /tmp/requirements-cuda.txt /tmp/common.txt
|
||||||
|
|
||||||
# Install FlashInfer pre-compiled kernel cache and binaries
|
# Install FlashInfer JIT cache (requires CUDA-version-specific index URL)
|
||||||
# This is ~1.1GB and only changes when FlashInfer version bumps
|
|
||||||
# https://docs.flashinfer.ai/installation.html
|
# https://docs.flashinfer.ai/installation.html
|
||||||
# From versions.json: .flashinfer.version
|
# From versions.json: .flashinfer.version
|
||||||
ARG FLASHINFER_VERSION=0.6.6
|
ARG FLASHINFER_VERSION=0.6.6
|
||||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
uv pip install --system flashinfer-cubin==${FLASHINFER_VERSION} \
|
uv pip install --system flashinfer-jit-cache==${FLASHINFER_VERSION} \
|
||||||
&& uv pip install --system flashinfer-jit-cache==${FLASHINFER_VERSION} \
|
|
||||||
--extra-index-url https://flashinfer.ai/whl/cu$(echo $CUDA_VERSION | cut -d. -f1,2 | tr -d '.') \
|
--extra-index-url https://flashinfer.ai/whl/cu$(echo $CUDA_VERSION | cut -d. -f1,2 | tr -d '.') \
|
||||||
&& flashinfer show-config
|
&& flashinfer show-config
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ torchaudio==2.10.0
|
|||||||
torchvision==0.25.0 # Required for phi3v processor. See https://github.com/pytorch/vision?tab=readme-ov-file#installation for corresponding version
|
torchvision==0.25.0 # Required for phi3v processor. See https://github.com/pytorch/vision?tab=readme-ov-file#installation for corresponding version
|
||||||
# FlashInfer should be updated together with the Dockerfile
|
# FlashInfer should be updated together with the Dockerfile
|
||||||
flashinfer-python==0.6.6
|
flashinfer-python==0.6.6
|
||||||
|
flashinfer-cubin==0.6.6
|
||||||
# Cap nvidia-cudnn-frontend (transitive dep of flashinfer) due to
|
# Cap nvidia-cudnn-frontend (transitive dep of flashinfer) due to
|
||||||
# breaking changes in 1.19.0
|
# breaking changes in 1.19.0
|
||||||
nvidia-cudnn-frontend>=1.13.0,<1.19.0
|
nvidia-cudnn-frontend>=1.13.0,<1.19.0
|
||||||
|
|||||||
Reference in New Issue
Block a user