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
15713e3b
Unverified
Commit
15713e3b
authored
Oct 21, 2024
by
Nick Hill
Committed by
GitHub
Oct 21, 2024
Browse files
[BugFix] Update draft model TP size check to allow matching target TP size (#9394)
Co-authored-by:
Baoyuan Qi
<
qibaoyuan@126.com
>
parent
d621c43d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vllm/config.py
vllm/config.py
+3
-3
No files found.
vllm/config.py
View file @
15713e3b
...
...
@@ -1408,11 +1408,11 @@ class SpeculativeConfig:
else
:
speculative_draft_tensor_parallel_size
=
\
target_parallel_config
.
tensor_parallel_size
elif
speculative_draft_tensor_parallel_size
!=
1
:
# TODO(wooyeon): allow tp values larger than 1
elif
speculative_draft_tensor_parallel_size
not
in
(
1
,
target_parallel_config
.
tensor_parallel_size
):
raise
ValueError
(
f
"
{
speculative_draft_tensor_parallel_size
=
}
cannot be "
f
"other value than 1"
)
f
"other value than 1
or target model tensor_parallel_size
"
)
draft_parallel_config
=
ParallelConfig
(
pipeline_parallel_size
=
target_parallel_config
.
...
...
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