---
id: pr-flashinfer-787
repo: flashinfer-ai/flashinfer
pr: 787
title: 'bugfix: MLA decode should multiply sm_scale by math::log2e'
author: tsu-bin
date: '2025-02-05'
url: https://github.com/flashinfer-ai/flashinfer/pull/787
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
- mla
techniques: []
hardware_features: []
kernel_types:
- attention
- decode
- mla
languages:
- cuda-cpp
captured_at: '2026-04-17'
status: merged
merge_sha: 23413e00ac759b7b2346804d85c775d88eae30ff
inclusion_reason: kernel file changes
changed_paths:
- flashinfer/jit/attention.py
- include/flashinfer/attention/decode.cuh
head_ref_oid: e28a68c512ac8001188210bcb0ddc2440f1d9eed
artifact_dir: evidence/pull-bundles/flashinfer/gh-787
---
# bugfix: MLA decode should multiply sm_scale by math::log2e

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

## Changed Paths

- `flashinfer/jit/attention.py`
- `include/flashinfer/attention/decode.cuh`

## Evidence Bundle

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