mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-30 08:27:04 +08:00
[Misc] Remove redundant code (#16098)
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
This commit is contained in:
parent
d8f094a92a
commit
13affc432d
@ -498,7 +498,7 @@ class BaseMultiModalItemTracker(ABC, Generic[_T]):
|
|||||||
hf_config.image_token_index)
|
hf_config.image_token_index)
|
||||||
if model_type in ("aya_vision", "chameleon", "deepseek_vl_v2",
|
if model_type in ("aya_vision", "chameleon", "deepseek_vl_v2",
|
||||||
"internvl_chat", "skywork_chat", "NVLM_D",
|
"internvl_chat", "skywork_chat", "NVLM_D",
|
||||||
"h2ovl_chat"):
|
"h2ovl_chat", "idefics3"):
|
||||||
return "<image>"
|
return "<image>"
|
||||||
if model_type == "mllama":
|
if model_type == "mllama":
|
||||||
return "<|image|>"
|
return "<|image|>"
|
||||||
@ -506,8 +506,6 @@ class BaseMultiModalItemTracker(ABC, Generic[_T]):
|
|||||||
return "<|vision_start|><|image_pad|><|vision_end|>"
|
return "<|vision_start|><|image_pad|><|vision_end|>"
|
||||||
if model_type == "molmo":
|
if model_type == "molmo":
|
||||||
return ""
|
return ""
|
||||||
if model_type == "idefics3":
|
|
||||||
return "<image>"
|
|
||||||
if model_type == "aria":
|
if model_type == "aria":
|
||||||
return "<|fim_prefix|><|img|><|fim_suffix|>"
|
return "<|fim_prefix|><|img|><|fim_suffix|>"
|
||||||
if model_type == "gemma3":
|
if model_type == "gemma3":
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user