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
b72af8f1
Unverified
Commit
b72af8f1
authored
Jan 29, 2024
by
zhaoyang-star
Committed by
GitHub
Jan 28, 2024
Browse files
Fix error when tp > 1 (#2644)
Co-authored-by:
zhaoyang-star
<
zhao.yang16@zte.com.cn
>
parent
9090bf02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
vllm/engine/llm_engine.py
vllm/engine/llm_engine.py
+2
-3
No files found.
vllm/engine/llm_engine.py
View file @
b72af8f1
...
...
@@ -236,7 +236,6 @@ class LLMEngine:
model_config
=
copy
.
deepcopy
(
self
.
model_config
)
parallel_config
=
copy
.
deepcopy
(
self
.
parallel_config
)
scheduler_config
=
copy
.
deepcopy
(
self
.
scheduler_config
)
cache_config
=
copy
.
deepcopy
(
self
.
cache_config
)
for
rank
,
(
worker
,
(
node_id
,
_
))
in
enumerate
(
zip
(
self
.
workers
,
...
...
@@ -252,7 +251,7 @@ class LLMEngine:
rank
,
distributed_init_method
,
lora_config
=
self
.
lora_config
,
cache_
config
=
cache_config
,
kv_
cache_
dtype
=
self
.
cache_config
.
cache_dtype
,
))
driver_rank
=
0
...
...
@@ -265,7 +264,7 @@ class LLMEngine:
driver_rank
,
distributed_init_method
,
lora_config
=
self
.
lora_config
,
cache_
config
=
cache_config
,
kv_
cache_
dtype
=
self
.
cache_config
.
cache_dtype
,
is_driver_worker
=
True
,
)
...
...
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