You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HyperCLOVAXVisionV2Processor currently fills video_duration with a processor-side stopgap (video_duration_token + overrides on apply_chat_template/_process_videos in modular_hyperclovax_vision_v2.py) instead of the single-placeholder + replace_video_token pattern other video models use (qwen3_vl, glm4v).
Why it's a stopgap and not the real fix (from the PR discussion, #44314 (comment)):
vLLM: the single-placeholder pattern pulls video_metadata through mm_processor_kwargs, and there have been cases of metadata/frame-count sync issues on the vLLM side (e.g. Qwen3-VL). Moving the structure into replace_video_token would need a matching vLLM-side change.
Consistency: the hub chat_template.jinja currently renders image and video symmetrically (both emit a mime block + PAD via jinja). Collapsing only video to a single token breaks that symmetry; fixing it properly means reworking the image path too, which was out of scope for add HyperClovaX Vision #44314.
Real fix path, roughly in order:
hub chat_template.jinja change (Naver side)
vLLM compatibility check, since the template is shared with vLLM
transformers-side migration to replace_video_token, dropping the stopgap in modular_hyperclovax_vision_v2.py
Follow-up from #44314.
HyperCLOVAXVisionV2Processorcurrently fillsvideo_durationwith a processor-side stopgap (video_duration_token+ overrides onapply_chat_template/_process_videosinmodular_hyperclovax_vision_v2.py) instead of the single-placeholder +replace_video_tokenpattern other video models use (qwen3_vl,glm4v).Why it's a stopgap and not the real fix (from the PR discussion, #44314 (comment)):
mm_processor_kwargs, and there have been cases of metadata/frame-count sync issues on the vLLM side (e.g. Qwen3-VL). Moving the structure intoreplace_video_tokenwould need a matching vLLM-side change.chat_template.jinjacurrently renders image and video symmetrically (both emit a mime block + PAD via jinja). Collapsing only video to a single token breaks that symmetry; fixing it properly means reworking the image path too, which was out of scope for add HyperClovaX Vision #44314.Real fix path, roughly in order:
chat_template.jinjachange (Naver side)replace_video_token, dropping the stopgap inmodular_hyperclovax_vision_v2.pycc @bigshanedogg @vasqu