ANEForge: Python for direct computation on the Apple Neural Engine
Paper • 2606.17090 • Published
chip string | model_identifier string | hardware_hash string | p_cores int64 | e_cores int64 | gpu_cores int64 | ram_gb int64 | macos_version string | macos_build string | aneforge_version string | power string | contributor string | peak_fp16_gemm_tflops float64 | bandwidth_gbps float64 | ridge_flop_per_byte float64 | peak_perf_per_w_gflops float64 | decode_tok_s float64 | matmul_inf_cliff string | slice_x16_cliff string | reduce_exact_sum string | timestamp_utc string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Apple M1 | MacBookPro17,1 | dcf5b8a7dd09 | 4 | 4 | 8 | 16 | 26.5.2 | 25F84 | 0.2.1.dev42 | ac | diegobauavi | 2.696556 | 0.856427 | 3,148.610018 | 441.949251 | null | ~32759 | clamp @ 4094 | <= 2048 | 2026-08-01T20:23:15Z |
Apple M1 Max | MacBookPro18,2 | 8dc9588b5db6 | 8 | 2 | 32 | 32 | 26.5.1 | 25F80 | 0.2.0 | ac (high-power) | sbryngelson | 4.561582 | 6.918306 | 659.349605 | 918.006126 | null | ~32759 | clamp @ 4094 | <= 2048 | 2026-08-01T23:53:56Z |
Apple M2 Pro | Mac14,12 | 723396ad9091 | 6 | 4 | 16 | 32 | 26.5.2 | 25F84 | 0.2.1.dev33 | ac | axiom-of-choice | 3.263485 | 0.958668 | 3,404.185542 | 1,378.790532 | null | ~32759 | clamp @ 4094 | <= 2048 | 2026-08-01T19:52:48Z |
Apple M5 Pro | Mac17,8 | c38210cfc8ea | 6 | 12 | 20 | 48 | 26.5.1 | 25F80 | 0.1.4.dev32+gb8dc90fe6.d20260624 | ac (high-power) | sbryngelson | 10.041569 | 23.995035 | 418.485288 | 918.464287 | 116.680439 | ~32759 | exact (no clamp) | <= 2048 | 2026-08-01T16:39:18Z |
Cross-Apple-Silicon performance and fp16-correctness measurements for the Apple Neural Engine (ANE), collected with ANEForge. Each row is one machine (grouped by hardware hash; identical silicon in different chassis stays distinct by model identifier).
These are community-contributed submissions mirrored from the public
bench/results/rooflines/
in the repo. The full per-size sweeps live in raw/; rooflines.csv is the flattened
headline table; ROOFLINES.md is the human-readable version.
from datasets import load_dataset
ds = load_dataset("aneforge/ane-rooflines") # the flattened headline table
| column | meaning |
|---|---|
chip, model_identifier, hardware_hash |
machine identity |
p_cores, e_cores, gpu_cores, ram_gb |
CPU perf/efficiency cores, GPU cores, unified memory |
macos_version, macos_build, aneforge_version |
software the run was recorded under |
power |
ac, ac (high-power), or battery at run time |
contributor |
GitHub handle who submitted the run |
peak_fp16_gemm_tflops |
headline compute peak (measured on every machine) |
bandwidth_gbps, ridge_flop_per_byte |
streaming bandwidth and the ridge point |
peak_perf_per_w_gflops |
peak GFLOP/s per watt |
decode_tok_s |
single-stream LLM decode throughput |
matmul_inf_cliff, slice_x16_cliff, reduce_exact_sum |
fp16 correctness cliffs (magnitudes where the engine silently returns a wrong answer) |
timestamp_utc |
when the run was recorded |
peak_fp16_gemm_tflops is the most robust cross-chip number. Bandwidth/ridge come
from a streaming sweep and are more dispatch-overhead-sensitive on smaller/older parts,
so treat them as indicative.decode_tok_s currently reports only on A16+ (e.g. M5). The decode benchmark's
32000-vocab head exceeded the 16384 max matmul dimension on the A13-A15 families; a
tiled head fixes this and the older machines re-run to populate it. Blank means the run
predates the tiled head, not that the chip cannot decode.matmul ~ fp16_max/2 (~32752); slice clamps |value|>4094 on
pre-A16 parts and is exact on A16+; reduce is bit-exact for integer sums up to 2048.Run the suite on any Apple Silicon Mac and open a PR:
PYTHONPATH=. python3 bench/roofline_suite.py --contributor <your-gh-handle>
See the roofline drive. More chip generations sharpen the per-family map.
Bryngelson, S. H. ANEForge: Python for direct computation on the Apple Neural Engine. arXiv:2606.17090 (2026).