-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Accelerate tensorflow on Mac #1154
Comments
As of DonkeyCar 5.0, we are on Python 3.9 and Tensorflow 2.9. Tensorflow 2.9 dictates that we install In both cases we should install the corresponding tensorflow-metal version to enable the use of Apple Silicon. |
I believe we only need to change the following line in |
We should install tensorflow-macos and tensorflow-metal on both Intel and Apple Silicon. I submitted a pull request with the change to setup.py. I understand if you don't need to specify tensorflow-macos but make the change to the docs for both Mac architectures. |
We now install tensorflow-mac-os=2.15.*. @DocGarbanzo is in the process of releasing Donkey 5.2, so perhaps this could get into that release;
|
The versions of tensorflow are compiled for all platforms including macOS ARM and macOS Intel. So there is no need for the unique specifier tensorflow-macos though that continues to reference the ARM versions of tensorflow. I have tested both the ARM and INTEL versions of Mac platforms and neither one works properly with tensorflow-metal. If you look at the pypi.org page, you will notice that version tensorflow-metal 1.1.0 is specified for tensorflow 2.14. When I run a training scripts the errors values explodes. I did find a comment on the internet that there is a bug in tensorflow-metal . I am watching tensorflow-metal to see a new version is released that will correct the issue. Note that tensorflow 2.16 installs Keras 3.0 which may requires some changes to Keras training. I welcome your comments. Maybe I have missed something. |
The Mac install should include tensorflow-metal to leverage the builtin GPU capability and accelerate training.
The text was updated successfully, but these errors were encountered: