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
395aa823
Unverified
Commit
395aa823
authored
Mar 28, 2024
by
Woosuk Kwon
Committed by
GitHub
Mar 28, 2024
Browse files
[Misc] Minor type annotation fix (#3716)
parent
26422e47
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
vllm/attention/selector.py
vllm/attention/selector.py
+2
-1
No files found.
vllm/attention/selector.py
View file @
395aa823
from
functools
import
lru_cache
from
typing
import
Type
import
torch
...
...
@@ -10,7 +11,7 @@ logger = init_logger(__name__)
@
lru_cache
(
maxsize
=
None
)
def
get_attn_backend
(
dtype
:
torch
.
dtype
)
->
AttentionBackend
:
def
get_attn_backend
(
dtype
:
torch
.
dtype
)
->
Type
[
AttentionBackend
]
:
if
_can_use_flash_attn
(
dtype
):
logger
.
info
(
"Using FlashAttention backend."
)
from
vllm.attention.backends.flash_attn
import
(
# noqa: F401
...
...
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