Skip to content

Commit ca2839a

Browse files
committed
Re-disable dropout and alibi (not currently implemented) to save binary size.
1 parent 0123e0d commit ca2839a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ if(CCACHE_PROGRAM)
3434
message(STATUS "Using ccache: ${CCACHE_PROGRAM}")
3535
endif()
3636

37-
# Options from environment variables
38-
option(FLASH_ATTENTION_FORCE_BUILD "Force building from source" OFF)
39-
option(FLASH_ATTENTION_SKIP_CUDA_BUILD "Skip CUDA build" OFF)
40-
option(FLASH_ATTENTION_FORCE_CXX11_ABI "Force using C++11 ABI" OFF)
41-
4237
# CUDA handling
4338
# Get CUDA architectures from environment or use default
4439
if(DEFINED ENV{FLASH_ATTN_CUDA_ARCHS})
@@ -62,6 +57,8 @@ set(CUDA_FLAGS
6257
-U__CUDA_NO_HALF_CONVERSIONS__
6358
-U__CUDA_NO_HALF2_OPERATORS__
6459
-U__CUDA_NO_BFLOAT16_CONVERSIONS__
60+
-DFLASHATTENTION_DISABLE_DROPOUT=1
61+
-DFLASHATTENTION_DISABLE_ALIBI=1
6562
)
6663

6764
# Collect source files

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ provider = "scikit_build_core.metadata.regex"
6060
input = "src/flash_attn_jax/__init__.py"
6161

6262
[tool.cibuildwheel]
63-
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64:latest"
63+
# manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64:latest"
6464
before-all = "bash scripts/install-cuda-linux.sh"
6565
build = "cp312-manylinux_x86_64"
6666
repair-wheel-command = "auditwheel repair --exclude=libcudart.so* -w {dest_dir} {wheel}"

0 commit comments

Comments
 (0)