---
id: pr-flashinfer-2138
repo: flashinfer-ai/flashinfer
pr: 2138
title: 'feat: add trtllm-gen per-tensor sparseMla kernels.'
author: PerkzZheng
date: '2025-11-25'
url: https://github.com/flashinfer-ai/flashinfer/pull/2138
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- flash-attention
- mla
techniques: []
hardware_features: []
kernel_types:
- attention
- decode
- flash-attention
- mla
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 1940b28e2e9de25f488614d39e07e20e5d4138de
inclusion_reason: kernel file changes
changed_paths:
- csrc/fmhaReduction.cu
- csrc/trtllm_fmha_kernel_launcher.cu
- flashinfer/artifacts.py
- flashinfer/decode.py
- include/flashinfer/trtllm/fmha/fmhaKernels.cuh
- include/flashinfer/trtllm/fmha/fmhaRunnerParams.h
- include/flashinfer/trtllm/fmha/kernelParams.h
- tests/attention/test_trtllm_gen_attention.py
- tests/attention/test_trtllm_gen_mla.py
- tests/comm/test_trtllm_mnnvl_allreduce_custom_comm.py
head_ref_oid: 388cc9900b29a3412b9bb1a22fd5db539ee7db37
artifact_dir: evidence/pull-bundles/flashinfer/gh-2138
---
# feat: add trtllm-gen per-tensor sparseMla kernels.

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

## Changed Paths

- `csrc/fmhaReduction.cu`
- `csrc/trtllm_fmha_kernel_launcher.cu`
- `flashinfer/artifacts.py`
- `flashinfer/decode.py`
- `include/flashinfer/trtllm/fmha/fmhaKernels.cuh`
- `include/flashinfer/trtllm/fmha/fmhaRunnerParams.h`
- `include/flashinfer/trtllm/fmha/kernelParams.h`
- `tests/attention/test_trtllm_gen_attention.py`
- `tests/attention/test_trtllm_gen_mla.py`
- `tests/comm/test_trtllm_mnnvl_allreduce_custom_comm.py`

## Evidence Bundle

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