paper-with-me

홈 › Papers

ANEForge: Python for direct computation on the Apple Neural Engine

2026-06-12 · Spencer H. Bryngelson arxiv

ANEForge is a Python package that programs the Apple Neural Engine (ANE), the fixed-function neural accelerator on every recent Apple device, directly and without CoreML. In production the engine is reachable only through CoreML, which treats it as a scheduling option: no configuration requires the ANE, and a model can silently run on the CPU or GPU instead. ANEForge compiles a lazy tensor graph, built from 58 fused operators and 19 native bridge operators, into a single ANE program. The program is dispatched through the same ANE daemon and kernel-driver stack as Apple's internal framework. Beyond inference, the package reaches the engine's native fused attention, streams int8, int4, and sparse weights, keeps decoder and optimizer state resident across steps, and runs the forward pass, backward pass, and optimizer update of training on the engine. A small fused program completes a call in about 90us, near the engine's 70us per-program dispatch floor, and a pretrained ResNet-18 forward runs end-to-end in 0.33ms. ResNet-18, a sentence encoder, and a Vision Transformer run end-to-end against framework references, and a Stable Diffusion U-Net validates its forward pass. ANEForge targets Apple Silicon under macOS 14 and later. Each release is verified against a recorded macOS and ANE-compiler version.

📄 PDF Abstract BibTeX arXiv:2606.17090

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Reasoning as Data: Representation-Computation Unity and Its Implementation in a Domain-Algebraic Inference Engine

2026-04-13 · Chao Li, Yuru Wang arxiv

Every existing knowledge system separates storage from computation. We show this separation is unnecessary and eliminate it. In a standard triple is_a(Apple, Company), domain context lives in the query or the programmer'…

Fine-tuning LLaMA 2 interference: a comparative study of language implementations for optimal efficiency

2025-01-30 · Sazzad Hossain, Touhidul Alam Seyam, Avijit Chowdhury, Munis Xamidov 외

This paper presents a comparative study aimed at optimizing Llama2 inference, a critical aspect of machine learning and natural language processing (NLP). We evaluate various programming languages and frameworks, includi…

BenchmarkingLanguage ModelingLanguage ModellingLarge Language Model

Mojo: A Promising Tool for Scalable Financial AI Efficiency

2026-06-14 · Henry Han arxiv

For thirty years, quantitative finance has paid a costly two-language tax: models researched in Python are rewritten in C++ for production, often introducing numerical discrepancies. GPU-accelerated deep learning exacerb…

Orion: Characterizing and Programming Apple's Neural Engine for LLM Training and Inference

2026-03-06 · Ramchand Kumaresan arxiv

Over two billion Apple devices ship with a Neural Processing Unit (NPU) - the Apple Neural Engine (ANE) - yet this accelerator remains largely unused for large language model workloads. CoreML, Apple's public ML framewor…

Efficient Mixture-of-Experts LLM Inference with Apple Silicon NPUs

2026-04-20 · Afsara Benazir, Felix Xiaozhu Lin arxiv

Apple Neural Engine (ANE) is a dedicated neural processing unit (NPU) present in every Apple Silicon chip. Mixture-of-Experts (MoE) LLMs improve inference efficiency via sparse activation but are challenging for NPUs in …