Skip to content

Commit 717decc

Browse files
authored
fix: flash attn build inside nvcr dockerfile (#646)
Signed-off-by: Dushyant Behl <dushyantbehl@in.ibm.com>
1 parent 25319ad commit 717decc

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build/nvcr.Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ RUN pip install --upgrade --force-reinstall torch torchaudio torchvision --index
4747
# Install main package + flash attention
4848
COPY . ${SOURCE_DIR}
4949
RUN cd ${SOURCE_DIR}
50-
RUN pip install --no-cache-dir ${SOURCE_DIR} && \
51-
pip install --no-cache-dir ${SOURCE_DIR}[flash-attn]
50+
51+
RUN pip install --no-cache-dir ${SOURCE_DIR}
52+
RUN pip install --user --no-build-isolation ${SOURCE_DIR}[flash-attn]
5253

5354
# Optional extras
5455
RUN if [[ "${ENABLE_FMS_ACCELERATION}" == "true" ]]; then \

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ dependencies = [
3030
"accelerate>=1.9.0,<2.0.0",
3131
"transformers>=4.55.0,<=4.55.4",
3232
"torch>2.7.0,<2.9.0",
33+
"torchvision<0.24",
3334
"sentencepiece>=0.1.99,<0.3",
3435
"tokenizers<=0.22",
3536
"tqdm>=4.66.2,<5.0",

0 commit comments

Comments
 (0)