---
id: pr-flashinfer-1460
repo: flashinfer-ai/flashinfer
pr: 1460
title: Fix TRTLLM NVFP4-out attention kernel scale factor dim issue
author: elvischenv
date: '2025-08-14'
url: https://github.com/flashinfer-ai/flashinfer/pull/1460
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- fp4
- nvfp4
- prefill
techniques: []
hardware_features:
- fp4
- nvfp4
kernel_types:
- attention
- decode
- prefill
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 74b8785fa1d0f0a8a0ffbc4444c43cda4c13dd8c
inclusion_reason: kernel file changes
changed_paths:
- flashinfer/decode.py
- flashinfer/prefill.py
- flashinfer/utils.py
- tests/test_trtllm_gen_attention.py
- tests/utils_fp4.py
head_ref_oid: 3b239dd8ace40c5b1debd94ef29cb350575bb872
artifact_dir: evidence/pull-bundles/flashinfer/gh-1460
---
# Fix TRTLLM NVFP4-out attention kernel scale factor dim issue

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

## Changed Paths

- `flashinfer/decode.py`
- `flashinfer/prefill.py`
- `flashinfer/utils.py`
- `tests/test_trtllm_gen_attention.py`
- `tests/utils_fp4.py`

## Evidence Bundle

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