---
id: pr-flashinfer-801
repo: flashinfer-ai/flashinfer
pr: 801
title: 'feat: apply sm_scale at logits instead of q in FA2 template'
author: yzh119
date: '2025-02-09'
url: https://github.com/flashinfer-ai/flashinfer/pull/801
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- prefill
techniques: []
hardware_features: []
kernel_types:
- attention
- decode
- prefill
languages:
- cuda-cpp
captured_at: '2026-04-17'
status: merged
merge_sha: 054778118723ce9c831dc3926b74fb46a1322d6b
inclusion_reason: kernel file changes
changed_paths:
- csrc/batch_decode_customize_config.jinja
- csrc/batch_prefill_customize_config.jinja
- csrc/batch_prefill_sm90_customize_config.jinja
- csrc/single_decode_customize_config.jinja
- csrc/single_prefill_customize_config.jinja
- csrc/single_prefill_sm90_customize_config.jinja
- flashinfer/utils.py
- include/flashinfer/attention/decode.cuh
- include/flashinfer/attention/hopper/variant_helper.cuh
- include/flashinfer/attention/hopper/variants.cuh
- include/flashinfer/attention/prefill.cuh
- include/flashinfer/attention/scheduler.cuh
- include/flashinfer/attention/variant_helper.cuh
- include/flashinfer/attention/variants.cuh
- tests/test_jit_example.py
head_ref_oid: ba27c9a30bc968c22bd9ef98fad35794ec838b66
artifact_dir: evidence/pull-bundles/flashinfer/gh-801
---
# feat: apply sm_scale at logits instead of q in FA2 template

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

## Changed Paths

- `csrc/batch_decode_customize_config.jinja`
- `csrc/batch_prefill_customize_config.jinja`
- `csrc/batch_prefill_sm90_customize_config.jinja`
- `csrc/single_decode_customize_config.jinja`
- `csrc/single_prefill_customize_config.jinja`
- `csrc/single_prefill_sm90_customize_config.jinja`
- `flashinfer/utils.py`
- `include/flashinfer/attention/decode.cuh`
- `include/flashinfer/attention/hopper/variant_helper.cuh`
- `include/flashinfer/attention/hopper/variants.cuh`
- `include/flashinfer/attention/prefill.cuh`
- `include/flashinfer/attention/scheduler.cuh`
- `include/flashinfer/attention/variant_helper.cuh`
- `include/flashinfer/attention/variants.cuh`
- `tests/test_jit_example.py`

## Evidence Bundle

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