Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
1f18adb2
Unverified
Commit
1f18adb2
authored
Jan 14, 2025
by
Chen Zhang
Committed by
GitHub
Jan 14, 2025
Browse files
[Kernel] Revert the API change of Attention.forward (#12038)
Signed-off-by:
Chen Zhang
<
zhangch99@outlook.com
>
parent
bb354e6b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/attention/layer.py
vllm/attention/layer.py
+2
-2
No files found.
vllm/attention/layer.py
View file @
1f18adb2
...
...
@@ -134,8 +134,8 @@ class Attention(nn.Module):
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment