---
id: pr-flashinfer-2605
repo: flashinfer-ai/flashinfer
pr: 2605
title: '[bugfix] Fix FilteredTopK overflow correctness'
author: jiangyinzuo
date: '2026-02-25'
url: https://github.com/flashinfer-ai/flashinfer/pull/2605
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
techniques: []
hardware_features: []
kernel_types: []
languages:
- cuda-cpp
captured_at: '2026-04-27'
status: merged
merge_sha: 82ff6a9cbceca308a59067f5a02f2865f9ed932c
inclusion_reason: kernel file changes
changed_paths:
- include/flashinfer/topk.cuh
- tests/utils/test_topk.py
head_ref_oid: 3e3231f5c56325d0693a78d539b4965333737ba5
artifact_dir: evidence/pull-bundles/flashinfer/gh-2605
---
# [bugfix] Fix FilteredTopK overflow correctness

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

## Changed Paths

- `include/flashinfer/topk.cuh`
- `tests/utils/test_topk.py`

## Evidence Bundle

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