---
id: pr-sglang-7462
repo: sgl-project/sglang
pr: 7462
title: Support non-contiguous query input for extend/decode attention
author: yanbing-j
date: '2025-07-03'
url: https://github.com/sgl-project/sglang/pull/7462
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- decode
techniques: []
hardware_features: []
kernel_types:
- attention
- decode
languages:
- python
captured_at: '2026-04-27'
status: merged
merge_sha: b044400dd34ecbb7ff3a9dd629d0faf68abaf1b9
inclusion_reason: kernel file changes
changed_paths:
- sgl-kernel/csrc/cpu/decode.cpp
- sgl-kernel/csrc/cpu/extend.cpp
- test/srt/cpu/test_decode.py
- test/srt/cpu/test_extend.py
head_ref_oid: c2d9d3a55767d45bf68d81cc1863662b9e8db7ca
artifact_dir: evidence/pull-bundles/sglang/gh-7462
---
# Support non-contiguous query input for extend/decode attention

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

## Changed Paths

- `sgl-kernel/csrc/cpu/decode.cpp`
- `sgl-kernel/csrc/cpu/extend.cpp`
- `test/srt/cpu/test_decode.py`
- `test/srt/cpu/test_extend.py`

## Evidence Bundle

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