Skip to content

Commit

Permalink
Compile FA in local directory to enable docker image generation (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
yitongh authored Oct 14, 2024
1 parent fab18e0 commit 5d9590e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bazel/flash_attn.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ genrule(
name = "build_flash_attn",
srcs = ["setup.py"],
outs = ["flash_attn_cuda.so"],
cmd = ';'.join(['pushd external/flash_attn/',
'FLASH_ATTENTION_FORCE_BUILD=TRUE python setup.py bdist_wheel',
cmd = ';'.join(['pushd third_party/flash-attention/',
'MAX_JOBS=50 FLASH_ATTENTION_FORCE_BUILD=TRUE python setup.py bdist_wheel 2>&1 | tee build.log',
'popd',
'cp external/flash_attn/build/*/*.so $(location flash_attn_cuda.so)']),
'cp third_party/flash-attention/build/*/*.so $(location flash_attn_cuda.so)']),
)

0 comments on commit 5d9590e

Please sign in to comment.