---
id: pr-flashinfer-1254
repo: flashinfer-ai/flashinfer
pr: 1254
title: 'fix: correctly pass k_scale and v_scale to run() in forward_return_lse (#1023)'
author: vlev02
date: '2025-07-15'
url: https://github.com/flashinfer-ai/flashinfer/pull/1254
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: f153369384db9298f52b00d8e0fc53cb0d1f0f49
inclusion_reason: include
changed_paths:
- flashinfer/prefill.py
- tests/test_batch_prefill.py
artifact_dir: evidence/pull-bundles/flashinfer/gh-1254
head_ref_oid: b145da44b0be1888ad5ffddcbeedeb6a50c16e07
---
# fix: correctly pass k_scale and v_scale to run() in forward_return_lse (#1023)

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

## Changed Paths

- `flashinfer/prefill.py`
- `tests/test_batch_prefill.py`

## Evidence Bundle

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