Remove duplicate code in qwen2 model (#10540)

This commit is contained in:
Lzhang-hub
2025-09-24 02:40:51 +08:00
committed by GitHub
parent adc24a3a0c
commit d42975c641

View File

@@ -454,9 +454,6 @@ class Qwen2ForCausalLM(nn.Module):
# For EAGLE3 support
self.capture_aux_hidden_states = False
# For EAGLE3 support
self.capture_aux_hidden_states = False
def get_input_embedding(self, input_ids: torch.Tensor) -> torch.Tensor:
return self.model.get_input_embedding(input_ids)