Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch recursive import #11812

Merged
merged 1 commit into from
May 21, 2021
Merged

Patch recursive import #11812

merged 1 commit into from
May 21, 2021

Conversation

LysandreJik
Copy link
Member

@LysandreJik LysandreJik commented May 21, 2021

The RoFormer converter requires the JiebaPreTokenizer which was imported at the root of the file.

This resulted in a cyclic dependency and a partially initialized module.

This PR fixes the issue by importing it only when necessary and additionally tests that the PreTrainedTokenizerFast can be loaded as a standalone.

@LysandreJik LysandreJik requested a review from SaulLu May 21, 2021 10:21
Copy link
Contributor

@SaulLu SaulLu left a comment

Choose a reason for hiding this comment

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

Looks great, I've nothing to add! Thank you! 👍

@LysandreJik LysandreJik merged commit 1b65229 into master May 21, 2021
@LysandreJik LysandreJik deleted the patch-recursive-import branch May 21, 2021 10:50
Iwontbecreative pushed a commit to Iwontbecreative/transformers that referenced this pull request Jul 15, 2021
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.

None yet

2 participants