From 926530b0cf009299e3e10062e9106f8e5c3f5dda Mon Sep 17 00:00:00 2001 From: zhaozx-cn <59479021+zhaozx-cn@users.noreply.github.com> Date: Thu, 23 Jul 2026 10:24:31 +0800 Subject: [PATCH] [NPU]remove duplicate code (#31863) --- .../srt/hardware_backend/npu/attention/ascend_gdn_backend.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/python/sglang/srt/hardware_backend/npu/attention/ascend_gdn_backend.py b/python/sglang/srt/hardware_backend/npu/attention/ascend_gdn_backend.py index 7f506e7f1..7e63f3052 100644 --- a/python/sglang/srt/hardware_backend/npu/attention/ascend_gdn_backend.py +++ b/python/sglang/srt/hardware_backend/npu/attention/ascend_gdn_backend.py @@ -323,8 +323,6 @@ class AscendGDNAttnBackend(AscendMambaAttnBackendBase): ssm_states.dtype, copy=False ) ssm_states[cache_indices] = last_recurrent_state - last_recurrent_state = last_recurrent_state.to(ssm_states.dtype, copy=False) - ssm_states[cache_indices] = last_recurrent_state if h is not None: self._track_mamba_state_extend( forward_batch, h, ssm_states, forward_metadata