---
id: pr-flash-attention-2485
repo: Dao-AILab/flash-attention
pr: 2485
title: '[CuTe,Flex] Wire up interface for flex autograd support'
author: reubenconducts
date: '2026-04-23'
url: https://github.com/Dao-AILab/flash-attention/pull/2485
source_category: upstream-code
architectures:
- sm100
tags:
- cute
techniques: []
hardware_features: []
kernel_types:
- attention
languages:
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: ac6f2eb5413748c68192aa384a40a38d60ad6abd
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/interface.py
- tests/cute/test_mask_mod.py
- tests/cute/test_score_mod.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2485
head_ref_oid: 4f86873dbfd99385d7b912fc4bb53045e6d6299b
---
# [CuTe,Flex] Wire up interface for flex autograd support

- Repository: `Dao-AILab/flash-attention`
- PR: [2485](https://github.com/Dao-AILab/flash-attention/pull/2485)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `flash_attn/cute/interface.py`
- `tests/cute/test_mask_mod.py`
- `tests/cute/test_score_mod.py`

## Evidence Bundle

`evidence/pull-bundles/flash-attention/gh-2485`
