This module will be an introduction to the new Foundation Models framework in Swift. The module begins with an introduction to the Foundation Models Framework by
creating a simple SwiftUI chat-type app. The app will introduce the concept of the LanguageModelSession and how the developer can interact with it. The lesson will
then discuss how to persist a session and stream the response along with error handling. It will then cover the potential uses and problems inherent to LLMs and
how to handle errors. The last lesson will cover the powerful Generation and external tool abilities that increase the functionality of a app and provide more
utility to Foundation Models.
By Bill Morefield.
This lesson introduces Apple Foundation Models, explaining what they are, why they matter in machine learning,
and how they can be integrated into different projects and apps.
Now that you’ve learned how to use Apple Foundation Models, this section will discuss the abilities and limitations of Apple Foundation Models. It will also discuss ways to tune and adjust the
responses produced by the model.
This lesson builds on the knowledge you gained in the first two to introduce two very valuable features of Apple Foundation Models: guided generation and external tools. Guided generation
allows you to use Foundation Models to generate data adhering to pre-defined data structures or data structures defined at runtime. External tools enable the model to interact with other applications or services, extending the data available to the model beyond training data.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.