[{"data":1,"prerenderedAt":4},["ShallowReactive",2],{"readme:coreai-models":3},"\u003Ch1>Core AI Models\u003C\u002Fh1>\n\u003Cp>Model export recipes, Python primitives, and Swift runtime utilities for building on-device AI with \u003Ca href=\"https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fcoreai\" rel=\"nofollow ugc noopener\">Core AI\u003C\u002Fa>.\u003C\u002Fp>\n\u003Cp>The main components include:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Model export\u003C\u002Fstrong> — Recipes to export popular open source models from Hugging Face and other sources to Core AI format.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Reusable primitives\u003C\u002Fstrong> — Python building blocks for authoring custom Core AI models in PyTorch.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Runtime utilities\u003C\u002Fstrong> — Swift package built on top of Core AI framework to run models on macOS and iOS.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Skills\u003C\u002Fstrong> — Plugins to help coding agents leverage Core AI effectively.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Directory\u003C\u002Fth>\n\u003Cth>What's inside\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>\u003Ccode>models\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Model catalog with README and export recipes.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>python\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Python primitives for authoring and utilities for exporting models.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>swift\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Swift package (\u003Ccode>coreai-models\u003C\u002Fcode>): runtime utilities to integrate Core AI models in your app.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>skills\u002F\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Pluggable skills that enable coding agents to leverage Core AI more effectively.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch2>Requirements\u003C\u002Fh2>\n\u003Cp>If you haven't installed \u003Ccode>uv\u003C\u002Fcode>, install it by\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">brew install uv\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>or\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">curl -LsSf https:\u002F\u002Fastral.sh\u002Fuv\u002Finstall.sh | sh\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Once installed successfully, refer to the README.md for each model or family of models, in \u003Ccode>models\u003C\u002Fcode> folder for their exporting recipe.\u003C\u002Fp>\n\u003Ch2>Requirements (running and app integration)\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cp>\u003Cstrong>macOS and iOS 27.0+\u003C\u002Fstrong>\u003C\u002Fp>\n\u003C\u002Fli>\n\u003Cli>\u003Cp>\u003Cstrong>Xcode 27.0+\u003C\u002Fstrong>\u003C\u002Fp>\n\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Core AI models are exported as standalone \u003Ccode>.aimodel\u003C\u002Fcode> files for integration into apps via the Core AI framework.\u003C\u002Fp>\n\u003Cp>Some models require additional resources. Language models require a tokenizer, for instance, and diffusion models run multiple models in sequence as part of a single pipeline. For these cases, export recipes in this repo produce a resource folder containing one or more \u003Ccode>.aimodel\u003C\u002Fcode> files alongside any required resources. The Swift package in this repo provides runtime utilities for integrating these into an app.\u003C\u002Fp>\n\u003Cp>Command line interface (CLI) tools are also included for running exported models directly on a Mac (requires Xcode 27.0+). See each model's README for available tools and example invocations.\u003C\u002Fp>\n\u003Ch2>Explore supported models\u003C\u002Fh2>\n\u003Cp>Find supported models by\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-bash\">git clone https:\u002F\u002Fgithub.com\u002Fapple\u002Fcoreai-models.git &amp;&amp; cd coreai-models\nuv run coreai.model.registry --list-models\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Run \u003Ccode>uv run coreai.model.registry --help\u003C\u002Fcode> for details.\u003C\u002Fp>\n\u003Ch2>Agent Skills\u003C\u002Fh2>\n\u003Cp>This repo includes a plugin with skills to enable coding agents to use Core AI like an expert.\u003C\u002Fp>\n\u003Ch3>Available skills\u003C\u002Fh3>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Skill\u003C\u002Fth>\n\u003Cth>Description\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\u003Ctr>\n\u003Ctd>\u003Ccode>working‑with‑coreai\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>End-to-end workflow for deploying PyTorch models on Apple silicon, covering export with \u003Ccode>coreai-torch\u003C\u002Fcode> and running with the Core AI runtime.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>model‑authoring\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Empirical rules for authoring PyTorch models for on-device execution on Apple platforms, covering BC1S layout, op compatibility, KV cache patterns, precision rules, MoE, and common issues.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>\u003Ccode>model‑compression‑exploration\u003C\u002Fcode>\u003C\u002Ftd>\n\u003Ctd>Systematically explore weight compression configurations (quantization and palettization) for a PyTorch model using \u003Ccode>coreai-opt\u003C\u002Fcode>.\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\u003C\u002Ftable>\n\u003Ch3>Install\u003C\u002Fh3>\n\u003Cp>Installation differs depending on your coding agent of choice.\u003C\u002Fp>\n\u003Ch4>Claude Code\u003C\u002Fh4>\n\u003Cp>Register the marketplace:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u002Fplugin marketplace add git@github.com:apple\u002Fcoreai-models.git\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Alternatively, register the marketplace from a local git checkout:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u002Fplugin marketplace add \u002Fpath\u002Fto\u002Fcoreai-models\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Install the plugin:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>\u002Fplugin install coreai-skills@coreai-models\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch4>Codex CLI\u003C\u002Fh4>\n\u003Cp>Register the marketplace:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>codex plugin marketplace add https:\u002F\u002Fgithub.com\u002Fapple\u002Fcoreai-models\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Alternatively, register the marketplace from a local git checkout:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>codex plugin marketplace add \u002Fpath\u002Fto\u002Fcoreai-models\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Launch Codex in your workspace:\u003C\u002Fp>\n\u003Cpre>\u003Ccode>codex\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>I\u003C\u002Fp>\n",1784844294536]