Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
kecinstone
2024pra-vllm
Commits
d79ced32
Unverified
Commit
d79ced32
authored
Jan 31, 2024
by
Wen Sun
Committed by
GitHub
Jan 30, 2024
Browse files
Fix 'Actor methods cannot be called directly' when using `--engine-use-ray` (#2664)
* fix: engine-useray complain * fix: typo
parent
ab406446
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
vllm/engine/async_llm_engine.py
vllm/engine/async_llm_engine.py
+13
-5
No files found.
vllm/engine/async_llm_engine.py
View file @
d79ced32
...
@@ -447,11 +447,19 @@ class AsyncLLMEngine:
...
@@ -447,11 +447,19 @@ class AsyncLLMEngine:
if
arrival_time
is
None
:
if
arrival_time
is
None
:
arrival_time
=
time
.
time
()
arrival_time
=
time
.
time
()
prompt_token_ids
=
await
self
.
engine
.
encode_request_async
(
request_id
=
request_id
,
if
self
.
engine_use_ray
:
prompt
=
prompt
,
prompt_token_ids
=
await
self
.
engine
.
encode_request_async
.
remote
(
prompt_token_ids
=
prompt_token_ids
,
request_id
=
request_id
,
lora_request
=
lora_request
)
prompt
=
prompt
,
prompt_token_ids
=
prompt_token_ids
,
lora_request
=
lora_request
)
else
:
prompt_token_ids
=
await
self
.
engine
.
encode_request_async
(
request_id
=
request_id
,
prompt
=
prompt
,
prompt_token_ids
=
prompt_token_ids
,
lora_request
=
lora_request
)
stream
=
self
.
_request_tracker
.
add_request
(
stream
=
self
.
_request_tracker
.
add_request
(
request_id
,
request_id
,
...
...
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