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
2094062b
Unverified
Commit
2094062b
authored
Nov 04, 2024
by
youkaichao
Committed by
GitHub
Nov 04, 2024
Browse files
[4.5/N] bugfix for quant config in speculative decode (#10007)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
d93478b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
vllm/spec_decode/spec_decode_worker.py
vllm/spec_decode/spec_decode_worker.py
+4
-0
No files found.
vllm/spec_decode/spec_decode_worker.py
View file @
2094062b
...
@@ -61,6 +61,10 @@ def create_spec_worker(*args, **kwargs) -> "SpecDecodeWorker":
...
@@ -61,6 +61,10 @@ def create_spec_worker(*args, **kwargs) -> "SpecDecodeWorker":
draft_worker_config
=
copy
.
deepcopy
(
vllm_config
)
draft_worker_config
=
copy
.
deepcopy
(
vllm_config
)
draft_worker_config
.
model_config
=
speculative_config
.
draft_model_config
draft_worker_config
.
model_config
=
speculative_config
.
draft_model_config
draft_worker_config
.
quant_config
=
VllmConfig
.
_get_quantization_config
(
draft_worker_config
.
model_config
,
vllm_config
.
load_config
,
)
draft_worker_config
.
parallel_config
=
speculative_config
.
draft_parallel_config
# noqa
draft_worker_config
.
parallel_config
=
speculative_config
.
draft_parallel_config
# noqa
# TODO allow draft-model specific load config.
# TODO allow draft-model specific load 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