From 4f9e71df3c23523ad0d5565f01a19bc73544b917 Mon Sep 17 00:00:00 2001 From: Yichen Yan Date: Wed, 17 Sep 2025 11:48:22 +0800 Subject: [PATCH] Remove duplicated code (#10545) Co-authored-by: jiapingW <56055330+jiapingW@users.noreply.github.com> --- python/sglang/srt/models/qwen2.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/python/sglang/srt/models/qwen2.py b/python/sglang/srt/models/qwen2.py index b3d5fb9ad..256caee9c 100644 --- a/python/sglang/srt/models/qwen2.py +++ b/python/sglang/srt/models/qwen2.py @@ -484,10 +484,6 @@ class Qwen2ForCausalLM(nn.Module): if self.capture_aux_hidden_states: hidden_states, aux_hidden_states = hidden_states - aux_hidden_states = None - if self.capture_aux_hidden_states: - hidden_states, aux_hidden_states = hidden_states - if self.pp_group.is_last_rank: if not get_embedding: return self.logits_processor(