---
id: pr-flash-attention-2301
repo: Dao-AILab/flash-attention
pr: 2301
title: 'Fix GQA crash in cute FLASH backend: init load_Q before conditional'
author: platers
date: '2026-03-03'
url: https://github.com/Dao-AILab/flash-attention/pull/2301
source_category: upstream-code
architectures:
- sm100
tags:
- attention kernel
- cuda kernel
- cutlass
- tma
techniques:
- async-copy
hardware_features:
- tma
kernel_types:
- attention
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: 4d9c722a272600e7c0d95b326d9f00421a0b47a2
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- flash_attn/cute/flash_fwd.py
artifact_dir: evidence/pull-bundles/flash-attention/gh-2301
head_ref_oid: 005e2a105ccc0c35bc3698aeaa8de5c7f166f30d
---
# Fix GQA crash in cute FLASH backend: init load_Q before conditional

- Repository: `Dao-AILab/flash-attention`
- PR: [2301](https://github.com/Dao-AILab/flash-attention/pull/2301)
- 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/flash_fwd.py`

## Evidence Bundle

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