---
id: pr-sglang-21654
repo: sgl-project/sglang
pr: 21654
title: '[jit_kernel] Optimize fused_qknorm_rope: deduplicate sincosf for interleave RoPE '
author: Johnsonms
date: '2026-04-01'
url: https://github.com/sgl-project/sglang/pull/21654
source_category: upstream-code
architectures:
- sm100
tags:
- benchmark_test
- compiler_runtime
- csrc kernel
- fused norm
- jit_kernel
- norm_elementwise
techniques:
- kernel-fusion
hardware_features: []
kernel_types:
- compiler
- moe
- norm
languages:
- cuda-cpp
captured_at: '2026-05-16'
status: merged
merge_sha: 5bbf347bb31d64807c00d4401772f0f69b04a51f
inclusion_reason: Look for fusion, vectorization, dtype conversion, and store-traffic reductions before changing math.
changed_paths:
- python/sglang/jit_kernel/benchmark/bench_fused_qknorm_rope.py
- python/sglang/jit_kernel/csrc/elementwise/fused_qknorm_rope.cuh
- python/sglang/jit_kernel/fused_qknorm_rope.py
- python/sglang/jit_kernel/tests/test_fused_qknorm_rope.py
- python/sglang/srt/models/qwen3_moe.py
artifact_dir: evidence/pull-bundles/sglang/gh-21654
head_ref_oid: bfc711ab1b9896f5fb1e45fbb34216f7384b860f
---
# [jit_kernel] Optimize fused_qknorm_rope: deduplicate sincosf for interleave RoPE 

- Repository: `sgl-project/sglang`
- PR: [21654](https://github.com/sgl-project/sglang/pull/21654)
- Decision: `Look for fusion, vectorization, dtype conversion, and store-traffic reductions before changing math.`
- Reason: Look for fusion, vectorization, dtype conversion, and store-traffic reductions before changing math.

## Changed Paths

- `python/sglang/jit_kernel/benchmark/bench_fused_qknorm_rope.py`
- `python/sglang/jit_kernel/csrc/elementwise/fused_qknorm_rope.cuh`
- `python/sglang/jit_kernel/fused_qknorm_rope.py`
- `python/sglang/jit_kernel/tests/test_fused_qknorm_rope.py`
- `python/sglang/srt/models/qwen3_moe.py`

## Evidence Bundle

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