Skip to content

Fix tokenizer subfolder fallback#46161

Open
Prachi-kushwaha wants to merge 9 commits into
huggingface:mainfrom
Prachi-kushwaha:fix-tokenizer-subfolder-fallback
Open

Fix tokenizer subfolder fallback#46161
Prachi-kushwaha wants to merge 9 commits into
huggingface:mainfrom
Prachi-kushwaha:fix-tokenizer-subfolder-fallback

Conversation

@Prachi-kushwaha

@Prachi-kushwaha Prachi-kushwaha commented May 22, 2026

Copy link
Copy Markdown

What does this PR do?

This pr add a support for loading tokenizers from a subfolder when they are not found in the root folder

the logic first check whether the tokenizer exists in the root folder . if it is not found it then searches inside the corresponding subfolder and load the tokenizer

fixes #46153

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@Prachi-kushwaha Prachi-kushwaha marked this pull request as draft May 22, 2026 14:10
@Prachi-kushwaha Prachi-kushwaha marked this pull request as ready for review May 23, 2026 00:04
@github-actions github-actions Bot requested review from Rocketknight1 and ydshieh May 23, 2026 00:04
@Prachi-kushwaha Prachi-kushwaha marked this pull request as draft May 23, 2026 00:05
@github-actions

Copy link
Copy Markdown
Contributor

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

run-slow: auto

@Prachi-kushwaha Prachi-kushwaha marked this pull request as ready for review May 23, 2026 08:29
@github-actions

Copy link
Copy Markdown
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=46161&sha=e34aa5

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

Labels

None yet

Projects

None yet

1 participant