---
id: pr-flashinfer-1540
repo: flashinfer-ai/flashinfer
pr: 1540
title: 'feat: Add fp8-qkv, fp16/bf16 output MHA'
author: weireweire
date: '2025-08-25'
url: https://github.com/flashinfer-ai/flashinfer/pull/1540
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- fp8
- kernel-fusion
- mla
- moe
- prefill
techniques:
- kernel-fusion
hardware_features:
- fp8
kernel_types:
- attention
- decode
- mla
- moe
- prefill
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 018b551825c8e5579206e6eb9d3229fa679202b3
inclusion_reason: kernel file changes
changed_paths:
- flashinfer/decode.py
- flashinfer/fused_moe/core.py
- flashinfer/mla.py
- flashinfer/prefill.py
- flashinfer/sparse.py
- flashinfer/utils.py
- tests/test_trtllm_gen_attention.py
head_ref_oid: 6a75e3107c7d608008963e3766dfa4ba135fcf57
artifact_dir: evidence/pull-bundles/flashinfer/gh-1540
---
# feat: Add fp8-qkv, fp16/bf16 output MHA

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

## Changed Paths

- `flashinfer/decode.py`
- `flashinfer/fused_moe/core.py`
- `flashinfer/mla.py`
- `flashinfer/prefill.py`
- `flashinfer/sparse.py`
- `flashinfer/utils.py`
- `tests/test_trtllm_gen_attention.py`

## Evidence Bundle

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