{"slug": "one-more-measured-note-for-transformers-video-expansion-adds-an-outer-marker", "title": "One more measured note for transformers — video expansion adds an outer marker pair", "summary": "Hugging Face's Transformers 5.25.0 fixes a Qwen3-VL processor bug that added an extra outer vision marker pair when video placeholders were wrapped, according to a developer's CPU processor/tokenizer checks. With the same assets and synthetic media, one wrapped video dropped from 3 vision pairs and 30 total IDs on 5.24.1 to 2 pairs and 27 IDs on 5.25.0, two wrapped videos fell from 6 pairs and 58 IDs to 4 pairs and 52 IDs, and an image followed by a video went from 4 pairs and 98 IDs to 3 pairs and 95 IDs, matching the bare-placeholder control. The fix ships via PR #51229, and the author recommends Transformers 5.25.0 with the normal model-specific template for Transformers-only Qwen3-VL setups while checking serving-engine/processor version combinations separately.", "body_md": "I confirmed the fix in 5.25.0 and ran some additional checks, including mixed image and video inputs:\n\nThe 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.\n\nUsing the same processor/tokenizer assets and synthetic media, I counted the actual vision start/end token IDs and the total number of IDs:\n\n| Input to the processor | 5.24.1: vision pairs / total IDs | 5.25.0: vision pairs / total IDs | \n|---|---|---|\n| One video, wrapped placeholder | 3 / 30 | 2 / 27 | \n| One video, bare placeholder | 2 / 27 | 2 / 27 | \n| Two videos, wrapped placeholders | 6 / 58 | 4 / 52 | \n| One image followed by one video | 4 / 98 | 3 / 95 | \n\nEach 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.\n\nFor 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.\n\nThese are CPU processor/tokenizer measurements with synthetic media and hand-written prompts, not full model generation, video decoding, or training measurements.\n\n1. Why the outer pair disappeared in 5.25.0", "url": "https://wpnews.pro/news/one-more-measured-note-for-transformers-video-expansion-adds-an-outer-marker", "canonical_source": "https://discuss.huggingface.co/t/one-more-measured-note-for-transformers-video-expansion-adds-an-outer-marker-pair/192478#post_2", "published_at": "2026-12-02 06:08:54+00:00", "updated_at": "2026-12-02 06:15:50.856563+00:00", "lang": "en", "topics": ["large-language-models", "machine-learning", "ai-tools", "developer-tools"], "entities": ["Hugging Face", "Transformers", "Qwen3-VL", "PR #51229"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/one-more-measured-note-for-transformers-video-expansion-adds-an-outer-marker", "markdown": "https://wpnews.pro/news/one-more-measured-note-for-transformers-video-expansion-adds-an-outer-marker.md", "text": "https://wpnews.pro/news/one-more-measured-note-for-transformers-video-expansion-adds-an-outer-marker.txt", "jsonld": "https://wpnews.pro/news/one-more-measured-note-for-transformers-video-expansion-adds-an-outer-marker.jsonld"}}