-
Coder avec le framework Foundation Models
Découvrez par la pratique comment utiliser le framework Foundation Models pour accéder au LLM embarqué d'Apple. Au cours de cette séance en ligne, vous développerez en notre compagnie le code de fonctionnalités d'IA générative d'un exemple d'app dans Xcode. Nous vous montrerons comment mettre en œuvre des fonctionnalités de base telles que la génération de texte simple. Nous aborderons ensuite des sujets avancés comme la génération guidée de données structurées, le streaming de réponses pour l'actualisation dynamique de l'interface utilisateur et l'appel d'outils pour la récupération de données ou l'exécution d'une action.
Cette séance est ouverte à tout le monde. Pour développer le code chez vous, vous devez disposer d'un Mac avec puce Apple prenant en charge Apple Intelligence et doté des dernières versions de macOS Tahoe 26 et Xcode 26.Chapitres
- 0:00:00 - Intro
- 0:03:33 - Resources and system requirements
- 0:05:04 - Prerequisites and setup
- 0:06:30 - Starter project tour
- 0:10:32 - Chapter 1: Foundation Models framework basics
- 0:11:51 - Chapter 1.1: Making your first generation request
- 0:15:50 - Chapter 1.2: Guiding the model with instructions
- 0:18:46 - Chapter 1.3: Handling model availability
- 0:20:50 - Chapter 1.4: Handle availability in the view
- 0:24:07 - Chapter 1.5: Create the itinerary generator
- 0:27:07 - Chapter 1.6: Update the view to display text output
- 0:32:43 - Chapter 2: Generating structured outputs
- 0:34:36 - Chapter 2.1: Generating simple structured output
- 0:37:52 - Chapter 2.2: Generating nested structured output
- 0:41:58 - Chapter 2.3: Refactoring the itinerary generator
- 0:44:48 - Chapter 2.4: Updating the views to display the structured data
- 0:49:22 - Chapter 3: Prompting techniques
- 0:50:25 - Chapter 3.1: Building prompts with PromptBuilder
- 0:53:23 - Chapter 3.2: One-shot prompting
- 0:55:31 - Chapter 3.3: Update the itinerary generator with the example
- 0:59:11 - Chapter 4: Streaming responses
- 0:59:51 - Chapter 4.1: Update the itinerary generator for streaming
- 1:02:52 - Chapter 4.2: Updating views to render streaming content
- 1:08:16 - Chapter 5: Tool calling
- 1:11:12 - Chapter 5.1: Building the FindPointsOfInterestTool
- 1:16:32 - Chapter 5.2: Give the model access to the FindPointsOfInterestTool
- 1:23:07 - Chapter 5.3: Updating the itinerary generator to use the tool
- 1:27:39 - Chapter 6: Performance and optimization
- 1:34:20 - Chapter 6.1: Pre-warming the model
- 1:36:56 - Chapter 6.2: Optimizing the prompt
- 1:41:16 - Wrap up and next steps
Ressources
-
Rechercher dans cette vidéo…
-