---
id: pr-flashinfer-1289
repo: flashinfer-ai/flashinfer
pr: 1289
title: 'refactor: refactor trtllm-gen attention kernel integration code'
author: yzh119
date: '2025-07-22'
url: https://github.com/flashinfer-ai/flashinfer/pull/1289
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: 74f5dcc227faaad6454d66cae22e8b8e1d3f2c0b
inclusion_reason: kernel file changes
changed_paths:
- csrc/trtllm_fmha_kernel_launcher.cu
- csrc/trtllm_mla_kernel_launcher.cu
- flashinfer/decode.py
- flashinfer/jit/__init__.py
- flashinfer/jit/attention/__init__.py
- flashinfer/jit/attention/pytorch.py
- flashinfer/prefill.py
- flashinfer/utils.py
- include/flashinfer/attention/blackwell/fmha_cutlass_sm100.cuh
- include/flashinfer/trtllm/common.h
- include/flashinfer/trtllm/fmha/fmhaKernels.cuh
- include/flashinfer/trtllm/fmha/fmhaRunnerParams.h
- include/flashinfer/trtllm/fmha/gen_kernel_launcher.cuh
- include/flashinfer/trtllm/fmha/kernelParams.h
- tests/test_trtllm_gen_context.py
- tests/test_trtllm_gen_decode.py
head_ref_oid: 3cb2d72c943e0a6fc4c03411c432470adb6bc0de
artifact_dir: evidence/pull-bundles/flashinfer/gh-1289
---
# refactor: refactor trtllm-gen attention kernel integration code

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

## Changed Paths

- `csrc/trtllm_fmha_kernel_launcher.cu`
- `csrc/trtllm_mla_kernel_launcher.cu`
- `flashinfer/decode.py`
- `flashinfer/jit/__init__.py`
- `flashinfer/jit/attention/__init__.py`
- `flashinfer/jit/attention/pytorch.py`
- `flashinfer/prefill.py`
- `flashinfer/utils.py`
- `include/flashinfer/attention/blackwell/fmha_cutlass_sm100.cuh`
- `include/flashinfer/trtllm/common.h`
- `include/flashinfer/trtllm/fmha/fmhaKernels.cuh`
- `include/flashinfer/trtllm/fmha/fmhaRunnerParams.h`
- `include/flashinfer/trtllm/fmha/gen_kernel_launcher.cuh`
- `include/flashinfer/trtllm/fmha/kernelParams.h`
- `tests/test_trtllm_gen_context.py`
- `tests/test_trtllm_gen_decode.py`

## Evidence Bundle

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