---
id: pr-flashinfer-2325
repo: flashinfer-ai/flashinfer
pr: 2325
title: 'bugfix: fix multi-cta top-k implementation when k value is different for different row'
author: yzh119
date: '2026-01-13'
url: https://github.com/flashinfer-ai/flashinfer/pull/2325
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: 6ba8058bdf20b414ba2d64b02b6b9d0643cf13b0
inclusion_reason: kernel file changes
changed_paths:
- include/flashinfer/topk.cuh
- tests/utils/test_sampling.py
head_ref_oid: 308aadc6bb869ffaa5f58ae989367e1633a7f2ee
artifact_dir: evidence/pull-bundles/flashinfer/gh-2325
---
# bugfix: fix multi-cta top-k implementation when k value is different for different row

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

## Changed Paths

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

## Evidence Bundle

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