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
2eedede8
Unverified
Commit
2eedede8
authored
Aug 26, 2024
by
Megha Agarwal
Committed by
GitHub
Aug 26, 2024
Browse files
[Core] Asynchronous Output Processor (#7049)
Co-authored-by:
Alexander Matveev
<
alexm@neuralmagic.com
>
parent
015e6cc2
Changes
21
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
vllm/worker/worker_base.py
vllm/worker/worker_base.py
+7
-1
No files found.
vllm/worker/worker_base.py
View file @
2eedede8
...
@@ -263,6 +263,12 @@ class LocalOrDistributedWorkerBase(WorkerBase):
...
@@ -263,6 +263,12 @@ class LocalOrDistributedWorkerBase(WorkerBase):
broadcast_data
.
update
(
kwargs
)
broadcast_data
.
update
(
kwargs
)
broadcast_tensor_dict
(
broadcast_data
,
src
=
0
)
broadcast_tensor_dict
(
broadcast_data
,
src
=
0
)
if
execute_model_req
.
output_proc_callback_fn
:
model_input
=
dataclasses
.
replace
(
# type: ignore
model_input
,
output_proc_callback_fn
=
execute_model_req
.
output_proc_callback_fn
)
return
model_input
,
worker_input
,
kwargs
return
model_input
,
worker_input
,
kwargs
def
prepare_input
(
def
prepare_input
(
...
@@ -289,7 +295,7 @@ class LocalOrDistributedWorkerBase(WorkerBase):
...
@@ -289,7 +295,7 @@ class LocalOrDistributedWorkerBase(WorkerBase):
def
execute_model
(
def
execute_model
(
self
,
self
,
execute_model_req
:
Optional
[
ExecuteModelRequest
]
=
None
execute_model_req
:
Optional
[
ExecuteModelRequest
]
=
None
,
)
->
Optional
[
List
[
SamplerOutput
]]:
)
->
Optional
[
List
[
SamplerOutput
]]:
"""Executes at least one model step on the given sequences, unless no
"""Executes at least one model step on the given sequences, unless no
sequences are provided."""
sequences are provided."""
...
...
Prev
1
2
Next
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