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
c4059ea5
Unverified
Commit
c4059ea5
authored
Jul 01, 2024
by
Antoni Baum
Committed by
GitHub
Jul 01, 2024
Browse files
[Bugfix] Add explicit `end_forward` calls to flashinfer (#6044)
parent
8e0817c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vllm/attention/backends/flashinfer.py
vllm/attention/backends/flashinfer.py
+2
-0
No files found.
vllm/attention/backends/flashinfer.py
View file @
c4059ea5
...
...
@@ -126,6 +126,7 @@ class FlashInferMetadata(AttentionMetadata):
self
.
paged_kv_indptr
=
self
.
paged_kv_indptr
.
to
(
self
.
device
)
self
.
paged_kv_last_page_len
=
self
.
paged_kv_last_page_len
.
to
(
self
.
device
)
self
.
prefill_wrapper
.
end_forward
()
self
.
prefill_wrapper
.
begin_forward
(
self
.
query_start_loc
,
self
.
paged_kv_indptr
,
self
.
paged_kv_indices
,
self
.
paged_kv_last_page_len
,
...
...
@@ -142,6 +143,7 @@ class FlashInferMetadata(AttentionMetadata):
self
.
device
)
assert
self
.
decode_wrapper
is
not
None
self
.
decode_wrapper
.
end_forward
()
self
.
decode_wrapper
.
begin_forward
(
self
.
paged_kv_indptr
,
self
.
paged_kv_indices
,
...
...
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