"vscode:/vscode.git/clone" did not exist on "b68fd899d1317259d61d8bbaf79dcb2749d17634"
Unverified Commit 13affc43 authored by Chauncey's avatar Chauncey Committed by GitHub
Browse files

[Misc] Remove redundant code (#16098)


Signed-off-by: default avatarchaunceyjiang <chaunceyjiang@gmail.com>
parent d8f094a9
...@@ -498,7 +498,7 @@ class BaseMultiModalItemTracker(ABC, Generic[_T]): ...@@ -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]): ...@@ -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":
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment