能力标签
Core AI 模型库
🛠
AI工具

Core AI 模型库

基于 Swift · 开源免费,本地部署,数据完全自主可控
英文名:coreai-model-zoo
⭐ 25 Stars 🍴 1 Forks 💻 Swift 📄 NOASSERTION 🏷 AI 8.0分
8.0AI 综合评分
aiapple-siliconcoreaiswift
✦ AI Skill Hub 推荐

AI Skill Hub 强烈推荐:Core AI 模型库 是一款优质的AI工具。AI 综合评分 8.0 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。

📚 深度解析

Core AI 模型库 是一款基于 Swift 的开源工具,在 GitHub 上收获 0k+ Star,是ai、apple-silicon、coreai、swift领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
Core AI 模型库 依赖 Swift 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Swift 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 Core AI 模型库 的版本更新,及时通知重要功能变化。

📋 工具概览

Core AI 模型库 是一款基于 Swift 开发的开源工具,专注于 ai、apple-silicon、coreai 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 25
开发语言
Swift
支持平台
macOS / iOS
维护状态
轻量级项目,按需更新
开源协议
NOASSERTION
AI 综合评分
8.0 分
工具类型
AI工具
Forks
1

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

Core AI 模型库 是一款基于 Swift 开发的开源工具,专注于 ai、apple-silicon、coreai 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 克隆仓库
git clone https://github.com/john-rocky/coreai-model-zoo
cd coreai-model-zoo

# 查看安装说明
cat README.md

# 按 README 完成环境依赖安装后即可使用
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
coreai-model-zoo --help

# 基本运行
coreai-model-zoo [options] <input>

# 详细使用说明请查阅文档
# https://github.com/john-rocky/coreai-model-zoo
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# coreai-model-zoo 配置说明
# 查看配置选项
coreai-model-zoo --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export COREAI_MODEL_ZOO_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 25/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

CoreAI-Model-Zoo

CoreAIKit HF downloads CI Nightly device gate GA validation

Core AI is Apple's on-device ML runtime in iOS 27 / macOS 27 and the successor to Core ML: PyTorch models are exported with Apple's coreai-torch (LLMs: coreai.llm.export) into .aimodel bundles that run on the GPU or the Neural Engine, e.g. Qwen3-8B 4-bit decodes at 94 tok/s on an M4 Max GPU, MLX 90 under the same protocol (apple-silicon-llm-bench, macOS 27 beta, 2026-06).

Converted models + conversion recipes for Apple Core AI (.aimodel, iOS 27 / macOS 27): every model here is downloadable, gated against the original model before it ships, and carries the recipe that produced it in models/<model>/recipe.toml — rerun it (zoo_convert.py run <name>), check the published bundle against its source model (zoo_verify.py), or adapt it for your own port. Don't take the gates on faith — they are run here, and everything needed to re-run them is published. Each card states what was measured on which hardware (iPhone tier is device-measured; the large models are Mac-only and say so) and how strong that model's parity proof is, because it differs per model. Where the shipped configuration could not be recovered from the repository, the recipe says so rather than guessing. Model ports are open to everyone — the catalog serves community ports from the contributor's own Hugging Face namespace, credited by name (who). Successor to CoreML-Models.

Rebuild a bundle — the conversion recipes

Every published bundle carries the configuration that produced it in models/<model>/recipe.toml, and one command runs it:

python3 conversion/zoo_convert.py list                    # what can be rebuilt
python3 conversion/zoo_convert.py show  qwen3.5-0.8b      # the command + everything it needs
python3 conversion/zoo_convert.py run   qwen3.5-0.8b --dry-run
python3 conversion/zoo_convert.py run   qwen3.5-0.8b      # do it

show prints four kinds of prerequisite, and the run-time ones matter as much as the rest — an export that skips them still succeeds, and the bundle then misbehaves inside the app:

linemeans
overlaythe interpreter needs coreai_models with [conversion/overlay/](conversion/overlay/) applied — zoo_convert.py doctor checks it
needssomething the export cannot run without: a checkpoint download, a gather-table dump, a package patch
runtimewhat the **app** needs to run the result: an engine patch from [apps/](apps/), an environment variable such as COREAI_CHUNK_THRESHOLD=1
devicethe AOT compile step for the iPhone bundle
uvthis script declares its own dependencies — no venv, no overlay, nothing to install

Ports whose exporter is self-contained need no setup at all:

uv run conversion/export_da3.py --variant small --dtype float16 --res 504

