-
Notifications
You must be signed in to change notification settings - Fork 709
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
M1 Apple machine support #5804
Comments
This feature request is already in progress and team is working on priority for this, but there are internal infrastructure reasons for why this has proceeded slowly. Rest assured, You can follow this TF forum thread for updates and we will update this thread once we have some updates. Thank you! |
Thank you for the response. @singhniraj08 Looking forward to being able to do fully local development on my new machine. |
+1 , thanks for the great work. The TF 2.13 now supports apple silicon natively (https://blog.tensorflow.org/2023/07/whats-new-in-tensorflow-213-and-keras-213.html). I am looking forward to the TFX support on apple silicon soon. |
There's been some PRs relevant to this and I've written up my experience trying to get tfx The relevant pull requests are:
EDIT: wrong link, add issue links |
In may 2024 still it doesn't look tfx is supported by Apple silicon processor. Is there any update on this? |
@tangm I followed the instructions on your blog post to install TFX 1.14.0, but I encountered an error. I left a comment on the post itself, but posting here in case you missed the notification, and in case others want to try as well. |
I was able to install TFX 1.14 on my Mac using @tangm's instructions as a starting point (thanks!). I had to do some things differently in order to make it work on my machine. This was done on an M1 Pro MacBook Pro, Sonoma 14.5, XCode 14.5, with Python 3.9 and 3.10. Create a virtual environment:
Install TensorFlow:
Pin Bazel version (this due to ml-metadata):
Install forked repos for M1. Install
Install
Install
Install
Avoid a known bug:
Test that the TFX installation works with the
You can see in the Activity Monitor that the M1 is being used, as well as these lines in the terminal:
The |
Great. It looks really good and I hope it can help others. @axeltidemann |
Currently, TFX hard codes the tensorflow version here https://github.com/tensorflow/tfx/blob/master/tfx/dependencies.py, which specifically uses
tensorflow
package. However,tensorflow
is not supported on M1 Apple silicon; users need to installtensorflow-macos
in order to runtensorflow
(does not change Python imports in scripts). Tensorflow has yet to support arm64 wheels for M1 Apple silicon (see this issue: tensorflow/tensorflow#57185). So at the meantime, it will be nice to offer certain platform-dependent flexibility that allows the M1 silicon users to usetensorflow-macos
as depedency.The text was updated successfully, but these errors were encountered: