[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:
Andrey Khalyavin 2025-11-26 02:45:58 +03:00 committed by GitHub
parent 7df0289782
commit de75b0bb70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3460,6 +3460,10 @@ class GPUModelRunner(
scope="local",
)
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
self.is_multimodal_pruning_enabled = (
supports_multimodal_pruning(self.get_model())