Paths never assume a machine: python3 conversion/_paths.py prints where downloads, exports and the Hugging Face cache resolve, and ZOO_WORK_ROOT / ZOO_EXPORTS / ZOO_CODE_ROOT / HF_HUB_CACHE move them.

A recipe marked unverified refuses to run without --force. It means the repository does not record which configuration produced the published bundle, and it prints the exact question it cannot answer. Running it anyway yields a bundle, not the bundle.

Do not expect a checksum match. Conversion is not byte-deterministic here: the same recipe run twice on the same machine produces bundles that differ from each other (measured: main.mlirb by 7 bytes, main.hash entirely). A rebuild is judged by the gates the export runs — and by checking the published artifact itself:

python3 conversion/zoo_verify.py mlboydaisuke/Gemma-4-12B-CoreAI     # one repo
python3 conversion/zoo_verify.py --all --json models/_VERIFY.json    # the whole catalog, minutes

That compares a bundle's tokenizer, chat template, context length and declared precision against the source model it names in its own metadata.json — no oracle, no device, no weights.

The numerical check is a different command. zoo_verify.py checks that a bundle is described correctly; it does not check that the bundle still computes the right thing. That is conversion/coreai_gate.py, which rebuilds the reference model in fp32 and compares a greedy decode token for token:

python3 conversion/coreai_gate.py <bundle-dir> Qwen/Qwen3.5-2B --revision <sha> \
    --transcript models/qwen3.5-2b/gate.json

