Unverified Commit 29799dda authored by Li, Jiang's avatar Li, Jiang Committed by GitHub
Browse files

[Bugfix] Add missing VIT backend dispatch on CPU (#24623)


Signed-off-by: default avatarjiang1.li <jiang1.li@intel.com>
parent f17a6aa4
......@@ -399,7 +399,8 @@ class MultiHeadAttention(nn.Module):
key,
value,
scale=self.scale)
elif self.attn_backend == _Backend.TORCH_SDPA:
elif (self.attn_backend == _Backend.TORCH_SDPA
or self.attn_backend == _Backend.TORCH_SDPA_VLLM_V1):
query, key, value = (x.transpose(1, 2)
for x in (query, key, value))
out = F.scaled_dot_product_attention(query,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment