coreai-models
2,307
Stars
260
Forks
26
Watchers
113
Open Issues
BSD-3-Clause
许可证
Swift
语言
2026-06-08
创建时间
2026-11-11
最近更新
项目能做什么
面向端侧 AI 的模型导出方案、Python 原语及 Swift 运行时实用工具集。
来源:AI 基于仓库事实生成
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
# Core AI Models Model export recipes, Python primitives, and Swift runtime utilities for building on-device AI with [Core AI](https://developer.apple.com/documentation/coreai). The main components include: - **Model export** — Recipes to export popular open source models from Hugging Face and other sources to Core AI format. - **Reusable primitives** — Python building blocks for authoring custom Core AI models in PyTorch. - **Runtime utilities** — Swift package built on top of Core AI framework to run models on macOS and iOS. - **Skills** — Plugins to help coding agents leverage Core AI effectively. | Directory | What's inside | | --------- | -------------------------------------------------------------------------------------------- | | `models/` | Model catalog with README and export recipes. | | `python/` | Python primitives for authoring and utilities for exporting models. | | `swift/` | Swift package (`coreai-models`): runtime utilities to integrate Core AI models in your app. | | `skills/` | Pluggable skills that enable coding agents to leverage Core AI more effectively. | ## Requirements If you haven't installed `uv`, install it by ```bash brew install uv ``` or ```bash curl -LsSf https://astral.sh/uv/install.sh | sh ``` Once installed successfully, refer to the README.md for each model or family of models, in `models` folder for their exporting recipe. ## Requirements (running and app integration) - **macOS and iOS 27.0+** - **Xcode 27.0+** Core AI models are exported as standalone `.aimodel` files for integration into apps via the Core AI framework. 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 `.aimodel` files alongside any required resources. The Swift package in this repo provides runtime utilities for integrating these into an app. 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. ## Explore supported models Find supported models by ```bash git clone https://github.com/apple/coreai-models.git && cd coreai-models uv run coreai.model.registry --list-models ``` Run `uv run coreai.model.registry --help` for details. ## Agent Skills This repo includes a plugin with skills to enable coding agents to use Core AI like an expert. ### Available skills | Skill | Description | | --- | --- | | `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. | | `model‑authoring` | Empirical rules for authoring PyTorch models for o阅读完整原文
商业机会分析 AI 生成
已适配Core AI的商业化开源模型资产市场 (Pre-converted Model Hub)
| 产品构想 | 针对iOS/macOS开发者痛点(本地转换耗时、易报错、需特定高配Mac),提供经严格量化(PAL/Quant)且测试通过的.aimodel及配套Tokenizer资源包下载与订阅更新。 |
| 核心功能 | 一键集成代码示例、已调优的.aimodel资源托管、内存与速度基准测试报告、持续同步最新开源模型(如Llama系列、Whisper等)。 |
| 目标用户 | 不想折腾Python/PyTorch转换流水线的Swift原生独立开发者和小型团队。 |
| 难度/周期 | 中等 · 2-4周 · 成本:极低(存储与带宽成本,本地转换硬件成本) |
| 收费模式 | 会员订阅制(按月下载最新预制模型包)或单模型资源买断(Gumroad/个人平台)。 |
| 竞争风险 | 苹果自身若推出完善的官方Model Zoo会稀释需求;模型文件体积大带来的分发带宽成本。 |
| 依据 | 已验证事实 |
端侧AI SwiftUI开发脚手架与组件库 (On-Device AI SwiftUI Kit)
| 产品构想 | 基于仓库提供的Swift runtime utilities,封装上层业务UI与管线逻辑(如本地私密聊天助手、离线语音听写、端侧文生图),提供开箱即用的SwiftUI模版代码。 |
| 核心功能 | 开箱即用的Streaming流式生成UI、本地上下文管理、多模态输入处理、后台模型动态加载与内存自适应卸载方案。 |
| 目标用户 | 希望快速上线端侧AI特性、赚取App Store订阅费的iOS独立开发者。 |
| 难度/周期 | 较低 · 2-3周 · 成本:极低(代码资产销售) |
| 收费模式 | 开发套件买断($49-$199/开发者许可)。 |
| 竞争风险 | 苹果原生API(如未来更高层封装)可能简化这部分胶水代码难度。 |
| 依据 | AI推测 |
Core AI定制模型压缩与移植专家服务
| 产品构想 | 利用仓库中的model-compression-exploration和model-authoring知识体系,为有特定业务模型(如企业自研微调模型)出海/隐私部署需求的团队提供转换与极值压缩交付服务。 |
| 核心功能 | PyTorch算子对齐与适配、BC1S布局优化、量化精度无损调优、交付可直接编译进Xcode项目的.aimodel与Swift调用模块。 |
| 目标用户 | 有敏感数据处理需求、必须完全在iPhone/Mac本地推理的企业客户或高估值创业团队。 |
| 难度/周期 | 高 · 1-2周/单项目 · 成本:人力成本与本地测试机成本 |
| 收费模式 | 按单交付顾问服务费($2000-$10000/模型)。 |
| 竞争风险 | 高价值企业客户获取周期长;定制算子可能遇到官方框架底层未支持的瓶颈。 |
| 依据 | 尚需验证的假设 |
AI 基于仓库公开数据分析生成,含推测成分,不构成收益承诺。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| lucasnewman/mlx2coreai | 中文介绍暂未生成 Convert MLX models to CoreAI |
8 | Python |
| john-rocky/agent-demos | 中文介绍暂未生成 On-device agentic API demos (Foundation Models) running on t |
5 | Swift |
| john-rocky/coreai-assets | 中文介绍暂未生成 Demo media for coreai-kit / coreai-model-zoo READMEs — kept |
4 | Python |
| weichao1221/coreai-models-gui | 中文介绍暂未生成 SwiftUI GUI for Apple Core AI model export with ModelScope s |
2 | Python |
| james-333i/coreai-models-xcframework | 中文介绍暂未生成 Build scripts for creating coreai-models xcframework to enab |
1 | Shell |
| kevinqz/coreai-fabric | 中文介绍暂未生成 The conversion fabric for Apple Core AI — agent-first pipeli |
1 | Python |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2026-06-08,近 30 天仍在推送,发布过 2 个 Release |
| 社区活跃 | Star 2,307 / Fork 260 / Issue 113(数据支持,可自行核实) |
| 许可证 | BSD-3-Clause |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
快速开始(以仓库 README 为准)
git clone https://github.com/apple/coreai-models.git cd coreai-models # 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。