Skip to content

Commit b886068

Browse files
authored
[BugFix] Fix RuntimeError in PixtralHFAttention on CPU/XPU (vllm-project#28444)
Signed-off-by: Lin, Fanli <[email protected]>
1 parent a90ad7d commit b886068

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/model_executor/models/pixtral.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ def forward(
11091109
)
11101110
out = out.transpose(1, 2)
11111111

1112-
out = out.view(batch, patches, self.n_heads * self.head_dim)
1112+
out = out.reshape(batch, patches, self.n_heads * self.head_dim)
11131113
attn_output, _ = self.o_proj(out)
11141114

11151115
return attn_output, None

0 commit comments

Comments
 (0)