Skip to content

A collection of examples using Apple’s FoundationModels framework

License

Notifications You must be signed in to change notification settings

kimhyeri/FoundationModelsPlayground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FoundationModelsPlayground

A collection of on-device examples using Apple’s FoundationModels framework


🧪 Available Demos

1. 💬 On-device Chatbot

A conversational chatbot that responds in a friendly tone.

✅ Powered by SystemLanguageModel
✅ Maintains short context history
✅ Runs 100% locally on-device

🗂️ ChatBot
ChatBot Demo

2. 📝 Grammar Correction

An English tutor that checks your sentence, explains grammar mistakes, and provides corrections.

✅ Powered by SystemLanguageModel
✅ Offers detailed explanations
✅ Runs 100% locally on-device

🗂️ GrammarCorrection
GrammarCorrection Demo

3. 🍳 Recipe Generator

Creates cooking recipes with clear step-by-step instructions.

✅ Powered by SystemLanguageModel
✅ Supports streaming output for recipe generation
✅ Produces structured results (title, ingredients, steps)
✅ Runs 100% locally on-device

🗂️ RecipeGenerator
RecipeGenerator Demo

4. 🏋️‍♀️ AI Workout Plan Generator

Generates personalized workout routines tailored to your goals, equipment, and experience level.

✅ Powered by FoundationModels (on-device)
✅ Fully customizable inputs (goal, duration, equipment, level)
✅ Produces clear step-by-step exercise lists
✅ Runs 100% locally—no network required

🗂️ WorkoutGuide
WorkoutGuide Demo

5. 🌙 CozyTales — Calm Storytelling for Children

An on-device storytelling app that generates calming, child-friendly stories in real time—designed to help children relax in stressful situations such as flights, bedtime, or unfamiliar environments.

✅ Powered by SystemLanguageModel
✅ Generates safe, soothing stories entirely on-device
✅ Adjustable story length (1–12 minutes)
✅ Real-time text-to-speech playback using AVSpeechSynthesizer

🗂️ CozyTales
CozyTales Demo


💡 About FoundationModels

FoundationModels is Apple’s official framework for running foundation language models on-device.
These examples help developers explore capabilities like text generation, summarization, and natural dialogue — all without relying on cloud inference.