---
id: pr-sglang-22643
repo: sgl-project/sglang
pr: 22643
title: '[sgl] update specdec sampling kernel to return valid token ID'
author: 2022tgoel
date: '2026-04-22'
url: https://github.com/sgl-project/sglang/pull/22643
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 3ebf066d131de7b2e0fdaa0c5b4c7c779dcf61c6
inclusion_reason: defer
changed_paths:
- sgl-kernel/csrc/speculative/speculative_sampling.cuh
artifact_dir: evidence/pull-bundles/sglang/gh-22643
head_ref_oid: 9dcab55a208986356aa9c45530416a00a6029bf5
---
# [sgl] update specdec sampling kernel to return valid token ID

- Repository: `sgl-project/sglang`
- PR: [22643](https://github.com/sgl-project/sglang/pull/22643)
- Decision: `defer`
- Reason: defer

## Changed Paths

- `sgl-kernel/csrc/speculative/speculative_sampling.cuh`

## Evidence Bundle

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