Skip to content

Commit

Permalink
[Kernel] Revert the API change of Attention.forward (vllm-project#12038)
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Zhang <[email protected]>
Signed-off-by: hzh <[email protected]>
  • Loading branch information
heheda12345 authored and HwwwwwwwH committed Jan 22, 2025
1 parent 055a2b7 commit 941a5d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vllm/attention/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def forward(
query: torch.Tensor,
key: torch.Tensor,
value: torch.Tensor,
_kv_cache: torch.Tensor,
_attn_metadata: AttentionMetadata,
kv_cache: torch.Tensor,
attn_metadata: AttentionMetadata,
) -> torch.Tensor:
if self.use_output:
output = torch.empty_like(query)
Expand Down

0 comments on commit 941a5d5

Please sign in to comment.