It runs outside this working tree — point --runner / ZOO_LLM_RUNNER at your llm-runner and --python / ZOO_CONVERT_PYTHON at an interpreter that has the export overlay, and it tells you which one is missing rather than failing obscurely. It currently covers the decode architectures in --arch (the oracle is a per-architecture transcription of that model's export, so it grows one port at a time, not all at once).

--transcript is the part worth publishing: the pinned revision, the exact input_ids, both sides' generated tokens, the tie margins, and the verdict. Rebuilding the oracle is expensive; re-running the engine side against a published transcript is not — it needs the bundle, llm-runner, and the recorded input_ids, and the output must match engine.gen_text.

New ports publish one. For models ported before the flag existed, conversion/backfill_gate_transcripts.py prints what can still be gated and, with --run, gates it — preferring the published bundle out of the CoreAIKit cache over a local export, so the transcript describes the bytes apps download at the revision the catalog pins. Nothing reconstructs a transcript from a card's prose after the fact: a model that cannot be re-gated keeps a card that says what was gated, without a file claiming to prove it.

Results land in models/_INVENTORY.md; models/index.json is the same catalog machine-readable, which is where an agent should start. Each recipe entry there carries status (does the repository record what produced this bundle) and gate_transcript (is the numerical check against the original published, and where) — two different questions, kept as two fields so neither has to be inferred from prose.

Install

Claude Code

/plugin marketplace add https://github.com/john-rocky/coreai-model-zoo
/plugin install coreai-zoo-skills@coreai-model-zoo

Codex CLI

codex plugin marketplace add https://github.com/john-rocky/coreai-model-zoo

then /pluginscoreai-model-zoocoreai-zoo-skills → Install.

Gemini CLI

gemini extensions install /path/to/coreai-model-zoo/skills

Apple's own coreai-skills covers the toolchain itself (authoring, export, compression). These two cover this catalog; install both.

Decode throughput (tok/s, greedy; output top-1 exact vs the Hugging Face reference)

iPhone 17 Pro · GPUiPhone 17 Pro · ANEM4 Max · GPU
**Qwen3.5-0.8B****71.9**14.7**210**
**Qwen3.5-2B****29****161**
**LFM2.5-1.2B****45.4****276.5**
**LFM2.5-2.6B** (reasoning; int8hu / int4lin 2.0 GB)not measured**116.7** / **139.2**
**Granite 4.0-H 1B****36.3****136.5**
**Nanbeige4.1-3B****15.9****114.5**
**Nanbeige4.2-3B** (22 physical / 44 executed+cache layers; int8)pending**46.4**
**S1-mini** (Superwhisper, ASR text normalizer, int8lin — device 276/276 + 27/27 token-exact; ⚠️ iOS cap: prompt+gen < 1024 tok)**62.4****268.4**
**MiniCPM5-1B** (OpenBMB, int8 per-block-32 since 2026-09-09 — 24/24 + 6/6-incl.-stop on device, 16/16 on Mac; the earlier per-channel bundle never halted)**61.7**246.6
**MiniCPM5-2B** (OpenBMB, int8 — 16/16 exact vs fp32 HF on Mac, 24/24 + 24/24 on device)**22.4**127.6
**Youtu-LLM-2B** (dense MLA, int8 — 16/16 device ≡ Mac ≡ HF)**~19** (in-app ~24)**102.8**
**FastContext-1.0-4B** (repo-exploration agent, 4bit — AOT h18p; ANE inference unsupported)**20.4**
**BitCPM-8B** (1.58-bit ternary, OpenBMB — custom 2-bit packed-GEMM kernel; AOT h18p; ~2.1 GB resident; token-exact 3/3 vs ref)**17****62.7**
**Gemma 4 E2B****30.3** (QAT 30.7)6**77.0** (QAT 78.9)
**Gemma 4 E4B** (official QAT)**15.1****55.8**
**Gemma 4 E2B VL** (image+text, official QAT)**25.5****82.4**
**MiniCPM-V 4.6** (vision-language, sub-2B)**53.4****224.3**
**LFM2.5-VL-450M** (vision-language, int8lin — image buffer bound; vision encode 33.6 ms/image on iPhone, 18.0 on Mac)**112.0****387.2**
**LFM2.5-VL-3B** (vision-language, int4 on iPhone / int8 on Mac; vision 75.7 ms/image)**19.3–22.8****105.3**
**North-Micro-Vision** (vision-language 2.4B, int8lin — image bound; vision 83.4 ms/image on Mac)**18.2****118.6**
**Qwen3.6-35B-A3B** (MoE, 35B/~3B active, Mac-only)**64.9** †
**Qwen3.6-27B** (dense, Mac-only)**15.9**
**Qwen3.8-27B** (dense VLM, Mac-only; vision 111 ms/image, VLM prefill 86.0 tok/s via pf16)**15.7**
**GLM-4.7-Flash** (MoE + MLA, 30B/~3B active, Mac-only)**52.4** †
**Gemma 4 12B** (dense, Mac-only)**23** int8 / **33** int4 ‡
**Gemma 4 31B** (dense, Mac-only)**17.2** int4 ‡

Measured on the iOS 27 / macOS 27 beta, Apple's coreai-pipelined GPU engine, zero custom kernels (ANE column + / excepted). = MoE bundle using the custom gather_qmm Metal kernel (reads only the routed experts). = dense bundle whose full/global-attention SDPA is a custom flash-decode Metal kernel — the stock MPSGraph SDPA crashes on the ≥16-head × 512 Q (a GPU scratch-heap overflow, apple/coreai-models#27), so these models are unrunnable without it. Prefill, sizes, per-model caveats, and the Mac-only big models: models/.

<p align="center"> <img width="380" alt="CoreAIChat screen recording" src="https://github.com/user-attachments/assets/999dbd95-45b5-468f-b1a8-34112ee3b74d" /> </p> <p align="center"><i>CoreAIChat (<a href="apps/">apps/</a>) — the zoo's models running on-device on iPhone.</i></p>

📚 实用指南(长尾问题)
适合谁
  • 需要 coreai-model-zoo 解决具体问题的开发者与运营人员
最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
coreai-model-zoo 中文教程coreai-model-zoo 安装报错怎么办coreai-model-zoo 与同类工具对比coreai-model-zoo 最佳实践coreai-model-zoo 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要 coreai-model-zoo 解决具体问题的开发者与运营人员
⭐ 最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。

🔗 相关工具推荐

📰 相关 AI 新闻
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

coreai-model-zoo 是一款Swift开发的AI辅助工具。开源AI工具:Community model zoo + knowledge base for Apple Core AI (iOS/macOS 27): Qwen3.5 &。⭐25 · Swift 主要应用场景包括:iOS/macOS AI开发。
💡 AI Skill Hub 点评

总体来看,Core AI 模型库 是一款质量优秀的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。

📚 深入学习 Core AI 模型库
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 coreai-model-zoo
原始描述 开源AI工具:Community model zoo + knowledge base for Apple Core AI (iOS/macOS 27): Qwen3.5 &。⭐25 · Swift
Topics aiapple-siliconcoreaiswift
GitHub https://github.com/john-rocky/coreai-model-zoo
License NOASSERTION
语言 Swift
🔗 原始来源
🐙 GitHub 仓库  https://github.com/john-rocky/coreai-model-zoo

收录时间:2026-06-11 · 更新时间:2026-06-11 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。

📺 订阅 AI Skill Hub Daily Telegram 频道
每天 8 条精选 AI Skill、MCP、Agent 与自动化工具推送
加入频道 →