Skip to content

Commit 543ba72

Browse files
authored
Update PyTorch and use num_stages=1 for flex attn bwd autotuning to reduce CI time (#4785)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 71cc33b commit 543ba72

File tree

6 files changed

+78
-54
lines changed

6 files changed

+78
-54
lines changed

.github/pins/pytorch.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4869f7117009fb99a57482fce56b00c6163fbce6
1+
6d071bd65de9bdc354f32adf67e00d6e13475e76

.github/workflows/inductor-tests-reusable.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ permissions: read-all
2929
env:
3030
PYTHON_VERSION: "${{ inputs.python_version }}"
3131
PYTORCH_REPO: "${{ inputs.pytorch_repo }}"
32+
TRITON_LESS_FLEX_ATTN_BWD_CONFIGS: 1
3233

3334
jobs:
3435
build:

.github/workflows/inductor-tests-windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ env:
3939
PYTHONIOENCODING: utf-8
4040
PYTHON_VERSION: "${{ inputs.python_version || '3.10' }}"
4141
NEW_WORKSPACE: C:\gh${{ github.run_id }}
42+
TRITON_LESS_FLEX_ATTN_BWD_CONFIGS: 1
4243

4344
jobs:
4445
build:

scripts/patch-pytorch.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ apply_patch ./patch/pytorch_fp64.patch
4040
apply_patch ./patch/pytorch_global_scratch.patch
4141
apply_patch ./patch/test_compile_subprocess.patch
4242
apply_patch ./patch/flex_decoding.patch
43+
apply_patch ./patch/flex_attn_bwd_num_stage_1.patch

0 commit comments

Comments
 (0)