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
e85250b1
Unverified
Commit
e85250b1
authored
Nov 27, 2024
by
Kunshang Ji
Committed by
GitHub
Nov 26, 2024
Browse files
[Hardware][Gaudi]add get_name method for HPUAttentionBackend (#10667)
Signed-off-by:
Kunshang Ji
<
kunshang.ji@intel.com
>
parent
cfb3bf25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vllm/attention/backends/hpu_attn.py
vllm/attention/backends/hpu_attn.py
+4
-0
No files found.
vllm/attention/backends/hpu_attn.py
View file @
e85250b1
...
@@ -22,6 +22,10 @@ logger = init_logger(__name__)
...
@@ -22,6 +22,10 @@ logger = init_logger(__name__)
class
HPUAttentionBackend
(
AttentionBackend
):
class
HPUAttentionBackend
(
AttentionBackend
):
@
staticmethod
def
get_name
()
->
str
:
return
"HPU_ATTN"
@
staticmethod
@
staticmethod
def
get_impl_cls
()
->
Type
[
"HPUAttentionImpl"
]:
def
get_impl_cls
()
->
Type
[
"HPUAttentionImpl"
]:
return
HPUAttentionImpl
return
HPUAttentionImpl
...
...
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