---
id: pr-sglang-9060
repo: sgl-project/sglang
pr: 9060
title: '[sgl-kernel] Support FlashInfer top_k_top_p_sampling_from_logits'
author: yuan-luo
date: '2025-08-14'
url: https://github.com/sgl-project/sglang/pull/9060
source_category: upstream-code
architectures:
- sm100
tags:
- gemm
techniques: []
hardware_features: []
kernel_types: []
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: 53dcc750b6d40635de35a589b7ca7297f0d5b988
inclusion_reason: kernel file changes
changed_paths:
- 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: 19e11e470d42e01e227ce43b4dfcf4ebaef976d4
artifact_dir: evidence/pull-bundles/sglang/gh-9060
---
# [sgl-kernel] Support FlashInfer top_k_top_p_sampling_from_logits

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

## Changed Paths

- `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-9060`
