Remove duplicated code (#10545)

Co-authored-by: jiapingW <56055330+jiapingW@users.noreply.github.com>
This commit is contained in:
Yichen Yan
2025-09-17 11:48:22 +08:00
committed by GitHub
parent 541551cefe
commit 4f9e71df3c

View File

@@ -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(