You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Anemll
Anemll
ANEMLL (pronounced like "animal")
Artificial Neural Engine Machine Learning Library, Open Source Project
Model-neutral Pi extension for live decode TPS, TTFT, and prompt-rate estimates
Live decode TPS and TTFT for Pi
This guide adds a model-neutral throughput indicator to
Pi. It was validated against
@earendil-works/pi-coding-agent 0.85.1.
The extension works with local and hosted models because it observes Pi's
standard assistant-stream events. It does not read vLLM logs or metrics and
does not depend on a particular model name.
The complete 2048 -> 8192 projection becomes about 2.1–2.5x faster when split into 2/4/8 output-channel branches on this M5. TP2 is a strong default for this tested shape; more splits do not consistently improve it. These are sequential branches in one ANE graph, not distributed tensor parallelism.
All measurements below include the full output: one native evaluation of all branches and concatenation. Compile/load time and external application overhead are excluded. This is an expansion projection, not a full gated FFN (no gate, activation, or down projection).
ANE KernelDMA 1 MiB prefetch-notch profiler (M1 Max / M3 Ultra / M4 / M5). eval_us, not wall clock. No ANEC 1MiB DMA-split flag.
KernelDMA 1 MiB prefetch notch — portable profile
Post: Getting 50 GB/s Back Out of the ANE
(Eileen Yoon, 2026-08-10). This repo’s Bonsai 27B export is not on the
notch. Use this note plus the profiler to check other chips (M1 Max,
M3 Ultra, M4, M5, …) and to confirm ANEC has no 1 MiB KernelDMA-split
flag.
ANE INT8 W8A8 Benchmark: ~1.88x FP16 Throughput on Apple Silicon
ANE INT8 W8A8 Benchmark: ~1.7-1.9x FP16 Throughput on Apple Silicon
Demonstrates that Apple Neural Engine (ANE) achieves significantly higher throughput with INT8 W8A8 quantization vs FP16, consistent with native INT8 datapath support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let response = try await session.respond(to: "What is Apple Neural Engine and how to use it?")
let responseText = response.content // Replace 'value' with the actual property name from LanguageModelSession.Response<String> that holds the string payload.