Skip to content

Research spike: bring-your-own-model serving on Core AI (sister-tool feasibility) #195

Description

@Arthur-Ficial

Part of epic #189.

Core AI's genuinely new capability is running non-Apple model weights on Apple silicon from an
.aimodel file (AIModel / InferenceFunction / NDArray), with compute-unit and caching control.
This is interesting but is a large, different project from apfel core.

Why this is NOT apfel core

  • apfel ships and downloads nothing ("no downloads" is a selling point). BYO weights breaks that.
  • Core AI gives raw tensor inference. An LLM serving stack still needs tokenizer, sampling, KV cache,
    and chat templating - i.e. reimplementing what FoundationModels gives apfel for free.
  • It fits the apfel-family pattern (apfel-tag, apfel-spot, apfel-mcp, apfel-server-kit): a separate
    repo
    , not apfel core.

Spike deliverables (timebox, no production code)

  • Smallest viable path: load an .aimodel, run one inference function on an NDArray, measure.
  • What it takes to serve a real LLM on top (tokenizer + sampling + KV cache + templating).
  • Could it reuse apfel's OpenAI-compatible server + ApfelCore types? (likely yes - that is the
    reuse story.)
  • Recommendation: separate repo name (e.g. apfel-coreai / aimodel-serve), or drop.

Gating

Needs macOS 27 + Metal Toolchain. Pure research - decision only, no merge to apfel.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions