View in English

  • Apple Developer
    • 시작하기

    시작하기 탐색

    • 개요
    • 알아보기
    • Apple Developer Program

    알림 받기

    • 최신 뉴스
    • Hello Developer
    • 플랫폼

    플랫폼 탐색

    • Apple 플랫폼
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    • App Store

    피처링

    • 디자인
    • 배포
    • 게임
    • 액세서리
    • 웹
    • 홈
    • CarPlay
    • 기술

    기술 탐색

    • 개요
    • Xcode
    • Swift
    • SwiftUI

    피처링

    • 손쉬운 사용
    • 앱 인텐트
    • Apple Intelligence
    • 게임
    • 머신 러닝 및 AI
    • 보안
    • Xcode Cloud
    • 커뮤니티

    커뮤니티 탐색

    • 개요
    • Apple과의 만남 이벤트
    • 커뮤니티 주도 이벤트
    • 개발자 포럼
    • 오픈 소스

    피처링

    • WWDC
    • Swift Student Challenge
    • 개발자 이야기
    • App Store 어워드
    • Apple 디자인 어워드
    • 문서

    문서 탐색

    • 문서 라이브러리
    • 기술 개요
    • 샘플 코드
    • 휴먼 인터페이스 가이드라인
    • 비디오

    릴리즈 노트

    • 피처링 업데이트
    • iOS
    • iPadOS
    • macOS
    • watchOS
    • visionOS
    • tvOS
    • Xcode
    • 다운로드

    다운로드 탐색

    • 모든 다운로드
    • 운영 체제
    • 애플리케이션
    • 디자인 리소스

    피처링

    • Xcode
    • TestFlight
    • 서체
    • SF Symbols
    • Icon Composer
    • 지원

    지원 탐색

    • 개요
    • 도움말
    • 개발자 포럼
    • 피드백 지원
    • 문의하기

    피처링

    • 계정 도움말
    • 앱 심사 지침
    • App Store Connect 도움말
    • 새로 추가될 요구 사항
    • 계약 및 지침
    • 시스템 상태
  • 빠른 링크

    • 이벤트
    • 뉴스
    • 포럼
    • 샘플 코드
    • 비디오
 

비디오

메뉴 열기 메뉴 닫기
  • 컬렉션
  • 전체 비디오
  • 소개

