-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Update Torch and Tensorflow versions in cuda requirements files. #21732
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
Conversation
Summary of ChangesHello @hertschuh, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on synchronizing and upgrading the versions of key deep learning framework dependencies, specifically Torch and TensorFlow, across various environment configurations. The primary goal is to ensure the project benefits from the latest features, performance improvements, and bug fixes provided by these updated library versions, thereby enhancing overall stability and compatibility. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request updates the versions of TensorFlow and PyTorch across various requirement files. The changes are mostly straightforward version bumps. I've identified one potential issue in requirements.txt
where the PyTorch dependency for macOS seems to have been accidentally removed. My review includes a suggestion to fix this.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #21732 +/- ##
==========================================
+ Coverage 77.98% 82.62% +4.64%
==========================================
Files 572 572
Lines 58499 58499
Branches 9143 9143
==========================================
+ Hits 45621 48336 +2715
+ Misses 10657 7838 -2819
- Partials 2221 2325 +104
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ddff6e5
to
3bbf56f
Compare
e0b1683
to
4a55e58
Compare
6a4b251
to
e257167
Compare
0904c7e
to
80abe02
Compare
80abe02
to
cf8949a
Compare
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.
Thanks, one comment
keras/src/export/onnx_test.py
Outdated
@pytest.mark.skipif( | ||
testing.tensorflow_uses_gpu(), reason="Leads to core dumps on CI" | ||
testing.jax_uses_gpu() | ||
or testing.tensorflow_uses_gpu |
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.
testing.tensorflow_uses_gpu
--> testing.tensorflow_uses_gpu()
?
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.
Oh, good catch. Fixed.
Replacement for keras-team#21704 Also: - Disabled an ONNX export test for Torch that was already disabled on GPU with both JAX and Tensorflow. - Moved install for `tf_keras` from `requirements.txt` to `action.yml` using the `--no-deps` option because `tf_keras` depends on `tensorflow`, which installs the non-CPU version of TensorFlow and causes issues with CPU tests.
cf8949a
to
778112f
Compare
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.
Thanks!
Replacement for #21704
Also:
tf_keras
fromrequirements.txt
toaction.yml
using the--no-deps
option becausetf_keras
depends ontensorflow
, which installs the non-CPU version of TensorFlow and causes issues with CPU tests.