foundation-models-on-device

Integrate Apple FoundationModels for on-device text generation in iOS apps.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/mitul-bhatia/Vibes --skill foundation-models-on-device-mitul-bhatia
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: foundation-models-on-device
Source: https://github.com/mitul-bhatia/Vibes/tree/main/.github/skills/foundation-models-on-device
Command: npx skills add https://github.com/mitul-bhatia/Vibes --skill foundation-models-on-device-mitul-bhatia

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Apple FoundationModels framework patterns for on-device LLM integration in iOS apps, enabling private, offline inference with text generation, structured outputs via @Generable, tool calling, and snapshot streaming.

Core Features & Use Cases

  • On-device text generation with privacy-preserving inference
  • Structured output generation using @Generable and snapshot streaming
  • Custom tool calling for domain-specific actions in iOS apps
  • Use Case: Build a private assistant that operates entirely on-device without cloud data

Quick Start

Integrate FoundationModels into your iOS app and start an on-device language model session to generate text.

Frequently Asked Questions about foundation-models-on-device

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run on-device LLMs in iOS for private text generation?

You can run on-device LLMs in iOS by integrating the Apple FoundationModels framework to start a language model session, enabling private text generation and offline inference without sending data to the cloud.

How do I get structured outputs from an on-device iOS language model?

Get structured outputs from an on-device iOS language model by applying the @Generable pattern within the FoundationModels framework to parse data and stream snapshots directly on the device.

Can I use tool calling with Apple FoundationModels for offline iOS apps?

Yes, you can use tool calling with Apple FoundationModels to execute domain-specific actions entirely offline, enabling robust custom interactions within your private iOS applications.

What is snapshot streaming in on-device language models and when do I need it?

Snapshot streaming in on-device language models is a mechanism for receiving iterative generable outputs directly on an iOS device, needed when building responsive private assistants without cloud dependencies.

Does FoundationModels support offline inference and private session management?

Yes, FoundationModels supports offline inference and private session management, allowing iOS applications to execute on-device text generation while keeping all user data completely local.

What are the limitations of using on-device LLMs for iOS text generation?

Limitations of using on-device LLMs for iOS text generation include relying entirely on local device hardware capabilities and requiring robust session management within the FoundationModels framework to handle offline constraints.