#332332nd of 433 in ML frameworks and libraries
ml-ane-transformers
Reference PyTorch Transformer code optimized for the Apple Neural Engine
Watch puts ml-ane-transformers on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.ml-ane-transformers is on your watch list. Its new releases and problems show there.
- Stars
- 2.8k
- License
- custom license
- Last commit
- Sep 2026
- Last release
- Aug 2022
- Language
- Python
2,696 on 2 May 20262,750 on 28 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A Python package with a standalone reference Transformer implementation and ANE-optimized Hugging Face DistilBERT classes. The README walks through tracing the model with TorchScript and converting it to a Core ML mlprogram with coremltools. Apple reports up to 10x lower latency and 14x lower peak memory versus baseline on A14/M1 or newer; the tutorial case (seq length 128, batch 1) shows 2.84x.
Who it is for: Engineers deploying Transformer models to iPhone, iPad and Mac via Core ML
Strengths
- Equivalent DistilBERT that loads baseline Hugging Face weights via load_state_dict
- Tutorial covers the full path: trace, coremltools conversion, Xcode performance report
- Backed by a published Apple research article with latency and memory data
- Installs with pip install ane_transformers
Weaknesses
- Only DistilBERT is shown as a Hugging Face example
- Targets A14/M1 or newer; speed-up tests only warn on other devices
- Last release was 2022-08-09; README benchmarks use iOS 16.0
- License is not identified (NOASSERTION)
What it needs
- Needs PyTorch, transformers, coremltools, Xcode
- Models: DistilBERT, Core ML mlprogram, TorchScript
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #330 | morph-netTensorFlow library that learns smaller CNN layer widths under FLOP or size limits | 37 out of 100 |
| #331 | implicitPython library for recommender systems on implicit feedback data | 36 out of 100 |
| #333 | ampligraphTensorFlow 2 library for knowledge graph embeddings and link prediction | 36 out of 100 |
| #334 | openmldbSQL feature platform giving consistent ML features for training and inference | 36 out of 100 |
| #335 | optimum-quantoPyTorch quantization library for Hugging Face LLMs and diffusers models | 36 out of 100 |