-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
PyTorch >= 1.7.0 and TensorFlow >= 2.4.0 #19016
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation is not available anymore as the PR was closed or merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the housekeeping 🤗
That particular release broke weightnorm, and thus all audio models. |
Since Sept, HF Transformers doesn't support 1.6 and below. huggingface/transformers#19016
Since Sept, HF Transformers doesn't support 1.6 and below. huggingface/transformers#19016
* chore: Update `torch` version Since Sept, HF Transformers doesn't support 1.6 and below. huggingface/transformers#19016 * chore: Update to `pytest` v7 * chore: Move dev dependencies to group * chore: Support `transformers` v4.22.0 and above only * chore: Use py37 and above * chore: Add `ipython` for dev * style: Simplify isort config * chore: Bump `loguru` to v0.6.0 * chore: Update GitHub workflows * chore: Set `torch`, `tf`, `flax` as transient deps with HF transformers' extras * chore: Add `tensorflow-text` * chore: Update lock file * chore: Add `sentencepiece` extras * chore: Update lock file * style: Apply updated `isort` config * chore: Bump major version Breaking change since we're dropping py37 support here.
What does this PR do?
As discussed in #18817 we have decided that Transformers will support versions of PyTorch and TensorFlow for two years after their releases. As a result, Transformers can now assume a minimum version of 1.7.0 for PyTorch and 2.4.0 for TensorFlow. This PR enforces this in the setup and then simplifies a lot of code that was written to support older PyTorch versions.