Remove duplicated code (#10545)

Co-authored-by: jiapingW <56055330+jiapingW@users.noreply.github.com>
This commit is contained in:
Yichen Yan
2025-09-16 20:48:22 -07:00
committed by GitHub
co-authored by jiapingW
parent 541551cefe
commit 4f9e71df3c
-4
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(