HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
hollance
neural-engine
AI & Machine Learning2020–2026
hollance / neural-engine

neural-engine

Everything we actually know about the Apple Neural Engine (ANE)

16Distinct people
16Mentions
0Explicit recommenders
2.6KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Everything we actually know about the Apple Neural Engine (ANE)

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year16 dated mentions

Observed mentions: 2020-04-16 12:23:37 UTC to 2026-06-30 09:25:14 UTC.

012342020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 4 mentions; 3 submissions, 1 comments20202021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments20232024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 4 mentions; 0 submissions, 4 comments2025-01-01 00:00:00 UTC to 2026-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2026-01-01 00:00:00 UTC to 2027-01-01 00:00:00 UTC (exclusive): 2 mentions; 0 submissions, 2 comments. Incomplete calendar period.2026*

* An incomplete calendar period is marked with an outlined bar. Its count is not directly comparable with a full period.

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC431
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC101
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC000
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC413
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC404
20252025-01-01 00:00:00 UTC2026-01-01 00:00:00 UTC101
2026 (partial)2026-01-01 00:00:00 UTC2027-01-01 00:00:00 UTC202

What Hacker News says

16 sources
It’s unfortunate that this announcement is still unspecific about what they improved in the Neural Engine. Since all we know about the Neural Engine comes from Apple papers or reverse engineering efforts (https://github.com/hollance/neural-engine), it’s plausible that they addressed some quirks to enable better transformer performance. They have written quite interesting papers on transformers on the Neural Engine: - https://machinelearning.apple.com/research/neural-engine-tra... - https://machinelearning.apple.com/research/vision-transforme... Things have definitely gotten better with MLX on the software side, though it still seems they could do more in that area (let’s see what the M5 Max brings). But even if they made big strides here, it won’t help previous generations, and the main thing limiting Apple Intelligence (in my opinion) wi
Read the rest
ll continue to be the 8 GB of unified memory they still insist on.
In Apple M5 chip
You can help with the reverse engineering of Apple Silicon done by a dozen people worldwide, that is how we find out the GPU and NPU instructions[1-4]. There is over 43 trillion float operations per second to unlock at 8 terabit per second 'unified' memory bandwidth and 270 gigabits per second networking (less on the smaller chips).... [1] https://github.com/AsahiLinux/gpu [2] https://github.com/dougallj/applegpu [3] https://github.com/antgroup-skyward/ANETools/tree/main/ANEDi... [4] https://github.com/hollance/neural-engine You can use a high level APIs like MLX, Metal or CoreML to compute other things on the GPU and NPU. Shadama [5] is an example programming language that translates (with Ometa) matrix calculations into WebGPU or WebGL APIs (I forget which). You can do exactly the same with the MLX, Metal or CoreML APIs and only pay ar
Read the rest
ound 3% overhead going through the translation stages. [5] https://github.com/yoshikiohshima/Shadama I estimate it will cost around $22K at my hourly rate to completely reverse engineer the latest A16 and M4 CPU (ARMV9), GPU and NPU instruction sets. I think I am halfway on the reverse engineering, the debugging part is the hardest problem. You would however not be able to sell software with it on the APP Store as Apple forbids undocumented API's or bare metal instructions.
In Ask HN: Resources for general purpose GPU development on Apple's M* chips?
> Then we'll see somewhat simpler, less general, and cheaper devices that do "AI" operations with as little excess hardware baggage as possible. Nice. Apple has already been doing this for a few years now. The NPU is totally different from the GPU or CPU on the die itself[1]. Nvidia is likely working on this as well, but I think a device that's a gaming/entertainment/crypto/AI bundle (i.e. sticking with the video card) is probably a better business move. [1] https://github.com/hollance/neural-engine/blob/master/docs/a...
In GPUs Go Brrr
Mobile TPUs/NPUs: Pixel 6+ phones have TPUs (in addition to CPUs and an iGPU/dGPU). Tensor Processing Unit > Products > Google Tensor https://en.wikipedia.org/wiki/Tensor_Processing_Unit TensorFlow lite; tflite: https://www.tensorflow.org/lite From https://github.com/hollance/neural-engine : > The Apple Neural Engine (or ANE) is a type of NPU, which stands for Neural Processing Unit. From https://github.com/basicmi/AI-Chip : > A list of ICs and IPs for AI, Machine Learning and Deep Learning
In Princeton ‘AI Snake Oil’ authors say GenAI hype has ‘spiraled out of control’
If Apple would wake up to what's happening with llama.cpp etc then I don't see such a market in paying for remote access to big models via API, though it's currently the only game in town. Currently a Macbook has a Neural Engine that is sitting idle 99% of the time and only suitable for running limited models (poorly documented, opaque rules about what ops can be accelerated, a black box compiler [1] and an apparent 3GB model size limit [2]) OTOH you can buy a Macbook with 64GB 'unified' memory and a Neural Engine today If you squint a bit and look into the near future it's not so hard to imagine a future Mx chip with a more capable Neural Engine and yet more RAM, and able to run the largest GPT3 class models locally. (Ideally with better developer tools so other compilers can target the NE) And then imagine it does that while leaving the
Read the rest
CPU+GPU mostly free to run apps/games ... the whole experience of using a computer could change radically in that case. I find it hard not to think this is coming within 5 years (although equally, I can imagine this is not on Apple's roadmap at all currently) [1] https://github.com/hollance/neural-engine [2] https://github.com/smpanaro/more-ane-transformers/blob/main/...
In Anthropic’s $5B, 4-year plan to take on OpenAI
My question too. This semi-answer on the page seems to contradict itself (source: https://github.com/hollance/neural-engine/blob/master/docs/p... ): "> Can I program the ANE directly? Unfortunately not. You can only use the Neural Engine through Core ML at the moment. There currently is no public framework for programming the ANE. There are several private, undocumented frameworks but obviously we cannot use them as Apple rejects apps that use private frameworks. (Perhaps in the future Apple will provide a public version of AppleNeuralEngine.framework.)" The last part links to this bunch of headers: https://github.com/nst/iOS-Runtime-Headers/tree/master/Priva... So might it be more accurate to say you can program it directly, but won't end up with something that can be distributed on the app store?
In What we know about the Apple Neural Engine
This is an insidious argument because there's a grain of truth in it. Photos/videos are heavily post-processed by Apples 'Neural engine' (https://github.com/hollance/neural-engine) running on the Bionic chips, but this is done at the time of recording. Zooming the video to play it to the jury would just be simple linear scaling, and could be done on any device capable of playing & scaling a video. For example, the zoom or crop functions in VLC. > have artificial intelligence in them that allow things to be viewed through three-dimensions and logarithms a dangerous mix of incoherent buzzwords that's nearly correct.
In “Apple’s iPad creates what it thinks is there, not what necessarily is there”
sycren·Nov 20, 2020Submission

Ask HN: Could Apple use their neural engine in the M1 to accelerate gaming?

The Apple Neural Engine (ANE) consists of a "16-core architecture capable of 11 trillion operations per second, the Neural Engine in M1 enables up to 15x faster machine learning performance. In fact, the entire M1 chip is designed to excel at machine learning, with ML accelerators in the CPU and a powerful GPU, so tasks like video analysis, voice recognition and image processing will have a level of performance never seen before on the Mac." - https://www.apple.com/uk/newsroom/2020/11/apple-unleashes-m1/ The ANE is powerful where it comes to dealing with matrices, which are also used within games dealing with physics like collision detection or even real-time ray-tracing. - https://github.com/hollance/neural-engine The unified memory also makes it easier for the ANE and GPU to work together, instead of the GPU graphics pipeline or CPU cr
Read the rest
eating bottlenecks. - https://developer.nvidia.com/gpugems/gpugems/part-v-performance-and-practicalities… Gaming has always been an area that macs have somewhat lacked in compared to High performance gaming rigs, Microsoft Windows, Microsoft DirectX, GPU choice, drivers and compatibility. Could Apple integrate the ANE into Metal to give ios/mac game developers their own version of DirectX offering an increased edge over their pc competition; providing increased complexity for games, superior graphics and frame rates utilising the CPU, ANE and GPU working together over the unified memory?
1 points · Open discussion

Showing the 15 most recent of 16 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.