transformers
Add `_get_num_multimodal_tokens` to more image/video processors
#50671
Merged

Add `_get_num_multimodal_tokens` to more image/video processors #50671

hmellor
hmellor Add `_get_num_multimodal_tokens` to more processors
a85d6a4e
HuggingFaceDocBuilderDev
hmellor Add `_get_num_multimodal_tokens` to Granite Speech
fad35309
zucchini-nlp
zucchini-nlp commented on 2026-11-13
hmellor Drop `_get_num_multimodal_tokens` from audio-only processors
0a73f130
hmellor hmellor changed the title Add `_get_num_multimodal_tokens` to more processors Add `_get_num_multimodal_tokens` to more image/video processors 13 days ago
hmellor Count embedding tokens for Llama4 and Ovis2 without `image_token_ids`…
9312d00f
hmellor Use dict literals in Llama4/Ovis2 token count tests
f25beba3
hmellor Run the image token count test on both image processor backends
79b1dfb2
hmellor Note GOT-OCR2 `num_image_tokens` fallback goes with the v5.29.0 depre…
7b1eb3c0
hmellor Count embedding tokens from replacements in the token count tests
c6578742
hmellor Count embedding tokens from replacements in the SmolVLM and LFM2-VL t…
6bc9ff6c
zucchini-nlp
zucchini-nlp commented on 2026-11-17
zucchini-nlp
zucchini-nlp commented on 2026-11-19
hmellor hmellor marked this pull request as ready for review 6 days ago
hmellor Address review: fewer helpers in the token counters
84893de4
github-actions
hmellor
zucchini-nlp
zucchini-nlp approved these changes on 2026-11-25
hmellor
hmellor hmellor merged 9d5d0ee8 into main 1 day ago
hmellor hmellor deleted the processors-num-mm-tokens branch 1 day ago
hmellor

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone