paper-with-me

홈 › Papers

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 framework, imposes opaque abstractions that prevent direct ANE programming and do not support on-device training. We present Orion, to our knowledge the first open end-to-end system that combines direct ANE execution, a compiler pipeline, and stable multi-step training with checkpoint resume in a single native runtime, bypassing CoreML entirely via Apple's private _ANEClient and _ANECompiler APIs. Building on prior characterization work by maderix, we extend public knowledge of ANE constraints to a catalog of 20 restrictions on MIL IR programs, memory layout, compilation limits, and numerical behavior, including 14 previously undocumented constraints discovered during Orion development. Orion includes a compiler that lowers a graph IR through five optimization passes to ANE-native MIL and a runtime that manages IOSurface-backed zero-copy tensor I/O, program caching, and delta compilation for weight updates. Because the ANE bakes weights at compile time, naive training normally requires full recompilation per step (~4.2 s). We show that compiled programs can instead be updated by unloading, patching weight files, and reloading, bypassing ANECCompile() and reducing recompilation from 4,200 ms to 494 ms per step (8.5x), yielding a 3.8x training speedup. On an M4 Max, Orion achieves 170+ tokens/s for GPT-2 124M inference and demonstrates stable training of a 110M-parameter transformer on TinyStories for 1,000 steps in 22 minutes with zero NaN occurrences. We also present LoRA adapter-as-input, enabling hot-swap of adapters via IOSurface inputs without recompilation.

📄 PDF Abstract BibTeX arXiv:2603.06728

Code (0)

등록된 구현이 없습니다.

Similar 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 throug…

Copilot for Xcode: Exploring AI-Assisted Programming by Prompting Cloud-based Large Language Models

2023-07-08 · Chee Wei Tan, Shangxin Guo, Man Fai Wong, Ching Nam Hang

This paper presents an AI-assisted programming tool called Copilot for Xcode for program composition and design to support human software developers. By seamlessly integrating cloud-based Large Language Models (LLM) with…

Code GenerationPrompt Engineering

Orion-14B: Open-source Multilingual Large Language Models

2024-01-20 · Du Chen, Yi Huang, Xiaopu Li, Yongqiang Li 외

In this study, we introduce Orion-14B, a collection of multilingual large language models with 14 billion parameters. We utilize a data scheduling approach to train a foundational model on a diverse corpus of 2.5 trillio…

Scheduling

Llamion Technical Report

2026-05-25 · Kisu Yang, Yoonna Jang, Hyeonseok Moon, Hwanseok Jang 외 arxiv

We release Llamion, a family of 14B-parameter open-weight language models obtained by transforming Orion-14B into the standardized Llama-family architecture. The transformation is performed by Efficient Knowledge Preserv…

Knowledge Distillation

Orion-RAG: Path-Aligned Hybrid Retrieval for Graphless Data

2026-01-08 · Zhen Chen, Weihao Xie, Peilin Chen, Shiqi Wang 외 arxiv

Retrieval-Augmented Generation (RAG) has proven effective for knowledge synthesis, yet it encounters significant challenges in practical scenarios where data is inherently discrete and fragmented. In most environments, i…

Knowledge Graphs