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

Move datasets and transformers to under func #411

Merged
merged 1 commit into from
May 31, 2022
Merged

Move datasets and transformers to under func #411

merged 1 commit into from
May 31, 2022

Conversation

muellerzr
Copy link
Collaborator

Refactor test-specific imports for mocked_dataloaders under the function

What does this add?

This PR changes when imports are called for importing datasets and transformers.

Who is it for?

closes #403

Why is it needed?

Due to how imports are checked in python, currently the released Accelerate version on pypi technically requires datasets and transformers to be required. This PR remedy's this. I'd recommend a patch release afterwards. (So this wouldn't increase our minimum python from 3.6 yet)

@muellerzr muellerzr added the bug Something isn't working label May 27, 2022
@muellerzr muellerzr requested a review from sgugger May 27, 2022 18:08
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 27, 2022

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

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Thanks for fixing!

@muellerzr muellerzr merged commit 146ce3d into main May 31, 2022
@muellerzr muellerzr deleted the fix-imports branch May 31, 2022 12:47
@rfejgin
Copy link

rfejgin commented May 31, 2022

Thanks folks, for the library and the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mocked_dataloaders requires transformers and datasets
4 participants