---
id: pr-sglang-14781
repo: sgl-project/sglang
pr: 14781
title: '[Performance] optimize NSA backend metadata computation for multi-step speculative decoding'
author: Johnsonms
date: '2025-12-18'
url: https://github.com/sgl-project/sglang/pull/14781
source_category: upstream-code
architectures:
- sm100
tags: []
techniques: []
hardware_features: []
kernel_types: []
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: e0026f7c92c91f7c039ab7b823caf65207c8cbb2
inclusion_reason: defer
changed_paths:
- python/sglang/srt/layers/attention/nsa/nsa_backend_mtp_precompute.py
- python/sglang/srt/layers/attention/nsa/utils.py
- python/sglang/srt/layers/attention/nsa_backend.py
artifact_dir: evidence/pull-bundles/sglang/gh-14781
head_ref_oid: 0f366a046b2b98803535a34d6a0fcb2d29d75213
---
# [Performance] optimize NSA backend metadata computation for multi-step speculative decoding

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

## Changed Paths

- `python/sglang/srt/layers/attention/nsa/nsa_backend_mtp_precompute.py`
- `python/sglang/srt/layers/attention/nsa/utils.py`
- `python/sglang/srt/layers/attention/nsa_backend.py`

## Evidence Bundle

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