---
id: pr-flashinfer-2954
repo: flashinfer-ai/flashinfer
pr: 2954
title: Only swizzle on v block scale; rename kv_block_scales to kv_cache_sf
author: sychen52
date: '2026-04-08'
url: https://github.com/flashinfer-ai/flashinfer/pull/2954
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- block-scale
- decode
- flash-attention
- fp4
- prefill
- quantization
- swizzling
techniques:
- swizzling
hardware_features:
- block-scale
- fp4
kernel_types:
- attention
- decode
- flash-attention
- prefill
- quantization
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: c6cf5e43556e0bfd8a3a98ccaefa49eb5d1ee601
inclusion_reason: kernel file changes
changed_paths:
- benchmarks/bench_trtllm_fmha.py
- benchmarks/routines/attention.py
- flashinfer/decode.py
- flashinfer/prefill.py
- flashinfer/quantization/fp4_quantization.py
- tests/attention/test_trtllm_gen_attention.py
head_ref_oid: a4ba18908ac596d9032107d14ff3c8ae97445e03
artifact_dir: evidence/pull-bundles/flashinfer/gh-2954
---
# Only swizzle on v block scale; rename kv_block_scales to kv_cache_sf

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

## Changed Paths

- `benchmarks/bench_trtllm_fmha.py`
- `benchmarks/routines/attention.py`
- `flashinfer/decode.py`
- `flashinfer/prefill.py`
- `flashinfer/quantization/fp4_quantization.py`
- `tests/attention/test_trtllm_gen_attention.py`

## Evidence Bundle

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