File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
vllm/model_executor/models Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 65
65
MultiModalDataParser )
66
66
from vllm .multimodal .processing import (BaseMultiModalProcessor ,
67
67
BaseProcessingInfo , PromptReplacement ,
68
- PromptUpdate )
68
+ PromptUpdate , PromptUpdateDetails )
69
69
from vllm .multimodal .profiling import BaseDummyInputsBuilder
70
70
from vllm .platforms import _Backend
71
71
from vllm .sequence import IntermediateTensors
@@ -1213,7 +1213,10 @@ def get_video_replacement_glm4v(item_idx: int):
1213
1213
placeholder .append (eoi_token_id )
1214
1214
placeholder .extend (frame_idx )
1215
1215
placeholder .append (eov_token_id )
1216
- return placeholder
1216
+ return PromptUpdateDetails .select_token_id (
1217
+ placeholder ,
1218
+ embed_token_id = hf_processor .video_token_id ,
1219
+ )
1217
1220
1218
1221
return [
1219
1222
PromptReplacement (
You can’t perform that action at this time.
0 commit comments