---
id: pr-flashinfer-2001
repo: flashinfer-ai/flashinfer
pr: 2001
title: 'feat: add xqa backend and completes NHD/HND coverage for trtllm-gen/xqa backend'
author: qsang-nv
date: '2025-11-02'
url: https://github.com/flashinfer-ai/flashinfer/pull/2001
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- flash-attention
- mla
- prefill
techniques: []
hardware_features: []
kernel_types:
- attention
- decode
- flash-attention
- mla
- prefill
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 5854494a0187795800862c73bad7c727231ab60f
inclusion_reason: kernel file changes
changed_paths:
- csrc/flashinfer_xqa_binding.cu
- csrc/trtllm_fmha_kernel_launcher.cu
- csrc/xqa/defines.h
- csrc/xqa/mha.cu
- csrc/xqa/mha.h
- csrc/xqa/mhaUtils.cuh
- csrc/xqa/mha_sm90.cu
- csrc/xqa/mla_sm120.cu
- csrc/xqa/tensorMap.cpp
- csrc/xqa/tensorMap.h
- csrc/xqa/utils.cuh
- csrc/xqa/xqa_wrapper.cu
- flashinfer/decode.py
- flashinfer/jit/xqa.py
- flashinfer/prefill.py
- flashinfer/xqa.py
- tests/attention/test_trtllm_gen_attention.py
- tests/attention/test_xqa.py
- tests/attention/test_xqa_batch_decode.py
head_ref_oid: 43bf6243955ec90f48fef52dbd9fa18e9441e358
artifact_dir: evidence/pull-bundles/flashinfer/gh-2001
---
# feat: add xqa backend and completes NHD/HND coverage for trtllm-gen/xqa backend

- Repository: `flashinfer-ai/flashinfer`
- PR: [2001](https://github.com/flashinfer-ai/flashinfer/pull/2001)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `csrc/flashinfer_xqa_binding.cu`
- `csrc/trtllm_fmha_kernel_launcher.cu`
- `csrc/xqa/defines.h`
- `csrc/xqa/mha.cu`
- `csrc/xqa/mha.h`
- `csrc/xqa/mhaUtils.cuh`
- `csrc/xqa/mha_sm90.cu`
- `csrc/xqa/mla_sm120.cu`
- `csrc/xqa/tensorMap.cpp`
- `csrc/xqa/tensorMap.h`
- `csrc/xqa/utils.cuh`
- `csrc/xqa/xqa_wrapper.cu`
- `flashinfer/decode.py`
- `flashinfer/jit/xqa.py`
- `flashinfer/prefill.py`
- `flashinfer/xqa.py`
- `tests/attention/test_trtllm_gen_attention.py`
- `tests/attention/test_xqa.py`
- `tests/attention/test_xqa_batch_decode.py`

## Evidence Bundle

`evidence/pull-bundles/flashinfer/gh-2001`
