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
953f28cf
Unverified
Commit
953f28cf
authored
Jul 30, 2023
by
Fang li
Committed by
GitHub
Jul 29, 2023
Browse files
fix ModuleNotFoundError (#599)
Co-authored-by:
fangli
<
fangli@tencent.com
>
parent
c0d00f5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
vllm/engine/llm_engine.py
vllm/engine/llm_engine.py
+7
-3
No files found.
vllm/engine/llm_engine.py
View file @
953f28cf
import
time
import
copy
from
functools
import
partial
from
typing
import
Any
,
List
,
Optional
,
TYPE_CHECKING
...
...
@@ -145,12 +146,15 @@ class LLMEngine:
# Initialize torch distributed process group for the workers.
init_torch_dist_process_group
(
self
.
workers
,
backend
=
"nccl"
)
model_config
=
copy
.
deepcopy
(
self
.
model_config
)
parallel_config
=
copy
.
deepcopy
(
self
.
parallel_config
)
scheduler_config
=
copy
.
deepcopy
(
self
.
scheduler_config
)
self
.
_run_workers
(
"init_worker"
,
get_all_outputs
=
True
,
worker_init_fn
=
lambda
:
Worker
(
self
.
model_config
,
self
.
parallel_config
,
self
.
scheduler_config
,
model_config
,
parallel_config
,
scheduler_config
,
None
,
None
,
))
...
...
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