---
id: pr-flashinfer-2876
repo: flashinfer-ai/flashinfer
pr: 2876
title: '[fix] bugfix 2856: Fix pre-allocated out shape check in trtllm_batch_decode_with_kv_cache_mla for q_len_per_req > 1'
author: qsang-nv
date: '2026-03-31'
url: https://github.com/flashinfer-ai/flashinfer/pull/2876
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- mla
techniques: []
hardware_features: []
kernel_types:
- attention
- decode
- mla
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 202bd183981d9822f249b5709468afafd988a95c
inclusion_reason: kernel file changes
changed_paths:
- flashinfer/mla/_core.py
- tests/attention/test_trtllm_gen_mla.py
head_ref_oid: bcaeec66117bb983b8d5762bdc3589dbb7fc0d6b
artifact_dir: evidence/pull-bundles/flashinfer/gh-2876
---
# [fix] bugfix 2856: Fix pre-allocated out shape check in trtllm_batch_decode_with_kv_cache_mla for q_len_per_req > 1

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

## Changed Paths

- `flashinfer/mla/_core.py`
- `tests/attention/test_trtllm_gen_mla.py`

## Evidence Bundle

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