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

Update deprecated load_module #21651

Merged
merged 1 commit into from
Feb 15, 2023
Merged

Update deprecated load_module #21651

merged 1 commit into from
Feb 15, 2023

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Feb 15, 2023

What does this PR do?

This PR updates the uses of load_module (which is going to be dropped in Python 3.12) to a non-deprecated API (this should work starting Python 3.5, so all good for Transformers).

Fixes #21645

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Feb 15, 2023

The documentation is not available anymore as the PR was closed or merged.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Nice workaround!

@sgugger sgugger merged commit 9d1116e into main Feb 15, 2023
@sgugger sgugger deleted the load_module_replacement branch February 15, 2023 20:57
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.

load_module will be removed in Python 3.12
3 participants