---
id: pr-flashinfer-2281
repo: flashinfer-ai/flashinfer
pr: 2281
title: 'feat: IdType indices in sampling kernels'
author: raayandhar
date: '2026-01-03'
url: https://github.com/flashinfer-ai/flashinfer/pull/2281
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: cda8f3f24525a08b2c2f7c6ff2fbc86b9f5bab06
inclusion_reason: kernel file changes
changed_paths:
- csrc/sampling.cu
- csrc/tvm_ffi_utils.h
- flashinfer/sampling.py
- tests/utils/test_sampling.py
head_ref_oid: f5a4a94d2c686403e96e97d59e245d32193c9603
artifact_dir: evidence/pull-bundles/flashinfer/gh-2281
---
# feat: IdType indices in sampling kernels

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

## Changed Paths

- `csrc/sampling.cu`
- `csrc/tvm_ffi_utils.h`
- `flashinfer/sampling.py`
- `tests/utils/test_sampling.py`

## Evidence Bundle

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