diff --git a/.github/workflows/win-build.yml b/.github/workflows/win-build.yml index f1850a9c40..8fc7b5ca06 100644 --- a/.github/workflows/win-build.yml +++ b/.github/workflows/win-build.yml @@ -11,7 +11,7 @@ on: env: FORCE_CUDA: 1 - MAX_JOBS: 4 + MAX_JOBS: 2 DISTUTILS_USE_SDK: 1 # otherwise distutils will complain on windows about multiple versions of msvc XFORMERS_BUILD_TYPE: "Release" @@ -43,12 +43,13 @@ jobs: - name: Setup Runner uses: ./.github/actions/setup-windows-runner with: - cuda: "11.6.2" + # (FAv2 requires cuda 12+) + cuda: "12.1.0" python: "3.8" - name: Install build dependencies run: | - $PY -m pip install wheel setuptools ninja torch==2.1.0 -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu118 + $PY -m pip install wheel setuptools ninja torch==2.1.0 -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu121 git config --global --add safe.directory "*" $PY -c "import torch; print('torch', torch.__version__)" $PY -c "import torch; print('torch.cuda', torch.version.cuda)" @@ -60,4 +61,6 @@ jobs: run: $PY -m pip install -v dist/* - name: Info - run: $PY -m xformers.info + run: | + cd ../../ # So we don't have a folder named `xformers` + XFORMERS_MORE_DETAILS=1 $PY -m xformers.info diff --git a/setup.py b/setup.py index 098bc26cdd..edc8f2ee30 100644 --- a/setup.py +++ b/setup.py @@ -118,9 +118,9 @@ def get_cuda_version(cuda_dir) -> int: def get_flash_attention_extensions(cuda_version: int, extra_compile_args): - # XXX: Not supported on windows yet + # XXX: Not supported on windows for cuda<12 # https://github.com/Dao-AILab/flash-attention/issues/345 - if platform.system() != "Linux": + if platform.system() != "Linux" and cuda_version < 1200: return [] # Figure out default archs to target DEFAULT_ARCHS_LIST = "" diff --git a/third_party/flash-attention b/third_party/flash-attention index 601b4dc48d..7f31e7c16a 160000 --- a/third_party/flash-attention +++ b/third_party/flash-attention @@ -1 +1 @@ -Subproject commit 601b4dc48dbe9d87c468daa2b4c0c8388b83753c +Subproject commit 7f31e7c16a58227e04e0a7aed9ca0066ec8126fe