더 많은 비디오

  • 소개
  • 요약
  • 코드
  • Foundation Models 프레임워크의 새로운 기능

    Foundation Models 프레임워크의 새로운 기능을 살펴보세요. 비공개 클라우드 컴퓨팅에 접근하고, 타사 및 오픈 소스 모델을 연동하며, 비전 기능을 활용하는 방법을 알아보세요. 컨텍스트 관리 API, 내장된 시맨틱 검색 기능, 앱에서 에이전틱 경험을 선사하기 위한 강력한 프리미티브를 알아보세요.

    챕터

    • 0:00 - Introduction
    • 2:34 - New on-device model
    • 3:21 - Vision: image understanding
    • 4:20 - Private Cloud Compute
    • 6:46 - Model abstraction layer
    • 7:32 - Partner model integrations
    • 9:40 - System tools: Vision and Spotlight
    • 10:57 - Dynamic Profiles for agentic apps
    • 13:46 - Composing models and configurations
    • 15:30 - Evaluations framework
    • 16:02 - The fm command line tool
    • 17:13 - Foundation Models Python SDK
    • 17:55 - Open source and framework utilities
    • 19:24 - Next steps

    리소스

    • Expanding generation with tool calling
    • Analyzing images with multimodal prompting
    • Composing dynamic sessions with instructions and profiles
    • Adding server-side intelligence with Private Cloud Compute
      • HD 비디오
      • SD 비디오
  • 비디오 검색…
    • 2:46 - Context size and token counting

      // Context size and token counting
        
        let model = SystemLanguageModel()
        print(model.contextSize)
        // 8192
        
        let count = try await model.tokenCount(for: "What are the Japanese characters for origami?")
        print(count)
    • 3:52 - Attachable image types

      // Insert c// Attachable image types
      
        let response = try await session.respond {
            "What animal is this?"
            Attachment(UIImage(...))
        }ode snippet.
    • 8:45 - Inspecting usage

      // Inspecting usage
        
        let response = try await session.respond(
            to: "Recommend a craft that doesn't require scissors.",
            contextOptions: ContextOptions(reasoningLevel: .light)
        )
      
        print(response.usage.input.totalTokenCount)
        print(response.usage.input.cachedTokenCount)
      
        print(response.usage.output.totalTokenCount)
        print(response.usage.output.reasoningTokenCount)
    • 11:55 - Routing between craft analysis and brainstorm

      // Routing between craft analysis and brainstorm
        
        @Observable
        final class AppStates {
            var mode: Mode
        }
      
        let appStates: AppStates
        var session: LanguageModelSession?
      
        func updateSession() {
            let originalTranscript = session?.transcript.dropFirstInstructions() ?? Transcript()
      
            // Create a new session with new instructions and tools
            switch appStates.mode {
            case .craftAnalysis:
                session = LanguageModelSession(
                    tools: [
                        RecordImageAnalysisTool(),
                        SwitchModeTool(states: appStates)
                    ],
                    instructions: "Analyze the user's craft project...",
                    transcript: originalTranscript
                )
            case .brainstorm:
                session = LanguageModelSession(
                    tools: [
                        RecordBrainstormTool(),
                    ],
                    instructions: "Brainstorm some ideas...",
                    transcript: originalTranscript
                )
            }
        }
        
        struct SwitchModeTool: Tool {
            let description = "Switch to a different mode."
            let states: AppStates
      
            @Generable
            struct Arguments {
                let mode: Mode
            }
      
            func call(arguments: Arguments) async throws -> some PromptRepresentable {
                appStates.mode = arguments.mode
                return "Successfully switched to \(arguments.mode)."
            }
        }
        
        // If mode changes, update the session
        withObservationTracking {
            appStates.mode
        } onChange: {
            updateSession()
        }
    • 12:42 - Describing the profile for craft app

      // Describing the profile for craft app
      
        struct CraftProfile: LanguageModelSession.DynamicProfile {
            var body: some DynamicProfile {
                Profile {
                    Instructions {
                        """
                        You are an expert crafting assistant. \
                        Record craft project image analyses   \
                        using the recordImageAnalysis tool.
                        """
                    }
                    RecordImageAnalysisTool()
                }
            }
        }
      
        let session = LanguageModelSession(
            profile: CraftProfile()
        )
    • 14:36 - Describing the profile for craft app

      // Describing the profile for craft app
        
        struct CraftProfile: LanguageModelSession.DynamicProfile {
            let states: CraftProjectStates
      
            var body: some DynamicProfile {
                switch states.mode {
                case .craftAnalysis:
                    Profile {
                        Instructions { /* ... */ }
                        RecordImageAnalysisTool()
                        SwitchModeTool(states: states)
                    }
                case .brainstorm:
                    Profile {
                        Instructions { /* ... */ }
                        BrainstormRecordTool()
                    }
                    .model(states.privateCloudCompute)
                    .reasoningLevel(.deep)
                }
            }
        }
    • 18:29 - Foundation Models SDK for Python

      # Foundation Models SDK for Python
        
        import apple_fm_sdk as fm
      
        model = fm.SystemLanguageModel()
      
        # Check the model's availability
        is_available, reason = model.is_available()
      
        if is_available:
      
            # Create a session
            session = fm.LanguageModelSession(model=model)
      
            # Generate a response
            response = await session.respond(prompt="Hello!")
            print(response)
    • 0:00 - Introduction
    • Erik Hornberger and Zhen Li introduce this year's Foundation Models release, going open source with a new utilities package, and preview the agenda: model updates, system tools, dynamic profiles, evaluations, and tooling.

    • 2:34 - New on-device model
    • A rebuilt on-device model with better reasoning and tool calling, plus new APIs (from iOS 26.4) for inspecting context size and counting tokens, and refined guardrails that reduce false positives.

    • 3:21 - Vision: image understanding
    • The on-device model gains vision. Add image attachments to a prompt to ask about images, accepting UIImage, NSImage, CGImage, Core Image, CoreVideo pixel buffers, and file URLs at any size, though larger images cost more tokens.

    • 4:20 - Private Cloud Compute
    • Access Apple's server models via PrivateCloudComputeLanguageModel, a 32K context window with reasoning levels, with no account setup, auth, or API keys, fully private, and now available on watchOS 27.

    • 6:46 - Model abstraction layer
    • A new LanguageModel protocol lets local and server models back a LanguageModelSession. Existing models conform already, plus open-source CoreAILanguageModel and MLXLanguageModel for running local models on the Neural Engine and GPU.

    • 7:32 - Partner model integrations
    • Anthropic and Google publish Swift packages for their frontier models. Swap models via Swift Package Manager with everything downstream unchanged, handle auth and billing securely with OAuth and Keychain, and track per-token usage including cache and reasoning tokens.

    • 9:40 - System tools: Vision and Spotlight
    • New built-in tools: BarcodeReaderTool and OCRTool (Vision-backed) for reasoning over visual information, and a Spotlight-powered search tool enabling fully local Retrieval-Augmented Generation (RAG).

    • 10:57 - Dynamic Profiles for agentic apps
    • Dynamic Profiles, a declarative primitive for agentic experiences. Using the Crafts app, a single session swaps instructions and tools between modes (craft analysis vs. brainstorm) by conforming a struct to DynamicProfile.

    • 13:46 - Composing models and configurations
    • Use modifiers to vary the model and reasoning level per profile branch, for example SystemLanguageModel for quick analysis and Private Cloud Compute with deep reasoning for brainstorming, while preserving conversation history. A profile resolves to one active profile at a time.

    • 15:30 - Evaluations framework
    • A new Swift framework to measure the quality of intelligence features, quantifying accuracy as you tweak prompts so you can understand the statistical impact of changes and ship with confidence.

    • 16:02 - The fm command line tool
    • In macOS 27, the models come to the terminal. The fm CLI gives on-device and PCC access for everyday productivity: fm chat for interactive use and piping into shell scripts to summarize, extract, or generate content.

    • 17:13 - Foundation Models Python SDK
    • A Python SDK exposes the same on-device model as the Swift framework, checking availability and generating structured responses in a few lines, for data scientists and researchers in the Python ecosystem.

    • 17:55 - Open source and framework utilities
    • The Foundation Models framework utilities package offers building blocks (transcript management, a skill API, chat-completions interfacing), and the core framework is open-sourced to run wherever Swift runs, including Linux servers.

    • 19:24 - Next steps
    • Download the sample app, get familiar with dynamic profiles and the Evaluations framework, and watch the deep-dive sessions on PCC, evaluations, the Xcode instrument, and dynamic profiles.

