---
id: pr-flashinfer-1675
repo: flashinfer-ai/flashinfer
pr: 1675
title: 'feat: Batch-size invariant FA2 Prefill & Decode'
author: Edenzzzz
date: '2025-09-15'
url: https://github.com/flashinfer-ai/flashinfer/pull/1675
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- prefill
techniques: []
hardware_features: []
kernel_types:
- attention
- decode
- prefill
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: b1594709630b04cec897bd2fd63d7a32926c2c23
inclusion_reason: kernel file changes
changed_paths:
- csrc/batch_prefill.cu
- csrc/batch_prefill_jit_pybind.cu
- flashinfer/decode.py
- flashinfer/prefill.py
- flashinfer/sparse.py
- include/flashinfer/attention/prefill.cuh
- include/flashinfer/attention/scheduler.cuh
- tests/test_batch_invariant_fa2.py
- tvm_binding/batch_prefill.cu
- tvm_binding/batch_prefill_jit_tvm_binding.cu
head_ref_oid: 6704f85b0cedd6ef98481731a4e8d0ccc90ec563
artifact_dir: evidence/pull-bundles/flashinfer/gh-1675
---
# feat: Batch-size invariant FA2 Prefill & Decode

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

## Changed Paths

- `csrc/batch_prefill.cu`
- `csrc/batch_prefill_jit_pybind.cu`
- `flashinfer/decode.py`
- `flashinfer/prefill.py`
- `flashinfer/sparse.py`
- `include/flashinfer/attention/prefill.cuh`
- `include/flashinfer/attention/scheduler.cuh`
- `tests/test_batch_invariant_fa2.py`
- `tvm_binding/batch_prefill.cu`
- `tvm_binding/batch_prefill_jit_tvm_binding.cu`

## Evidence Bundle

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