Skip to content

fix incorrect hub tokenizer class - #48641

Merged
itazap merged 3 commits into
mainfrom
olmo_donut
Sep 9, 2026
Merged

itazap merged 3 commits into
mainfrom
olmo_donut

Conversation

@itazap

@itazap itazap commented Sep 9, 2026 •

Copy link
Copy Markdown
Collaborator

CPU CI GPU run-slow

fixes: #48628 , #48535

see v5 migration guide --> in v5 if a checkpoint on the hub maps to a specific tokenizer class, then we load that specific tokenizer class . we did not enforce this in v4. if a model starts tokenizing differently in v5, then the hub checkpoint always mapped to an incorrect class (that we never enforced in v4!) so we put it in the list of shame in MODELS_WITH_INCORRECT_HUB_TOKENIZER_CLASS (for all models using this model_type) or MODEL_IDS_TO_TOKENIZERS_BACKEND (to use a specific checkpoint). Alternatively, you can open a PR on the 🤗 Hub to fix the tokenizer_class mapping in tokenization_config.json

please see #44255 for the repots, may need to go back a couple commits to see the removed .html files)

@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.

"minicpmv",
"minimax_m2",
"modernbert",
"modernbert-decoder",

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this already has test coverage ✅

@itazap

itazap commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator Author

run-slow: auto, vision-encoder-decoder, modern-bert

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs on AMD:

models: ["models/auto"]

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/auto"]
quantizations: []

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 2094f455 workflow commit (merge commit)
PR b4b4c57d branch commit (from PR)
main 50bbcc63 base commit (on main)

✅ No failing test specific to this PR 🎉 👏 !

@ydshieh ydshieh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @itazap ! Trust you expertise on tokenizers!

Let's see the run-slow results. For me, I need "trocr integration tests on vision-encoder-decoder" to pass 🙏

@ydshieh

ydshieh commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

run-slow: auto, vision_encoder_decoder, modern_bert

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

CI Results (AMD)

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 2094f455 workflow commit (merge commit)
PR b4b4c57d branch commit (from PR)
main 50bbcc63 base commit (on main)

⚠️ No test being reported (job is skipped or cancelled)!

@ydshieh

ydshieh commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

run-slow: auto, vision_encoder_decoder, modernbert

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️💔 This comment contains run-slow, but unknown error occurred and the workflow run aborted! (AMD CI)

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs:

models: ["models/auto", "models/modernbert", "models/vision_encoder_decoder"]
quantizations: []

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs on AMD:

models: ["models/auto", "models/modernbert", "models/vision_encoder_decoder"]

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

CI Results

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 2094f455 workflow commit (merge commit)
PR b4b4c57d branch commit (from PR)
main 50bbcc63 base commit (on main)

Model CI Report

❌ 2 new failed tests from this PR 😭

  • vision_encoder_decoder:
    tests/models/vision_encoder_decoder/test_modeling_vision_encoder_decoder.py::NougatModelIntegrationTest::test_forward_pass (❌ ⟹ ❌)
    tests/models/vision_encoder_decoder/test_modeling_vision_encoder_decoder.py::NougatModelIntegrationTest::test_generation (❌ ⟹ ❌)

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

CI Results (AMD)

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN 2094f455 workflow commit (merge commit)
PR b4b4c57d branch commit (from PR)
main 50bbcc63 base commit (on main)

✅ No failing test specific to this PR 🎉 👏 !

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

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

run-slow: auto

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 34362161441:1
Result: success | Jobs: 1 | Tests: 110 | Failures: 4 | Duration: 6m 47s

@itazap
itazap added this pull request to the merge queue Sep 9, 2026
Merged via the queue into main with commit d6e4e47 Sep 9, 2026
113 checks passed
@itazap
itazap deleted the olmo_donut branch September 9, 2026 15:27
sbucaille pushed a commit to sbucaille/transformers that referenced this pull request Sep 16, 2026
* fix incorrect hub tokenizer class

* test

* test
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.

3 participants