---
id: pr-sglang-18696
repo: sgl-project/sglang
pr: 18696
title: use flashinfer.sampling
author: pansicheng
date: '2026-02-26'
url: https://github.com/sgl-project/sglang/pull/18696
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
techniques: []
hardware_features: []
kernel_types: []
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 2ad475b4edfed009701737d199b9410540af63d7
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/layers/sampler.py
- sgl-kernel/CMakeLists.txt
- sgl-kernel/benchmark/bench_top_k_top_p_sampling.py
- sgl-kernel/csrc/common_extension.cc
- sgl-kernel/include/sgl_kernel_ops.h
- sgl-kernel/python/sgl_kernel/__init__.py
- sgl-kernel/python/sgl_kernel/sampling.py
- sgl-kernel/tests/test_sampling.py
head_ref_oid: 12d6268c8f923e9c354104cb5d4962dcb230f26b
artifact_dir: evidence/pull-bundles/sglang/gh-18696
---
# use flashinfer.sampling

- Repository: `sgl-project/sglang`
- PR: [18696](https://github.com/sgl-project/sglang/pull/18696)
- Decision: `kernel file changes`
- Reason: kernel file changes

## Changed Paths

- `python/sglang/srt/layers/sampler.py`
- `sgl-kernel/CMakeLists.txt`
- `sgl-kernel/benchmark/bench_top_k_top_p_sampling.py`
- `sgl-kernel/csrc/common_extension.cc`
- `sgl-kernel/include/sgl_kernel_ops.h`
- `sgl-kernel/python/sgl_kernel/__init__.py`
- `sgl-kernel/python/sgl_kernel/sampling.py`
- `sgl-kernel/tests/test_sampling.py`

## Evidence Bundle

`evidence/pull-bundles/sglang/gh-18696`
