---
id: pr-flashinfer-1242
repo: flashinfer-ai/flashinfer
pr: 1242
title: Add trtllm-gen attention mha kernel with FP8 Q/K/V and FP8 output
author: weireweire
date: '2025-07-16'
url: https://github.com/flashinfer-ai/flashinfer/pull/1242
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- flash-attention
- fp8
techniques: []
hardware_features:
- fp8
kernel_types:
- attention
- decode
- flash-attention
languages:
- cuda-cpp
captured_at: '2026-04-17'
status: merged
merge_sha: 3c40456effae8b9c5b1a11c0d1e0594295b1a312
inclusion_reason: kernel file changes
changed_paths:
- csrc/trtllm_fmha_kernel_launcher.cu
- csrc/trtllm_fmha_runner.cu
- include/flashinfer/trtllm/common.h
- include/flashinfer/trtllm/fmha/cubin/kernelMetaInfo.h
- include/flashinfer/trtllm/fmha/fmhaKernels.cuh
- include/flashinfer/trtllm/fmha/fmhaRunnerParams.h
- include/flashinfer/trtllm/fmha/kernelParams.h
- tests/test_trtllm_gen_decode.py
head_ref_oid: 4e9a292c7174da59186ae625ce428ba6fa7f118e
artifact_dir: evidence/pull-bundles/flashinfer/gh-1242
---
# Add trtllm-gen attention mha kernel with FP8 Q/K/V and FP8 output

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

## Changed Paths

- `csrc/trtllm_fmha_kernel_launcher.cu`
- `csrc/trtllm_fmha_runner.cu`
- `include/flashinfer/trtllm/common.h`
- `include/flashinfer/trtllm/fmha/cubin/kernelMetaInfo.h`
- `include/flashinfer/trtllm/fmha/fmhaKernels.cuh`
- `include/flashinfer/trtllm/fmha/fmhaRunnerParams.h`
- `include/flashinfer/trtllm/fmha/kernelParams.h`
- `tests/test_trtllm_gen_decode.py`

## Evidence Bundle

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