Run LLMs on the Apple Neural Engine.
Open source Library and Pipeline from HuggingFace to on-device inference.
(pronounced like "animal")
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.
Optimized for Apple Neural Engine tensor processing. Specialized model splitting for iOS (1GB) and macOS (2GB) constraints.
Single-shot conversion from HuggingFace weights to CoreML. Auto-download, FP16, LUT quantization, monolithic and chunked modes.
Reference inference in both Swift CLI and Python. IOSurface-backed buffers, serial prediction, ring buffer patterns for ANE stability.
Redesigned iOS/macOS/visionOS app with voice input, AirDrop sharing, Markdown rendering, and thinking mode. On TestFlight now.
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).
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.
Runs one 27B model concurrently across the Neural Engine and GPU over unified memory with FP8 P·V and on-chip Q·K scratchpads.
Dynamic 7-node DFlash2 verification trees inside a fixed 8-row ANE+GPU verify budget for +8.5% to +10.2% sampled throughput.
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.
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.
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.
Research & Engineering Notes
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.
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).
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.
On the App Store (Beta)
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 TestFlightAI-powered coding assistant for iOS. Intelligent codebase navigation, code generation, and development tools — all on your iPhone.
Trending Now
Research runtime and quantization pipeline for large dense LLMs on Apple Silicon (M5/M6). Combines 3-bit & ternary-to-VQ paired-codebook quantization, Core AI + Swift execution, hybrid ANE + GPU pipelining, DFlash2 tree speculative decoding, and two-Mac Thunderbolt 4 RDMA tensor parallelism (TP2).
Flash-MoE sidecar slot-bank runtime for large GGUF MoE models on Apple Silicon. A llama.cpp fork enabling massive Mixture-of-Experts models to run efficiently on devices with limited memory — experts stream from SSD while dense weights stay resident.
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.
Flash-MoE sidecar slot-bank runtime for large GGUF MoE models on Apple Silicon — llama.cpp fork.
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.
Auto-research tuned MLX fork optimized for Flash-MoE experiments — fast MoE inference and algorithm prototyping on Apple's ML stack.
Open Source
Experiments with MLX and RDMA — pushing the boundaries of distributed ML on Apple hardware.
AI-powered iOS coding assistant — intelligent codebase navigation and development tools for mobile.
Visual development agent for macOS — fast UI iterations via iPhone Mirroring, screen capture, and automated interaction loops.
Thunderbolt block floating point experiments — high-bandwidth ML interconnects.