Skip to content

timelens-8b推理报错 #5

@william-ljz

Description

@william-ljz

很好的工作!
我在用timelens-8b推理的时候发现会报错如下, 想问一下作者的transformer版本或者改了啥吗,很奇怪我自己rl之后和官方的权重都能推理:

>> Traceback (most recent call last): |   -- | --line 959, in main |     |   | 2026-01-13 19:59:28.390656 master-0 >> dump_inputs = processor.apply_chat_template( |     |   | 2026-01-13 19:59:28.390657 master-0 >> File "/usr/local/lib/python3.10/dist-packages/transformers/utils/deprecation.py", line 172, in wrapped_func |     |   | 2026-01-13 19:59:28.39066 master-0 >> return func(*args, **kwargs) |     |   | 2026-01-13 19:59:28.390661 master-0 >> File "/usr/local/lib/python3.10/dist-packages/transformers/utils/deprecation.py", line 172, in wrapped_func |     |   | 2026-01-13 19:59:28.390663 master-0 >> return func(*args, **kwargs) |     |   | 2026-01-13 19:59:28.390674 master-0 >> File "/usr/local/lib/python3.10/dist-packages/transformers/processing_utils.py", line 1705, in apply_chat_template |     |   | 2026-01-13 19:59:28.390676 master-0 >> out = self( |     |   | 2026-01-13 19:59:28.390677 master-0 >> File "", line 170, in __call__ |     |   | 2026-01-13 19:59:28.390679 master-0 >> videos_inputs = self.video_processor(videos=videos, **output_kwargs["videos_kwargs"]) |     |   | 2026-01-13 19:59:28.390681 master-0 >> File "/usr/local/lib/python3.10/dist-packages/transformers/video_processing_utils.py", line 206, in __call__ |     |   | 2026-01-13 19:59:28.390683 master-0 >> return self.preprocess(videos, **kwargs) |     |   | 2026-01-13 19:59:28.390685 master-0 >> File "/usr/local/lib/python3.10/dist-packages/transformers/video_processing_utils.py", line 387, in preprocess |     |   | 2026-01-13 19:59:28.390686 master-0 >> preprocessed_videos = self._preprocess(videos=videos, **kwargs) |     |   | 2026-01-13 19:59:28.390688 master-0 >> File "/usr/local/lib/python3.10/dist-packages/transformers/models/qwen3_vl/video_processing_qwen3_vl.py", line 242, in _preprocess |     |   | 2026-01-13 19:59:28.39069 master-0 >> patches = patches.view( |     |   | 2026-01-13 19:59:28.390692 master-0 >> RuntimeError: shape '[1, 108, 2, 3, 22, 2, 16, 40, 2, 16]' is invalid for input of size 597196800

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions