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
9606c719
Unverified
Commit
9606c719
authored
Aug 27, 2024
by
Cody Yu
Committed by
GitHub
Aug 27, 2024
Browse files
Revert #7509 (#7887)
parent
64cc6444
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
vllm/attention/backends/flashinfer.py
vllm/attention/backends/flashinfer.py
+2
-4
No files found.
vllm/attention/backends/flashinfer.py
View file @
9606c719
...
@@ -113,8 +113,7 @@ class FlashInferState(AttentionState):
...
@@ -113,8 +113,7 @@ class FlashInferState(AttentionState):
self
.
runner
.
parallel_config
))
self
.
runner
.
parallel_config
))
num_kv_heads
=
self
.
runner
.
model_config
.
get_num_kv_heads
(
num_kv_heads
=
self
.
runner
.
model_config
.
get_num_kv_heads
(
self
.
runner
.
parallel_config
)
self
.
runner
.
parallel_config
)
use_tensor_cores
=
(
num_qo_heads
//
num_kv_heads
)
not
in
\
use_tensor_cores
=
num_qo_heads
//
num_kv_heads
>
4
(
1
,
2
,
4
,
8
)
self
.
_decode_wrapper
=
BatchDecodeWithPagedKVCacheWrapper
(
self
.
_decode_wrapper
=
BatchDecodeWithPagedKVCacheWrapper
(
self
.
_get_workspace_buffer
(),
self
.
_get_workspace_buffer
(),
"NHD"
,
"NHD"
,
...
@@ -172,8 +171,7 @@ class FlashInferState(AttentionState):
...
@@ -172,8 +171,7 @@ class FlashInferState(AttentionState):
self
.
runner
.
parallel_config
))
self
.
runner
.
parallel_config
))
num_kv_heads
=
self
.
runner
.
model_config
.
get_num_kv_heads
(
num_kv_heads
=
self
.
runner
.
model_config
.
get_num_kv_heads
(
self
.
runner
.
parallel_config
)
self
.
runner
.
parallel_config
)
use_tensor_cores
=
(
num_qo_heads
//
num_kv_heads
)
not
in
\
use_tensor_cores
=
num_qo_heads
//
num_kv_heads
>
4
(
1
,
2
,
4
,
8
)
self
.
_graph_decode_wrapper
=
\
self
.
_graph_decode_wrapper
=
\
CUDAGraphBatchDecodeWithPagedKVCacheWrapper
(
CUDAGraphBatchDecodeWithPagedKVCacheWrapper
(
self
.
_graph_decode_workspace_buffer
,
_indptr_buffer
,
self
.
_graph_decode_workspace_buffer
,
_indptr_buffer
,
...
...
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