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
norm
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
Show 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,6 +447,14 @@ class AsyncLLMEngine:
...
@@ -447,6 +447,14 @@ class AsyncLLMEngine:
if
arrival_time
is
None
:
if
arrival_time
is
None
:
arrival_time
=
time
.
time
()
arrival_time
=
time
.
time
()
if
self
.
engine_use_ray
:
prompt_token_ids
=
await
self
.
engine
.
encode_request_async
.
remote
(
request_id
=
request_id
,
prompt
=
prompt
,
prompt_token_ids
=
prompt_token_ids
,
lora_request
=
lora_request
)
else
:
prompt_token_ids
=
await
self
.
engine
.
encode_request_async
(
prompt_token_ids
=
await
self
.
engine
.
encode_request_async
(
request_id
=
request_id
,
request_id
=
request_id
,
prompt
=
prompt
,
prompt
=
prompt
,
...
...
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