---
id: pr-sglang-22024
repo: sgl-project/sglang
pr: 22024
title: '[NPU] enable mla prepare fused kernel only when being mla attn'
author: khalil2ji3mp6
date: '2026-04-07'
url: https://github.com/sgl-project/sglang/pull/22024
source_category: upstream-code
architectures:
- sm100
tags:
- attention
- kernel-fusion
- mla
techniques:
- kernel-fusion
hardware_features: []
kernel_types:
- attention
- mla
languages:
- python
captured_at: '2026-04-17'
status: merged
merge_sha: 6131fb58827309d805f37dc9abe011e8bce3f741
inclusion_reason: kernel file changes
changed_paths:
- python/sglang/srt/hardware_backend/npu/attention/ascend_backend.py
head_ref_oid: fb0d2727e60d4699ada62f8f394e9f74b19be9dc
artifact_dir: evidence/pull-bundles/sglang/gh-22024
---
# [NPU] enable mla prepare fused kernel only when being mla attn

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

## Changed Paths

- `python/sglang/srt/hardware_backend/npu/attention/ascend_backend.py`

## Evidence Bundle

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