timelens-8b推理报错

Open
#5 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

Start by reproducing the inference failure at main line 959, where processor.apply_chat_template invokes the Transformers Qwen3-VL video processor. Compare the processor and Transformers versions used with the official and RL weights, then trace the shape calculation in video_processing_qwen3_vl.py. Done means inference completes without the reported invalid-shape RuntimeError.

Written by the indexing model from the issue text.

Description

很好的工作!
我在用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
Dominant language
Python
Stars
179
Forks
14
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TencentARC/TimeLens

All issues in TencentARC/TimeLens

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.