---
id: pr-flashinfer-2661
repo: flashinfer-ai/flashinfer
pr: 2661
title: 'feat: implement deterministic topk'
author: jiangyinzuo
date: '2026-04-01'
url: https://github.com/flashinfer-ai/flashinfer/pull/2661
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: 637209a4de7addeaff049136b0b7bec92b2665ed
inclusion_reason: kernel file changes
changed_paths:
- benchmarks/bench_topk.py
- csrc/flashinfer_topk_binding.cu
- csrc/topk.cu
- flashinfer/topk.py
- include/flashinfer/topk.cuh
- tests/utils/test_topk.py
head_ref_oid: f90300ae4276b40f69dc0c9736599b787441b139
artifact_dir: evidence/pull-bundles/flashinfer/gh-2661
---
# feat: implement deterministic topk

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

## Changed Paths

- `benchmarks/bench_topk.py`
- `csrc/flashinfer_topk_binding.cu`
- `csrc/topk.cu`
- `flashinfer/topk.py`
- `include/flashinfer/topk.cuh`
- `tests/utils/test_topk.py`

## Evidence Bundle

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