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 <zhangch99@outlook.com>
Signed-off-by: ice-tong <xych6@outlook.com>
  • Loading branch information
heheda12345 authored and ice-tong committed Jan 18, 2025
1 parent f9a5b08 commit 9e9ca03
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 9e9ca03

Please sign in to comment.