Skip to content

Commit 2626e9b

Browse files
kapil27cursoragent
authored andcommitted
fix: install rocm280 flash-attn outside lockfile on main
Flash-attn build hooks can fail during micropipenv lockfile installation with torch import errors in this image path. Remove flash-attn from lockfile resolution and install it explicitly with no-build-isolation after base dependencies are installed. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 067f0b8 commit 2626e9b

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

images/runtime/training/py312-rocm64-torch280/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ RUN export TMP_DIR=$(mktemp -d) \
7878
RUN chmod -R g+w /opt/app-root/lib/python3.12/site-packages && \
7979
fix-permissions /opt/app-root -P
8080

81+
# Install flash-attn outside lockfile resolution; it needs torch visible at build time.
82+
RUN pip install --no-build-isolation --no-cache-dir --no-deps flash-attn==2.8.3 && \
83+
fix-permissions /opt/app-root -P
84+
8185
# Restore user workspace
8286
USER 1001
8387

images/runtime/training/py312-rocm64-torch280/Pipfile.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)