---
id: pr-flashinfer-2084
repo: flashinfer-ai/flashinfer
pr: 2084
title: '[API change] Allow using torch.Tensor for scales for trtllm-gen attention'
author: IwakuraRein
date: '2025-11-18'
url: https://github.com/flashinfer-ai/flashinfer/pull/2084
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- flash-attention
- mla
- prefill
techniques: []
hardware_features: []
kernel_types:
- attention
- decode
- flash-attention
- mla
- prefill
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: a9f71bd88caca191217753171cdff1bba3212068
inclusion_reason: kernel file changes
changed_paths:
- csrc/trtllm_fmha_kernel_launcher.cu
- flashinfer/artifacts.py
- flashinfer/decode.py
- flashinfer/prefill.py
- include/flashinfer/trtllm/fmha/kernelParams.h
- tests/attention/test_trtllm_gen_attention.py
- tests/attention/test_trtllm_gen_mla.py
head_ref_oid: 74d153f08968d4466d9cce3be0ab142a6600bb4f
artifact_dir: evidence/pull-bundles/flashinfer/gh-2084
---
# [API change] Allow using torch.Tensor for scales for trtllm-gen attention

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

## Changed Paths

- `csrc/trtllm_fmha_kernel_launcher.cu`
- `flashinfer/artifacts.py`
- `flashinfer/decode.py`
- `flashinfer/prefill.py`
- `include/flashinfer/trtllm/fmha/kernelParams.h`
- `tests/attention/test_trtllm_gen_attention.py`
- `tests/attention/test_trtllm_gen_mla.py`

## Evidence Bundle

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