← All courses

EDGE FDE

Intermediate

On-Device Model Router (Apple FM)

Spend less and stay fast by sending each task to the smallest model that still works (on-device vs Private Cloud Compute vs custom Core AI).

Model router with cost/latency/quality rules using Dynamic Profiles and model modifiers.

Write rules that pick SystemLanguageModel, PrivateCloudComputeLanguageModel, or CoreAILanguageModel, then apply them with Dynamic Profile modifiers. iOS 27 and macOS 27 only.

Lessons

  1. Three Apple language paths
  2. Write cost, latency, and quality rules
  3. Apply the route with modifiers
  4. Build the router
  5. Measure and fall back

Key concepts

Takeaways

Agent briefs

FAQ

Which Apple models can the router pick?

SystemLanguageModel on device, PrivateCloudComputeLanguageModel, or CoreAILanguageModel for a custom Core AI model.

Where do routing rules live?

In app code. Log the route key on every request so you can see which path ran.

How is the route applied?

Dynamic Profiles apply the .model and .reasoningLevel modifiers, so you switch models without rebuilding the chat UI.

What's the rule of thumb?

Pick the smallest Apple path that still does the job, and fall back without breaking privacy.

Which OS versions does the router need?

iOS 27 and macOS 27 only, with one active Profile at a time.

Related courses

Stream tokens and measure speed · Build a context packer for on-device AI · LLM LoRA for your writing style · Core AI vs Core ML vs MLX · Keep On-Device LLMs Alive on Real Phones