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

Pin maximum TF version #18818

Merged
merged 1 commit into from
Aug 31, 2022
Merged

Pin maximum TF version #18818

merged 1 commit into from
Aug 31, 2022

Conversation

gante
Copy link
Member

@gante gante commented Aug 30, 2022

What does this PR do?

We now also depend on tensorflow-text, whose minor versions are typically released a few days after new tensorflow releases. From tests against the tensorflow release candidate, tensorflow-text-based functions fail when these two libraries do not have the same version.

This PR pins the maximum TF version so that our CI doesn't break with the upcoming tensorflow release. When the corresponding tensorflow-text library gets released we should be able to unpin it again.

@gante gante requested review from ydshieh and LysandreJik August 30, 2022 15:16
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 30, 2022

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

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

Thanks @gante for taking care of upcoming TF release and tests.
LGTM - we just need to remember to remove this once tensorflow-text is ready.

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.

Looks good to me, let's not forget to unpin! (Great minds think alike, @ydshieh!)

@gante
Copy link
Member Author

gante commented Aug 30, 2022

@ydshieh the CI fail seems unrelated 🤔 do you know potential causes?

@ydshieh
Copy link
Collaborator

ydshieh commented Aug 30, 2022

Unfortunately no. Let me find some time to take a look, but I think you are good to merge :-)

@LysandreJik
Copy link
Member

Yes I think that's an unrelated error linked to a new cache being made as the setup.py is updated. It's unrelated to the PR, but we need to have a look at what's going on.

Let's merge this PR!

Thanks for your contribution :)

@LysandreJik LysandreJik merged commit fea4636 into huggingface:main Aug 31, 2022
@gante gante deleted the tf_guard branch October 26, 2022 11:36
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.

4 participants