Skip to content

Commit 0683316

Browse files
committed
install cudnn9-cuda-12 and mamba separately
Signed-off-by: Anh Uong <[email protected]>
1 parent 169e865 commit 0683316

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ RUN dnf config-manager \
9999
libcublas-devel-12-1-${NV_LIBCUBLAS_DEV_VERSION} \
100100
libnpp-devel-12-1-${NV_LIBNPP_DEV_VERSION} \
101101
libnccl-devel-${NV_LIBNCCL_DEV_PACKAGE_VERSION} \
102+
cudnn9-cuda-12 \
102103
&& dnf clean all
103104

104105
ENV LIBRARY_PATH="$CUDA_HOME/lib64/stubs"
@@ -135,7 +136,8 @@ RUN if [[ -z "${WHEEL_VERSION}" ]]; \
135136
RUN --mount=type=cache,target=/home/${USER}/.cache/pip,uid=${USER_UID} \
136137
python -m pip install --user wheel && \
137138
python -m pip install --user "$(head bdist_name)" && \
138-
python -m pip install --user "$(head bdist_name)[flash-attn]"
139+
python -m pip install --user "$(head bdist_name)[flash-attn]" && \
140+
python -m pip install --user "$(head bdist_name)[mamba]"
139141

140142
# fms_acceleration_peft = PEFT-training, e.g., 4bit QLoRA
141143
# fms_acceleration_foak = Fused LoRA and triton kernels

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ dependencies = [
3838
"protobuf>=5.28.0,<6.0.0",
3939
"datasets>=2.15.0,<3.0",
4040
"simpleeval>=0.9.13,<1.0",
41-
"mamba_ssm[causal-conv1d] @ git+https://github.com/state-spaces/mamba.git",
4241
]
4342

4443
[project.optional-dependencies]
@@ -47,6 +46,7 @@ flash-attn = ["flash-attn>=2.5.3,<3.0"]
4746
aim = ["aim>=3.19.0,<4.0"]
4847
fms-accel = ["fms-acceleration>=0.1"]
4948
gptq-dev = ["auto_gptq>0.4.2", "optimum>=1.15.0"]
49+
mamba = ["mamba_ssm[causal-conv1d] @ git+https://github.com/state-spaces/mamba.git"]
5050

5151

5252
[tool.setuptools.packages.find]

0 commit comments

Comments
 (0)