---
id: pr-flashinfer-1322
repo: flashinfer-ai/flashinfer
pr: 1322
title: 'feat: Add k_scale and v_scale to persistent attention '
author: Edenzzzz
date: '2025-09-08'
url: https://github.com/flashinfer-ai/flashinfer/pull/1322
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- persistent-kernel
techniques:
- persistent-kernel
hardware_features: []
kernel_types:
- attention
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: e5d342fc26fea062a4a93897eddc0d7eba543e41
inclusion_reason: kernel file changes
changed_paths:
- csrc/batch_attention.cu
- csrc/batch_attention_customize_config.jinja
- csrc/batch_attention_jit_pybind.cu
- flashinfer/attention.py
- include/flashinfer/attention/persistent.cuh
- tests/test_batch_attention.py
head_ref_oid: 13282e1d2ea9d9527deff403e2dd401bf4e2a3b8
artifact_dir: evidence/pull-bundles/flashinfer/gh-1322
---
# feat: Add k_scale and v_scale to persistent attention 

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

## Changed Paths

- `csrc/batch_attention.cu`
- `csrc/batch_attention_customize_config.jinja`
- `csrc/batch_attention_jit_pybind.cu`
- `flashinfer/attention.py`
- `include/flashinfer/attention/persistent.cuh`
- `tests/test_batch_attention.py`

## Evidence Bundle

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