[Model] Enable video support for InternVL3.5 models (#23658)
Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
@@ -855,9 +855,13 @@ class InternVLProcessingInfo(BaseInternVLProcessingInfo):
|
||||
|
||||
def get_video_token(self) -> Optional[str]:
|
||||
text_model_type = self.get_hf_config().get_text_config().model_type
|
||||
if text_model_type == "qwen2":
|
||||
return "<|video_pad|>"
|
||||
return None
|
||||
video_token_map = {
|
||||
"qwen2": "<|video_pad|>",
|
||||
"qwen3": "<|video_pad|>",
|
||||
"qwen3_moe": "<|video_pad|>",
|
||||
"gpt_oss": "<|reserved_200000|>",
|
||||
}
|
||||
return video_token_map.get(text_model_type)
|
||||
|
||||
def get_num_frames_with_most_features(
|
||||
self,
|
||||
|
||||
Reference in New Issue
Block a user