{"id":51008204,"url":"https://github.com/john-rocky/coreai-samples","last_synced_at":"2026-06-20T23:04:00.086Z","repository":{"id":364101459,"uuid":"1266378479","full_name":"john-rocky/coreai-samples","owner":"john-rocky","description":"Sample apps for Apple's Core AI framework — chat with any exported LLM bundle on macOS, more coming","archived":false,"fork":false,"pushed_at":"2026-06-11T15:45:18.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-11T17:25:28.158Z","etag":null,"topics":["apple-silicon","coreai","gpt-oss","llm","macos","sample-app"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/john-rocky.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-11T15:03:34.000Z","updated_at":"2026-06-11T15:45:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/john-rocky/coreai-samples","commit_stats":null,"previous_names":["john-rocky/coreai-samples"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/john-rocky/coreai-samples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-rocky%2Fcoreai-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-rocky%2Fcoreai-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-rocky%2Fcoreai-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-rocky%2Fcoreai-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/john-rocky","download_url":"https://codeload.github.com/john-rocky/coreai-samples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/john-rocky%2Fcoreai-samples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34587994,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple-silicon","coreai","gpt-oss","llm","macos","sample-app"],"created_at":"2026-06-20T23:03:59.371Z","updated_at":"2026-06-20T23:04:00.069Z","avatar_url":"https://github.com/john-rocky.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Core AI Samples\n\n**Sample apps for Apple's [Core AI](https://github.com/apple/coreai-models) framework**\n(the Core ML successor, WWDC 2026, macOS/iOS 27) — the runnable examples the official\nrepo doesn't ship.\n\nDesign rule: **one simple app per group of models that share the same handling**,\nbuilt against the **unmodified official runtime** — so you can read the code and\nlift it straight into your own app. Models come from Apple's official export recipes.\n\n| Sample | Platform | What it shows |\n|---|---|---|\n| [CoreAIChatMac](CoreAIChatMac/) | macOS | Chat with any exported LLM bundle — streaming, live load/TTFT/tok-s stats, gpt-oss \"thinking\" parsing |\n| CLIPPhotoSearch | iOS | *(design stage — [memo](CLIPPhotoSearch-DESIGN.md))* on-device photo semantic search on the ANE |\n\nMeasured performance for everything here:\n[apple-silicon-llm-bench](https://github.com/john-rocky/apple-silicon-llm-bench) ·\nrecipe-level knowledge: [zoo knowledge base](https://github.com/john-rocky/coreai-model-zoo/tree/main/knowledge).\n\n## Quick start (CoreAIChatMac + gpt-oss-20b)\n\n\u003e No big-RAM Mac for the export? Pre-converted official bundles (hash-stamped,\n\u003e measured) are on HF: [mlboydaisuke/*-CoreAI-official](https://huggingface.co/mlboydaisuke)\n\u003e — download one and skip to step 2.\n\n```bash\n# 1. Export a model with Apple's official recipe\ngit clone https://github.com/apple/coreai-models \u0026\u0026 cd coreai-models\nuv run coreai.llm.export openai/gpt-oss-20b        # ~13 GB, ~10 min\n\n# 2. Build \u0026 run the app\nbrew install xcodegen\ngit clone https://github.com/john-rocky/coreai-samples \u0026\u0026 cd coreai-samples/CoreAIChatMac\nxcodegen generate\nopen CoreAIChatMac.xcodeproj                        # Run (scheme is Release)\n\n# 3. In the app: Choose Models Folder… → the exports/ dir → click the model\n```\n\nM4 Max reference numbers: gpt-oss-20b decodes ~78 tok/s, loads in ~2 s warm.\n\n## Community zoo models?\n\nThe [community zoo](https://github.com/john-rocky/coreai-model-zoo)'s bundles\n(Qwen3.5, LFM2.5, Granite, Gemma 4) use extended engine features and run in the\n**zoo's own apps**, which ship ready-patched — that's the place where zoo models\njust work, with in-app Hugging Face downloads. This repo stays plain-official so\nthe code stays copy-paste-able into your app.\n\n## License\n\nBSD-3-Clause (same as apple/coreai-models). Model weights keep their upstream licenses.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn-rocky%2Fcoreai-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohn-rocky%2Fcoreai-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohn-rocky%2Fcoreai-samples/lists"}