Apple M1 support for TensorFlow 2.5 pluggable device API
developer.apple.com
Apple M1 support for TensorFlow 2.5 pluggable device API
1–10 of 124 posts
Re: Apple M1 support for TensorFlow 2.5 pluggable device API
#2Re: Apple M1 support for TensorFlow 2.5 pluggable device API
#3Might also be related: Tensorflow Lite Core ML delegate enables running TFLite model on CoreML enabled iOS devices.
https://www.tensorflow.org/lite/performance/coreml_delegate
Would nice to see performance comparisons on M1 Mac/iPad for which way is more performance and efficient. (Admittedly TF vs TF-lite is a 100% apple to apple comparison, pun-intended).
Re: Apple M1 support for TensorFlow 2.5 pluggable device API
#4Very cool. I’m not an ML guy, so apologies if this is a dumb question: how good is performance compared to other hardware here?
Re: Apple M1 support for TensorFlow 2.5 pluggable device API
#5The raw compute power of M1's GPU seems to be 2.6 TFLOPS (single precision) vs 3.2 TFLOPS for Vega 20. This can give you an estimate of how fast it would be for training.
Just for reference Nvidia's flagship desktop GPU(3090)'s FP32 performance is 35.5 TFLOPS.
Re: Apple M1 support for TensorFlow 2.5 pluggable device API
#6Very cool. I’m not an ML guy, so apologies if this is a dumb question: how good is performance compared to other hardware here?
Not a lot of benchmarks, but I heard large models struggle on M1.
Re: Apple M1 support for TensorFlow 2.5 pluggable device API
#7Following the instructions: -----
python -m pip install tensorflow-macos
...
ERROR: Failed building wheel for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy which use PEP 517 and
cannot be installed directly
-----(base) dave@daves-air ~ % uname -a
Darwin daves-air.lan 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:31 PDT 2021; root:xnu-7195.121.3~9/RELEASE_ARM64_T8101 arm64Re: Apple M1 support for TensorFlow 2.5 pluggable device API
#8I have found the M1 air fine for web browsing but kind of hard to install software on. Following the instructions: ----- python -m pip install tensorflow-macos ... ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly ----- (base) dave@daves-air ~ % uname -a Darwin daves-air.lan 20.5.0 Darwin Kernel Version 20.5.0: Sat M…
Re: Apple M1 support for TensorFlow 2.5 pluggable device API
#9I also noticed that in my project I got a decent speedup immediately when executing my model, but I have not run any benchmarks.
But, where do you go to file bugs? Ask questions? etc. I am not a big Mac developer, so is there something I don't know?
Re: Apple M1 support for TensorFlow 2.5 pluggable device API
#10I have found the M1 air fine for web browsing but kind of hard to install software on. Following the instructions: ----- python -m pip install tensorflow-macos ... ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy which use PEP 517 and cannot be installed directly ----- (base) dave@daves-air ~ % uname -a Darwin daves-air.lan 20.5.0 Darwin Kernel Version 20.5.0: Sat M…
$ pip install -U tensorflow-macos --no-deps
That seemed to work for me at least.