M1 and AMD GPU support. I'm personally more interested in the latter as I haven't yet upgraded my MacBook Pro and I expect that my Vega 20 to be faster than M1 at ML training.<p>The 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.<p>Just for reference Nvidia's flagship desktop GPU(3090)'s FP32 performance is 35.5 TFLOPS.
I have found the M1 air fine for web browsing but kind of hard to install software on.<p>Following the instructions:
-----<p><pre><code> 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</code></pre>
-----<p>(base) dave@daves-air ~ % uname -a<p><pre><code> 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 arm64</code></pre>
I'm still trying to find a way to monitor the Neural Engine on my Macbook air M1, but the APIs are non-existent, there's barely anything in the docs and no answer from Apple. My models train fast, 3x faster than most i7 computers with GPU, which is excellent for a fanless ultraportable computer but I wish Apple would treat the NE as a 1st class citizen on these machines, with Mac SDK APIs and usage visualization in the Activity Monitor.
I was able to install this fairly easily (much more so then the crap they dumped out here - <a href="https://github.com/apple/tensorflow_macos" rel="nofollow">https://github.com/apple/tensorflow_macos</a>. Just take a look at the 200 github issues that were ignored for the most part...)<p>I also noticed that in my project I got a decent speedup immediately when executing my model, but I have not run any benchmarks.<p>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?
Anyone know if this shows up as an actual GPU device? The last tensorflow-macOS thing did not. If you list devices using that, you’ll see only one: CPU:0.<p>Does this give a GPU:0 device? You can check via:<p><pre><code> import tensorflow as tf2
from pprint import pprint as pp
tf = tf2.compat.v1
sess = tf.InteractiveSession()
pp(sess.list_devices())
</code></pre>
I’d check myself, but I’ve been so burnt by tensorflow 2 and M1 problems that I just don’t have the energy to figure out the inevitable compilation issues, and it sounds like at least one other person already has it running. Plus I’m on mobile.
<a href="https://github.com/tensorflow/tensorflow/releases/tag/v2.5.0" rel="nofollow">https://github.com/tensorflow/tensorflow/releases/tag/v2.5.0</a> (Linked from Apple's article)<p>Wow, that list of CVEs is 110 lines.
I have some notes on doing ML/python work on M1 Macs that may be helpful. <a href="https://twitter.com/troyharvey/status/1380586300911280128?s=21" rel="nofollow">https://twitter.com/troyharvey/status/1380586300911280128?s=...</a>
Installed these - which seemed to work bar a few messages about `numpy` not being installable - but trying to use `textgenrnn` ran into a whole bunch of Keras problems (for which the internet's answer is "use tensorflow.keras" expect `textgenrnn` is already doing that...)<p>I yearn for the day when someone makes a nice, simple, "install this and python ML works fine with your GPU" package.
This is pretty cool to have more generic GPU-based support.<p>Might also be related: Tensorflow Lite Core ML delegate enables running TFLite model on CoreML enabled iOS devices.<p><a href="https://www.tensorflow.org/lite/performance/coreml_delegate" rel="nofollow">https://www.tensorflow.org/lite/performance/coreml_delegate</a><p>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).