# One more measured note for transformers — video expansion adds an outer marker pair

> Source: <https://discuss.huggingface.co/t/one-more-measured-note-for-transformers-video-expansion-adds-an-outer-marker-pair/192478#post_2>
> Published: 2026-12-02 06:08:54+00:00

**Key takeaway:** Transformers 5.25.0 removes the extra outer vision marker pair for wrapped Qwen3-VL video placeholders, cutting a single wrapped video from 3 vision pairs and 30 IDs to 2 pairs and 27 IDs.

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](https://github.com/huggingface/transformers/pull/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.

1. Why the outer pair disappeared in 5.25.0
