mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-07-09 05:37:08 +08:00
[BugFix] Fix initialization of draft model. (#29319)
Signed-off-by: Andrey Khalyavin <halyavin@yandex-team.ru> Signed-off-by: Tyler Michael Smith <tlrmchlsmth@gmail.com> Co-authored-by: Tyler Michael Smith <tlrmchlsmth@gmail.com>
This commit is contained in:
parent
7df0289782
commit
de75b0bb70
@ -3460,6 +3460,10 @@ class GPUModelRunner(
|
|||||||
scope="local",
|
scope="local",
|
||||||
)
|
)
|
||||||
prepare_communication_buffer_for_model(self.model)
|
prepare_communication_buffer_for_model(self.model)
|
||||||
|
if (drafter := getattr(self, "drafter", None)) and (
|
||||||
|
drafter_model := getattr(drafter, "model", None)
|
||||||
|
):
|
||||||
|
prepare_communication_buffer_for_model(drafter_model)
|
||||||
mm_config = self.model_config.multimodal_config
|
mm_config = self.model_config.multimodal_config
|
||||||
self.is_multimodal_pruning_enabled = (
|
self.is_multimodal_pruning_enabled = (
|
||||||
supports_multimodal_pruning(self.get_model())
|
supports_multimodal_pruning(self.get_model())
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user