I confirmed the fix in 5.25.0 and ran some additional checks, including mixed image and video inputs:
The extra outer vision marker pair is gone in my Qwen3-VL processor checks on Transformers 5.25.0. The 5.24.1 result agrees with the reported behavior on 5.23.0. PR #51229 is included in 5.25.0.
Using the same processor/tokenizer assets and synthetic media, I counted the actual vision start/end token IDs and the total number of IDs:
| Input to the processor | 5.24.1: vision pairs / total IDs | 5.25.0: vision pairs / total IDs |
|---|---|---|
| One video, wrapped placeholder | 3 / 30 | 2 / 27 |
| One video, bare placeholder | 2 / 27 | 2 / 27 |
| Two videos, wrapped placeholders | 6 / 58 | 4 / 52 |
| One image followed by one video | 4 / 98 | 3 / 95 |
Each video had four raw frames and produced two temporal groups. The bare-placeholder control was unchanged; on 5.25.0, the wrapped and bare single-video cases gave exactly the same input IDs. In the mixed case, the image’s wrapper and media token count were preserved. The assistant-suffix alignment check also passed in both versions.
For a Transformers-only Qwen3-VL setup, I would now use 5.25.0 with the normal model-specific template and processor. For an external serving engine, check the engine/processor version combination separately. These are CPU processor/tokenizer measurements with synthetic media and hand-written prompts, not full model generation, video decoding, or training measurements.
- Why the outer pair disappeared in 5.25.0