[Multimodal][Speculative Decoding]Eagle3 mm support, enablement on qwen3vl (#29594)

Signed-off-by: Tsai, Louie <louie.tsai@intel.com>
Signed-off-by: EanWang211123 <wangyiheng@sangfor.com.cn>
Co-authored-by: Louie Tsai <louie.tsai@intel.com>
Co-authored-by: Cyrus Leung <cyrus.tl.leung@gmail.com>
This commit is contained in:
EanWang211123
2025-11-27 22:05:45 -08:00
committed by GitHub
co-authored by Louie Tsai Cyrus Leung
parent c7ba1f6bc7
commit 37b15e97e8
5 changed files with 45 additions and 5 deletions
+4 -4
View File
@@ -1017,10 +1017,10 @@ class EagleProposer:
if supports_multimodal(target_model):
# handle multimodality
if (
self.get_model_name(target_model)
== "Qwen2_5_VLForConditionalGeneration"
):
if self.get_model_name(target_model) in [
"Qwen2_5_VLForConditionalGeneration",
"Qwen3VLForConditionalGeneration",
]:
self.model.config.image_token_index = target_model.config.image_token_id
else:
self.model.config.image_token_index = (