mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-09-11 20:34:54 +00:00
fix qwen2 failure in intel cpu
Signed-off-by: Wang, Yi A <yi.a.wang@intel.com>
This commit is contained in:
parent
befd9f6735
commit
3836c3fe72
@ -505,5 +505,7 @@ class Qwen2VLForConditionalGeneration(nn.Module):
|
||||
prefill_cache_indices=prefill_cache_indices,
|
||||
)
|
||||
hidden_states, _ = self.norm(hidden_states)
|
||||
if lm_head_indices is not None:
|
||||
hidden_states = hidden_states[lm_head_indices]
|
||||
logits = self.lm_head(hidden_states)
|
||||
return logits, None
|
||||
|
Loading…
Reference in New Issue
Block a user