File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ ENV CUDA_HOME="/usr/local/cuda" \
8686# # CUDA Development ############################################################
8787FROM cuda-base AS cuda-devel
8888
89+ # Note:- check the torch installation below as that is hardcoded to cuda 12.1
8990# Ref: https://developer.nvidia.com/nccl/nccl-legacy-downloads
9091ENV NV_CUDA_CUDART_DEV_VERSION=12.1.55-1 \
9192 NV_NVML_DEV_VERSION=12.1.55-1 \
@@ -155,8 +156,10 @@ ENV PIP_NO_BINARY=mamba-ssm,mamba_ssm
155156# Install from the wheel
156157RUN --mount=type=cache,target=/home/${USER}/.cache/pip,uid=${USER_UID} \
157158 python -m pip install --user wheel && \
158- python -m pip install --user "$(head bdist_name)" && \
159- python -m pip install --user "$(head bdist_name)[flash-attn]" && \
159+ python -m pip install --user "$(head bdist_name)"
160+
161+ RUN --mount=type=cache,target=/home/${USER}/.cache/pip,uid=${USER_UID} \
162+ python -m pip install --user --no-build-isolation "$(head bdist_name)[flash-attn]" && \
160163 python -m pip install --user --no-build-isolation "$(head bdist_name)[mamba]"
161164
162165# fms_acceleration_peft = PEFT-training, e.g., 4bit QLoRA
You can’t perform that action at this time.
0 commit comments