Developer Footer

  • 비디오
  • WWDC26
  • Foundation Models 프레임워크의 새로운 기능
  • 메뉴 열기 메뉴 닫기
    • iOS
    • iPadOS
    • macOS
    • tvOS
    • visionOS
    • watchOS
    메뉴 열기 메뉴 닫기
    • Swift
    • SwiftUI
    • Swift Playground
    • TestFlight
    • Xcode
    • Xcode Cloud
    • SF Symbols
    메뉴 열기 메뉴 닫기
    • 손쉬운 사용
    • 액세서리
    • Apple Intelligence
    • 앱 확장 프로그램
    • App Store
    • 오디오 및 비디오(영문)
    • 증강 현실
    • 디자인
    • 배포
    • 교육
    • 서체(영문)
    • 게임
    • 건강 및 피트니스
    • 앱 내 구입
    • 현지화
    • 지도 및 위치
    • 머신 러닝 및 AI
    • 오픈 소스(영문)
    • 보안
    • Safari 및 웹(영문)
    메뉴 열기 메뉴 닫기
    • 문서(영문)
    • 튜토리얼
    • 다운로드
    • 포럼(영문)
    • 비디오
    메뉴 열기 메뉴 닫기
    • 지원 문서
    • 문의하기
    • 버그 보고
    • 시스템 상태(영문)
    메뉴 열기 메뉴 닫기
    • Apple Developer
    • App Store Connect
    • 인증서, 식별자 및 프로파일(영문)
    • 피드백 지원
    메뉴 열기 메뉴 닫기
    • Apple Developer Program
    • Apple Developer Enterprise Program
    • App Store Small Business Program
    • MFi Program(영문)
    • Mini Apps Partner Program
    • News Partner Program(영문)
    • Video Partner Program(영문)
    • Security Bounty Program(영문)
    • Security Research Device Program(영문)
    메뉴 열기 메뉴 닫기
    • Apple과의 만남
    • Apple Developer Center
    • App Store 어워드(영문)
    • Apple 디자인 어워드
    • Apple Developer Academy(영문)
    • WWDC
    최신 뉴스 읽기.
    Apple Developer 앱 받기.
    Copyright © 2026 Apple Inc. 모든 권리 보유.
    약관 개인정보 처리방침 계약 및 지침