ANEMLL

Run LLMs on the Apple Neural Engine.
Open source Library and Pipeline from HuggingFace to on-device inference.

(pronounced like "animal")

Anemll v0.3.5 Beta

The flagship library for porting Large Language Models to the Apple Neural Engine (ANE). Convert models directly from HuggingFace to CoreML, optimized for ANE tensor processing. Includes Swift and Python inference, iOS/macOS/visionOS sample apps, and a full conversion pipeline — all targeting low-power, on-device, fully private AI.

Gemma 3 (270M–4B) LLaMA 3.1/3.2 (1B–8B) Qwen 3 (0.6B–1.7B) Qwen 2.5 DeepSeek R1 (distill) DeepHermes (distill)
1,568 stars
1,089 views
242 clones
ANE-First

Optimized for Apple Neural Engine tensor processing. Specialized model splitting for iOS (1GB) and macOS (2GB) constraints.

HF → CoreML

Single-shot conversion from HuggingFace weights to CoreML. Auto-download, FP16, LUT quantization, monolithic and chunked modes.

Swift + Python

Reference inference in both Swift CLI and Python. IOSurface-backed buffers, serial prediction, ring buffer patterns for ANE stability.

ANEMLL Chat

Redesigned iOS/macOS/visionOS app with voice input, AirDrop sharing, Markdown rendering, and thinking mode. On TestFlight now.

anemll-forge M6 Research

Research runtime and quantization pipeline for large dense LLMs on Apple Silicon (M5/M6). Combines 3-bit and ternary-to-VQ paired-codebook LUT quantization, Core AI + Swift inference, concurrent ANE + GPU pipelining, DFlash2 tree speculative decoding, and two-Mac Thunderbolt 4 RDMA tensor parallelism (TP2).

Bonsai 2.5 27B (64K / 96K) Qwen3.8-27B (V8 96K) Qwen3.8-27B (TP2-C1 RDMA) DFlash2 Drafter 3-bit & Ternary VQ
73 stars
5 papers
M5 / M6
Paired-Codebook VQ

3-bit MLP and ternary-to-VQ quantization with Hadamard rotations, activation-weighted LoftQ, GPTQ, and KL QAT — fitting 27B models in 6.37–9.74 GiB.

Hybrid ANE + GPU

Runs one 27B model concurrently across the Neural Engine and GPU over unified memory with FP8 P·V and on-chip Q·K scratchpads.

Tree Speculation

Dynamic 7-node DFlash2 verification trees inside a fixed 8-row ANE+GPU verify budget for +8.5% to +10.2% sampled throughput.

Two-Mac TB4 RDMA

TP2 tensor parallelism over a single Thunderbolt 4 cable (~20 μs sync) delivering 2.0–2.3× prefill and up to 117.6 tok/s decode.

Companion Tool

anemll-profile

ANE CostModel profiler for CoreML models. Analyze the compute plan without Xcode — see which ops land on ANE vs CPU vs GPU, find bottlenecks, and verify hardware compatibility. Per-op runtime breakdown, GFLOP/s, bandwidth, and CPU/GPU fallback reasons. Ideal for AI agents and automated pipelines — CLI-first, no GUI required.

$ brew install anemll/tap/anemll-profile click to copy
$ brew upgrade anemll/tap/anemll-profile click to copy
27 Objective-C
ANE Hardware

anemll-bench

Apple Neural Engine bandwidth and performance benchmarks. Measure real ANE vs GPU vs CPU throughput across Apple Silicon devices — understand what the hardware can actually deliver.

49 62 Python

Latest Papers

View All 6 Papers →
Dec 3, 2026 · Latest

Ternary-to-VQ: Running Bonsai 2.5 27B on the Apple Neural Engine (M6)

Repacks ternary Bonsai 2.5 27B into 16-entry paired-codebook VQ (6.37 GiB) — reaching 203.4 tok/s cold prefill and 30.2 tok/s decode at 64K on a single 32 GB M6 Mac mini.

Nov 28, 2026

Two-Mac TP2 Inference on M6 via Thunderbolt 4 RDMA

Splits Qwen3.8-27B across two M6 Mac minis (~20 μs RDMA sync) with GPU+ANE pipelining — 2.0–2.3× faster prefill and 77–82 tok/s decode (117.6 peak).

Nov 23, 2026

Tree Speculative Decoding on a Split ANE + GPU Target

Dynamic 7-node DFlash2 verification tree inside an 8-row ANE+GPU verify budget for Qwen3.8-27B — +8.5% to +10.2% sampled tok/s over chain8.

TestFlight Apps

ANEMLL Chat

iOS · macOS · visionOS

On-device LLM chat powered by Apple Neural Engine. Voice input, AirDrop model sharing, Markdown rendering, thinking mode. Runs models locally with full privacy. Full source included in the Anemll project.

Join TestFlight
ANEMLL Claw

ANEMLL Claw

iOS · macOS · tvOS

AI-powered coding assistant for iOS. Intelligent codebase navigation, code generation, and development tools — all on your iPhone.

Flash-MoE Ecosystem

Run massive Mixture-of-Experts models on Apple devices — Mac, iPhone, and more. A family of projects that make the impossible possible.

The core Flash-MoE research repo — testing different MoE algorithms, memory management strategies, and expert routing on Apple Silicon.

195 985 84

Flash-MoE sidecar slot-bank runtime for large GGUF MoE models on Apple Silicon — llama.cpp fork.

39 1,303 727

Flash-MoE iOS — first 400B model running on iPhone. Based on @Alexintosh's work. Adds macOS compat, iOS memory entitlements, fanout I/O, and pread chunking.

45 155 39 See demo

Auto-research tuned MLX fork optimized for Flash-MoE experiments — fast MoE inference and algorithm prototyping on Apple's ML stack.

28 464 101

More Projects

Experiments with MLX and RDMA — pushing the boundaries of distributed ML on Apple hardware.

68 115

AI-powered iOS coding assistant — intelligent codebase navigation and development tools for mobile.

28

Visual development agent for macOS — fast UI iterations via iPhone Mirroring, screen capture, and automated interaction loops.

12

Thunderbolt block floating point experiments — high-bandwidth ML interconnects.

5

Get Involved