Retrospectively Reverse-Engineering Apple's Neural Engine

eiln.github.io

113 points by zdw 4 hours ago


zozbot234 - 3 hours ago

How does this relate to the more recent work on the M4 ANE found at https://maderix.github.io/articles/ ? Does the M4 and later ANE expose any additional capabilities, or is it just a higher-performance iteration of the same thing?

As an aside, the introduction to this article seems to conflate the ANE with the Neural Accelerators (NAX) found in the M5+ (and A-series equivalents) GPUs. These are very different things, and Apple is still working on the ANE - the M6 and A20 will apparently feature doubled ANE blocks.

hn9zmdcaou - 2 hours ago

Ported a transformer to ANE and the whole job was pretending it was a CNN, 4D tensors with seq in the last axis and 1x1 convs instead of matmuls.

CraigJPerry - 3 hours ago

This isn't ai slop. It's fascinating and well written.

But I learned something really basic - i didn't know that the ANE (and the data pipeline around it) was designed for CNN rather than transformers. It's always been an open loop in my head, wondering why the ANE was less impactful than i understood it should be.

LoganDark - 4 hours ago

> what workloads it was designed for and accels at.

excels!

rima_667 - 3 hours ago

[flagged]

marbleotter115 - 2 hours ago

[dead]