whatisgithub

What is coreai-models?

apple/coreai-models — explained in plain English

Analysis updated 2026-05-18

881SwiftAudience · developerLicense

In one sentence

Apple's official toolkit for exporting and running AI models directly on Mac and iPhone using the Core AI framework.

Mindmap

mindmap
  root((Core AI Models))
    What it does
      On-device AI models
      Model export recipes
      Swift runtime utilities
    Tech stack
      Swift
      Python
      PyTorch
      Xcode
    Components
      models directory
      python primitives
      swift package
      agent skills
    Requirements
      macOS or iOS 27+
      Xcode 27+
    Audience
      App developers
      ML engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Export an open source model from Hugging Face into a format Apple devices can run locally.

USE CASE 2

Build an iOS or macOS app that runs AI models on-device without a server.

USE CASE 3

Compress a PyTorch model so it runs efficiently on Apple Silicon.

USE CASE 4

Add Core AI skills to a coding agent like Claude Code or Codex for guided model work.

What is it built with?

SwiftPythonPyTorchXcode

How does it compare?

apple/coreai-modelsnickustinov/itsyhome-macostddworks/baguette
Stars881896962
LanguageSwiftSwiftSwift
Setup difficultyeasymoderate
Complexity2/53/5
Audiencedevelopergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

So what is it?

Core AI Models is a project from Apple that helps developers run artificial intelligence models directly on Apple devices, such as Macs and iPhones, rather than sending data to a server. It is built around Apple's Core AI framework, and it brings together several kinds of tools in one place. There are four main parts. The first is a set of export recipes that convert popular open source models, including ones shared on the Hugging Face website, into Apple's own model format. The second is a collection of Python building blocks for people who want to write their own models in PyTorch, a common framework for machine learning. The third is a Swift package, meaning code for Apple's own programming language, that helps developers actually run these models inside an app. The fourth is a set of skills, which are plugins that help AI coding assistants work with Core AI more effectively. To use the project, you need recent Apple software: macOS or iOS version 27 or later, and Xcode 27 or later, which is Apple's tool for building apps. Models are saved as standalone files with an .aimodel extension. Some models need extra pieces to work, for example a tokenizer for language models, so the export step can produce a folder with everything bundled together. Command line tools are also included so you can run a model straight from a Mac. The repository explains how to list the supported models and how to install the coding-agent skills for tools like Claude Code, Codex, and Gemini. Each skill covers a specific workflow, such as exporting a model, authoring a model for on-device use, or exploring ways to compress a model so it takes up less space. One thing to note is that Apple is not accepting code contributions at this stage. Any pull request will be closed, which the team describes as a deliberate scope choice for this release. They do welcome bug reports and model requests through GitHub Issues. The project is released under the BSD 3-Clause License.

Copy-paste prompts

Prompt 1
Explain the difference between running an AI model on-device versus in the cloud.
Prompt 2
Walk me through the steps to export a Hugging Face model to Core AI's .aimodel format.
Prompt 3
Help me install the coreai-skills plugin for Claude Code from this repository.
Prompt 4
What does model quantization and palettization mean, and how does coreai-opt help with it?

Frequently asked questions

What is coreai-models?

Apple's official toolkit for exporting and running AI models directly on Mac and iPhone using the Core AI framework.

What language is coreai-models written in?

Mainly Swift. The stack also includes Swift, Python, PyTorch.

Who is coreai-models for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.