[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-84114":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":17,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":10,"trendingCount":16,"starSnapshotCount":16,"syncStatus":27,"lastSyncTime":28,"discoverSource":29},84114,"coreai-models","apple\u002Fcoreai-models","apple","Model export recipes, Python primitives, and Swift runtime utilities for on-device AI","",null,"Python",694,44,12,6,0,308,924,98.14,"BSD 3-Clause \"New\" or \"Revised\" License",false,"main",[],"2026-06-10 19:44:39","2026-06-10 20:10:28","# Core AI Models\n\nModel export recipes, Python primitives, and Swift runtime utilities for building on-device AI with [Core AI](https:\u002F\u002Fdeveloper.apple.com\u002Fdocumentation\u002Fcoreai).\n\nThe main components include:\n- **Model export** — Recipes to export popular open source models from Hugging Face and other sources to Core AI format.\n- **Reusable primitives** — Python building blocks for authoring custom Core AI models in PyTorch.\n- **Runtime utilities** — Swift package built on top of Core AI framework to run models on macOS and iOS.\n- **Skills** — Plugins to help coding agents leverage Core AI effectively.\n\n| Directory | What's inside                                                                                |\n| --------- | -------------------------------------------------------------------------------------------- |\n| `models\u002F` | Model catalog with README and export recipes.                                                |\n| `python\u002F` | Python primitives for authoring and utilities for exporting models. |\n| `swift\u002F`  | Swift package (`coreai-models`): runtime utilities to integrate Core AI models in your app.  |\n| `skills\u002F` | Pluggable skills that enable coding agents to leverage Core AI more effectively.             |\n\n## Requirements\n\nIf you haven't installed `uv`, install it by\n\n```bash\nbrew install uv\n```\nor\n```bash\ncurl -LsSf https:\u002F\u002Fastral.sh\u002Fuv\u002Finstall.sh | sh\n```\n\nOnce installed successfully, refer to the README.md for each model or family of models, in `models` folder for their exporting recipe.\n\n## Requirements (running and app integration)\n\n- **macOS and iOS 27.0+**\n\n- **Xcode 27.0+**\n\nCore AI models are exported as standalone `.aimodel` files for integration into apps via the Core AI framework.\n\nSome 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 `.aimodel` files alongside any required resources. The Swift package in this repo provides runtime utilities for integrating these into an app.\n\nCommand 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.\n\n## Explore supported models\n\nFind supported models by\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002Fapple\u002Fcoreai-models.git && cd coreai-models\nuv run coreai.model.registry --list-models\n```\n\nRun `uv run coreai.model.registry --help` for details.\n\n## Agent Skills\n\nThis repo includes a plugin with skills to enable coding agents to use Core AI like an expert.\n\n### Available skills\n\n| Skill | Description |\n| --- | --- |\n| `working‑with‑coreai` | End-to-end workflow for deploying PyTorch models on Apple silicon, covering export with `coreai-torch` and running with the Core AI runtime. |\n| `model‑authoring` | 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. |\n| `model‑compression‑exploration` | Systematically explore weight compression configurations (quantization and palettization) for a PyTorch model using `coreai-opt`. |\n\n### Install\n\nInstallation differs depending on your coding agent of choice.\n\n#### Claude Code\n\nRegister the marketplace:\n\n```\n\u002Fplugin marketplace add git@github.com:apple\u002Fcoreai-models.git\n```\n\nAlternatively, register the marketplace from a local git checkout:\n\n```\n\u002Fplugin marketplace add \u002Fpath\u002Fto\u002Fcoreai-models\n```\n\nInstall the plugin:\n\n```\n\u002Fplugin install coreai-skills@coreai-models\n```\n\n#### Codex CLI\n\nRegister the marketplace:\n\n```\ncodex plugin marketplace add https:\u002F\u002Fgithub.com\u002Fapple\u002Fcoreai-models\n```\n\nAlternatively, register the marketplace from a local git checkout:\n\n```\ncodex plugin marketplace add \u002Fpath\u002Fto\u002Fcoreai-models\n```\n\nInstall the plugin:\n\n```\ncodex plugin add coreai-skills@coreai-models\n```\n\n#### Gemini CLI\n\nInstall the extension from a local directory:\n\n```\ngemini extensions install \u002Fpath\u002Fto\u002Fcoreai-models\u002Fskills\n```\n\nOnce installed, the skills activate automatically based on your task context,\nor you can invoke them explicitly.\n\n## Contributing\n\n### We are not accepting code contributions at this time\n\nCore AI Models is focused on maintaining a curated, well-tested gallery of\nmodels and a reliable Swift package. We are not accepting pull requests at launch while we learn how the community uses this project.\n\nIf you open a pull request, it will be closed. This is not a reflection of\nthe quality of your contribution but it is a deliberate scope decision for this release.\n\n### What we do welcome\n\nWe actively want your feedback! GitHub Issues are open for:\n\n- **Bug reports** — if something in the Python scripts or Swift utilities does\n  not work as expected\n- **Model requests** — if you have ideas for models you would like to see, or\n  improvements to the workflow or Swift utilities\n\nUse the [issue templates](..\u002F..\u002Fissues\u002Fnew\u002Fchoose) to get started.\n\n## Support\n\n- [GitHub Issues](..\u002F..\u002Fissues) — Feedback, bug reports, and feature requests\n\n## License\n\nThis project is licensed under the [BSD 3-Clause License](LICENSE).\n",2,"2026-06-11 04:12:18","CREATED_QUERY"]