Skip to content

Commit f083414

Browse files
committed
add manual torch install to the dockerfile
Signed-off-by: Dushyant Behl <dushyantbehl@in.ibm.com>
1 parent 1bb7e10 commit f083414

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

build/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ ENV CUDA_HOME="/usr/local/cuda" \
8686
## CUDA Development ############################################################
8787
FROM 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
9091
ENV 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
156157
RUN --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

0 commit comments

Comments
 (0)