mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 02:05:01 +08:00
[BugFix] Fix RuntimeError in PixtralHFAttention on CPU/XPU (#28444)
Signed-off-by: Lin, Fanli <fanli.lin@intel.com>
This commit is contained in:
parent
a90ad7d838
commit
b886068056
@ -1109,7 +1109,7 @@ class PixtralHFAttention(nn.Module):
|
||||
)
|
||||
out = out.transpose(1, 2)
|
||||
|
||||
out = out.view(batch, patches, self.n_heads * self.head_dim)
|
||||
out = out.reshape(batch, patches, self.n_heads * self.head_dim)
|
||||
attn_output, _ = self.o_proj(out)
|
||||
|
||||
return attn_output, None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user