Overview of ANE Training
mainANE Training is a research project that demonstrates training neural networks directly on Apple's Neural Engine (ANE) using reverse-engineered private APIs (_ANEClient and _ANECompiler). It bypasses CoreML's inference-only restriction to enable pure ANE compute for backpropagation.
Key Capabilities:
- Transformer training (forward + backward pass) on Apple Silicon.
- Support for MHA (Multi-Head Attention) and GQA (Grouped-Query Attention) models.
- INT8 W8A8 quantization for increased throughput.
- GPU↔ANE zero-copy pipeline via shared
IOSurface.
Important Limitations:
- It is a research proof-of-concept, not a production framework.
- Utilization is currently low (~5-9% of peak).
- Many element-wise operations fall back to the CPU.
- SDPA causal masking is handled via CPU decomposition because ANE hardware ignores
attn_maskin SDPA ops.