---
id: pr-flashinfer-2801
repo: flashinfer-ai/flashinfer
pr: 2801
title: '[fix] bugfix 1419: Add batch size shape validation in decode and prefill run() APIs'
author: qsang-nv
date: '2026-03-23'
url: https://github.com/flashinfer-ai/flashinfer/pull/2801
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 7c7faa48cf79db2728a15a128cb3479246aac9bd
inclusion_reason: defer
changed_paths:
- flashinfer/decode.py
- flashinfer/prefill.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-2801
head_ref_oid: 3dea3b1020e0c0e5825238fbc670509785ef004b
---
# [fix] bugfix 1419: Add batch size shape validation in decode and prefill run() APIs

- Repository: `flashinfer-ai/flashinfer`
- PR: [2801](https://github.com/flashinfer-ai/flashinfer/pull/2801)
- Decision: `defer`
- Reason: defer

## Changed Paths

- `flashinfer/decode.py`
- `flashinfer/prefill.py`

## Evidence Bundle

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