Skip to content

Allow tokenizers 0.23.1#46381

Open
ArthurZucker wants to merge 5 commits into
mainfrom
bump-tokenizers-0.23.1
Open

Allow tokenizers 0.23.1#46381
ArthurZucker wants to merge 5 commits into
mainfrom
bump-tokenizers-0.23.1

Conversation

@ArthurZucker
Copy link
Copy Markdown
Collaborator

@ArthurZucker ArthurZucker commented Jun 3, 2026

Closes #45736 — allow tokenizers==0.23.1.

Two 0.23.1 changes handled:

Tested: clip/roberta/layoutlmv3/bert/gpt2/t5 tokenizer suites pass on both 0.22.2 and 0.23.1. AI-assisted, human-reviewed.

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

tokenizers 0.23.1 made RobertaProcessing args positional-only. Convert
the 5 call sites (convert_slow_tokenizer x2, clip, layoutlmv3, roberta)
to positional (sep, cls, trim_offsets, add_prefix_space) — works on
0.22.x and 0.23.1.
tokenizers 0.23.1 early-exits right-direction truncation
(huggingface/tokenizers#1990), so return_overflowing_tokens may omit the
trailing overflow segment when it is shorter than the window. Validate
the overflow content only when that segment is present; truncation is
always checked. Keeps passing on 0.22.x (segment always present).
The trailing overflow segment is not essential to validate here, and
0.23.1's truncation early-exit (huggingface/tokenizers#1990) may omit it.
Keep the truncation checks; remove the now-dead overflow expectations.
Comment thread setup.py Outdated
@ArthurZucker ArthurZucker marked this pull request as ready for review June 4, 2026 13:07
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

[For maintainers] Suggested jobs to run (before merge)

run-slow: clip, layoutlmv3, roberta

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

CI Dashboard: View test results in Grafana

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=46381&sha=9b77e5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please update tokenizers version check

2 participants