[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:
co-authored by
Louie Tsai
Cyrus Leung
parent
c7ba1f6bc7
commit
37b15e97e8
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user