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

Avoid jnp import in utils/generic.py #30322

Merged
merged 1 commit into from
Apr 18, 2024
Merged

Avoid jnp import in utils/generic.py #30322

merged 1 commit into from
Apr 18, 2024

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Apr 18, 2024

What does this PR do?

Fix #30226 to avoid jax being imported when it is unnecessary

@HuggingFaceDocBuilderDev

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.

@ydshieh ydshieh requested a review from amyeroberts April 18, 2024 15:24
Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Beautiful ❤️ Thanks for handling this so quickly!

@ydshieh
Copy link
Collaborator Author

ydshieh commented Apr 18, 2024

I take it as a ✅ and merge :-)

@ydshieh ydshieh merged commit 01ae3b8 into main Apr 18, 2024
21 checks passed
@ydshieh ydshieh deleted the avoid_import_jnp branch April 18, 2024 17:46
@amyeroberts
Copy link
Collaborator

@ydshieh Yep, sorry, it was meant to be an approve!

ydshieh added a commit that referenced this pull request Apr 23, 2024
fix

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
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.

import transformers accidentally initializing both torch and jax/xla at startup time
3 participants