From 9b64f6f3595c2d983765d84c7afb161ee2c9a1b0 Mon Sep 17 00:00:00 2001 From: Baidu-AIAK Date: Wed, 19 Nov 2025 06:17:33 +0800 Subject: [PATCH] [fix] Fixes accuracy issues caused by incorrect use of rope (#13495) --- python/sglang/srt/layers/attention/nsa/nsa_indexer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sglang/srt/layers/attention/nsa/nsa_indexer.py b/python/sglang/srt/layers/attention/nsa/nsa_indexer.py index 7868ff060..69d4b4a04 100644 --- a/python/sglang/srt/layers/attention/nsa/nsa_indexer.py +++ b/python/sglang/srt/layers/attention/nsa/nsa_indexer.py @@ -168,7 +168,7 @@ class Indexer(CustomOp): max_position=max_position_embeddings, base=rope_theta, # type: ignore rope_scaling=rope_scaling, - is_neox_style=False, + is_neox_style=True, device=get_global_server_args().device, ) self.block_size = block_size