Skip to content

Pin maximum TF version#18818

Merged
LysandreJik merged 1 commit into
huggingface:mainfrom
gante:tf_guard
Aug 31, 2022
Merged

Pin maximum TF version#18818
LysandreJik merged 1 commit into
huggingface:mainfrom
gante:tf_guard

Conversation

@gante

@gante gante commented Aug 30, 2022

Copy link
Copy Markdown
Contributor

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 LysandreJik and ydshieh August 30, 2022 15:16
@HuggingFaceDocBuilderDev

HuggingFaceDocBuilderDev commented Aug 30, 2022

Copy link
Copy Markdown

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

@ydshieh ydshieh left a comment

Copy link
Copy Markdown
Collaborator

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.

@LysandreJik LysandreJik left a comment

Copy link
Copy Markdown
Member

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

gante commented Aug 30, 2022

Copy link
Copy Markdown
Contributor Author

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

@ydshieh

ydshieh commented Aug 30, 2022

Copy link
Copy Markdown
Collaborator

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

@LysandreJik

Copy link
Copy Markdown
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